Class: Io::Flow::V0::Models::PaymentMethodDataInitIdeal

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 = {}) ⇒ PaymentMethodDataInitIdeal

Returns a new instance of PaymentMethodDataInitIdeal.



57499
57500
57501
57502
57503
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57499

def initialize(incoming={})
  super(:type => PaymentMethodData::Types::PAYMENT_METHOD_DATA_INIT_IDEAL)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @issuer = (x = opts.delete(:issuer); x.nil? ? nil : HttpClient::Preconditions.assert_class('issuer', x, String))
end

Instance Attribute Details

#issuerObject (readonly)

Returns the value of attribute issuer.



57497
57498
57499
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57497

def issuer
  @issuer
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



57509
57510
57511
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57509

def copy(incoming={})
  PaymentMethodDataInitIdeal.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#subtype_to_hashObject



57513
57514
57515
57516
57517
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57513

def subtype_to_hash
  {
    :issuer => issuer
  }
end

#to_jsonObject



57505
57506
57507
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57505

def to_json
  JSON.dump(to_hash)
end