Class: Io::Flow::V0::Models::PaymentMethodDataInitBancontact
- Inherits:
-
PaymentMethodData
- Object
- PaymentMethodData
- Io::Flow::V0::Models::PaymentMethodDataInitBancontact
- 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 = {}) ⇒ PaymentMethodDataInitBancontact
constructor
A new instance of PaymentMethodDataInitBancontact.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodData
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataInitBancontact
Returns a new instance of PaymentMethodDataInitBancontact.
57447 57448 57449 57450 57451 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57447 def initialize(incoming={}) super(:type => PaymentMethodData::Types::PAYMENT_METHOD_DATA_INIT_BANCONTACT) 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.
57445 57446 57447 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57445 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57457 57458 57459 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57457 def copy(incoming={}) PaymentMethodDataInitBancontact.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57461 57462 57463 57464 57465 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57461 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
57453 57454 57455 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57453 def to_json JSON.dump(to_hash) end |