class Io::Flow::V0::Models::PaymentMethodSummaryIdeal
Attributes
issuer[R]
merchant_of_record[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::PaymentMethodSummary::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 58073 def initialize(incoming={}) super(:type => PaymentMethodSummary::Types::PAYMENT_METHOD_SUMMARY_IDEAL) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:merchant_of_record], 'PaymentMethodSummaryIdeal') @merchant_of_record = (x = opts.delete(:merchant_of_record); x.is_a?(::Io::Flow::V0::Models::MerchantOfRecord) ? x : ::Io::Flow::V0::Models::MerchantOfRecord.apply(x)) @issuer = (x = opts.delete(:issuer); x.nil? ? nil : HttpClient::Preconditions.assert_class('issuer', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 58085 def copy(incoming={}) PaymentMethodSummaryIdeal.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 58089 def subtype_to_hash { :merchant_of_record => merchant_of_record.value, :issuer => issuer } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 58081 def to_json JSON.dump(to_hash) end