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.
53252 53253 53254 53255 53256 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53252 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.
53250 53251 53252 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53250 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53262 53263 53264 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53262 def copy(incoming={}) PaymentMethodDataInitSofort.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53266 53267 53268 53269 53270 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53266 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
53258 53259 53260 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53258 def to_json JSON.dump(to_hash) end |