class Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData

@attr [String] acs_transaction_id @attr [String] method @attr [String] utc_timestamp

Attributes

acs_transaction_id[RW]
method[RW]
utc_timestamp[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/three_d_secure_data.rb, line 31
def from_hash(hash)
  super
  if hash.has_key? 'acsTransactionId'
    @acs_transaction_id = hash['acsTransactionId']
  end
  if hash.has_key? 'method'
    @method = hash['method']
  end
  if hash.has_key? 'utcTimestamp'
    @utc_timestamp = hash['utcTimestamp']
  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/three_d_secure_data.rb, line 23
def to_h
  hash = super
  hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
  hash['method'] = @method unless @method.nil?
  hash['utcTimestamp'] = @utc_timestamp unless @utc_timestamp.nil?
  hash
end