Class: Io::Flow::V0::Models::PaymentMethodSummaryIdeal
- Inherits:
-
PaymentMethodSummary
- Object
- PaymentMethodSummary
- Io::Flow::V0::Models::PaymentMethodSummaryIdeal
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#issuer ⇒ Object
readonly
Returns the value of attribute issuer.
-
#merchant_of_record ⇒ Object
readonly
Returns the value of attribute merchant_of_record.
Attributes inherited from PaymentMethodSummary
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodSummaryIdeal
constructor
A new instance of PaymentMethodSummaryIdeal.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodSummary
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodSummaryIdeal
Returns a new instance of PaymentMethodSummaryIdeal.
58073 58074 58075 58076 58077 58078 58079 |
# 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 |
Instance Attribute Details
#issuer ⇒ Object (readonly)
Returns the value of attribute issuer.
58071 58072 58073 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58071 def issuer @issuer end |
#merchant_of_record ⇒ Object (readonly)
Returns the value of attribute merchant_of_record.
58071 58072 58073 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58071 def merchant_of_record @merchant_of_record end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
58085 58086 58087 |
# 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 ⇒ Object
58089 58090 58091 58092 58093 58094 |
# 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 ⇒ Object
58081 58082 58083 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58081 def to_json JSON.dump(to_hash) end |