Class: Io::Flow::V0::Models::PaymentMethodSummarySofort
- Inherits:
-
PaymentMethodSummary
- Object
- PaymentMethodSummary
- Io::Flow::V0::Models::PaymentMethodSummarySofort
- 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 = {}) ⇒ PaymentMethodSummarySofort
constructor
A new instance of PaymentMethodSummarySofort.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodSummary
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodSummarySofort
Returns a new instance of PaymentMethodSummarySofort.
53767 53768 53769 53770 53771 53772 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53767 def initialize(incoming={}) super(:type => PaymentMethodSummary::Types::PAYMENT_METHOD_SUMMARY_SOFORT) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:merchant_of_record], 'PaymentMethodSummarySofort') @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.
53765 53766 53767 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53765 def merchant_of_record @merchant_of_record end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53778 53779 53780 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53778 def copy(incoming={}) PaymentMethodSummarySofort.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53782 53783 53784 53785 53786 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53782 def subtype_to_hash { :merchant_of_record => merchant_of_record.value } end |
#to_json ⇒ Object
53774 53775 53776 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53774 def to_json JSON.dump(to_hash) end |