Class: Io::Flow::V0::Models::PaymentMethodDataInitBancontact

Inherits:
PaymentMethodData show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentMethodData

#type

Instance Method Summary collapse

Methods inherited from PaymentMethodData

from_json, #to_hash

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

#placeholderObject (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_hashObject



57461
57462
57463
57464
57465
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57461

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



57453
57454
57455
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57453

def to_json
  JSON.dump(to_hash)
end