class Io::Flow::V0::Models::KlarnaPaymentCategory
Options
that allow the user to pay with, example Pay over time
Attributes
descriptive_asset_url[R]
id[R]
name[R]
standard_asset_url[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47727 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :name], 'KlarnaPaymentCategory') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String) @standard_asset_url = (x = opts.delete(:standard_asset_url); x.nil? ? nil : HttpClient::Preconditions.assert_class('standard_asset_url', x, String)) @descriptive_asset_url = (x = opts.delete(:descriptive_asset_url); x.nil? ? nil : HttpClient::Preconditions.assert_class('descriptive_asset_url', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47740 def copy(incoming={}) KlarnaPaymentCategory.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47744 def to_hash { :id => id, :name => name, :standard_asset_url => standard_asset_url, :descriptive_asset_url => descriptive_asset_url } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47736 def to_json JSON.dump(to_hash) end