class Ingenico::Connect::SDK::Domain::Payment::ApprovePaymentPaymentMethodSpecificInput

@attr [String] date_collect @attr [String] token

Attributes

date_collect[RW]
token[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'dateCollect'
    @date_collect = hash['dateCollect']
  end
  if hash.has_key? 'token'
    @token = hash['token']
  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/payment/approve_payment_payment_method_specific_input.rb, line 20
def to_h
  hash = super
  hash['dateCollect'] = @date_collect unless @date_collect.nil?
  hash['token'] = @token unless @token.nil?
  hash
end