Class: Io::Flow::V0::Models::PaymentMethodDataInitSofort
- Inherits:
-
PaymentMethodData
- Object
- PaymentMethodData
- Io::Flow::V0::Models::PaymentMethodDataInitSofort
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from PaymentMethodData
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataInitSofort
constructor
A new instance of PaymentMethodDataInitSofort.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodData
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataInitSofort
Returns a new instance of PaymentMethodDataInitSofort.
57577 57578 57579 57580 57581 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57577 def initialize(incoming={}) super(:type => PaymentMethodData::Types::PAYMENT_METHOD_DATA_INIT_SOFORT) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
57575 57576 57577 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57575 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57587 57588 57589 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57587 def copy(incoming={}) PaymentMethodDataInitSofort.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57591 57592 57593 57594 57595 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57591 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
57583 57584 57585 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57583 def to_json JSON.dump(to_hash) end |