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.



50964
50965
50966
50967
50968
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50964

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.



50962
50963
50964
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50962

def issuer
  @issuer
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



50974
50975
50976
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50974

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

#subtype_to_hashObject



50978
50979
50980
50981
50982
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50978

def subtype_to_hash
  {
    :issuer => issuer
  }
end

#to_jsonObject



50970
50971
50972
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50970

def to_json
  JSON.dump(to_hash)
end