class Ingenico::Connect::SDK::Domain::Services::GetIINDetailsRequest

@attr [String] bin @attr [Ingenico::Connect::SDK::Domain::Services::PaymentContext] payment_context

Attributes

bin[RW]
payment_context[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb, line 28
def from_hash(hash)
  super
  if hash.has_key? 'bin'
    @bin = hash['bin']
  end
  if hash.has_key? 'paymentContext'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentContext']] unless hash['paymentContext'].is_a? Hash
    @payment_context = Ingenico::Connect::SDK::Domain::Services::PaymentContext.new_from_hash(hash['paymentContext'])
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb, line 21
def to_h
  hash = super
  hash['bin'] = @bin unless @bin.nil?
  hash['paymentContext'] = @payment_context.to_h unless @payment_context.nil?
  hash
end