Class: Io::Flow::V0::Models::PaymentMethodSummaryBancontact
- Inherits:
-
PaymentMethodSummary
- Object
- PaymentMethodSummary
- Io::Flow::V0::Models::PaymentMethodSummaryBancontact
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#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 = {}) ⇒ PaymentMethodSummaryBancontact
constructor
A new instance of PaymentMethodSummaryBancontact.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodSummary
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodSummaryBancontact
Returns a new instance of PaymentMethodSummaryBancontact.
57982 57983 57984 57985 57986 57987 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57982 def initialize(incoming={}) super(:type => PaymentMethodSummary::Types::PAYMENT_METHOD_SUMMARY_BANCONTACT) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:merchant_of_record], 'PaymentMethodSummaryBancontact') @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)) end |
Instance Attribute Details
#merchant_of_record ⇒ Object (readonly)
Returns the value of attribute merchant_of_record.
57980 57981 57982 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57980 def merchant_of_record @merchant_of_record end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57993 57994 57995 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57993 def copy(incoming={}) PaymentMethodSummaryBancontact.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57997 57998 57999 58000 58001 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57997 def subtype_to_hash { :merchant_of_record => merchant_of_record.value } end |
#to_json ⇒ Object
57989 57990 57991 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57989 def to_json JSON.dump(to_hash) end |