class Ingenico::Connect::SDK::Domain::Payment::MobileThreeDSecureChallengeParameters

@attr [String] acs_reference_number @attr [String] acs_signed_content @attr [String] acs_transaction_id @attr [String] three_d_server_transaction_id

Attributes

acs_reference_number[RW]
acs_signed_content[RW]
acs_transaction_id[RW]
three_d_server_transaction_id[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb, line 35
def from_hash(hash)
  super
  if hash.has_key? 'acsReferenceNumber'
    @acs_reference_number = hash['acsReferenceNumber']
  end
  if hash.has_key? 'acsSignedContent'
    @acs_signed_content = hash['acsSignedContent']
  end
  if hash.has_key? 'acsTransactionId'
    @acs_transaction_id = hash['acsTransactionId']
  end
  if hash.has_key? 'threeDServerTransactionId'
    @three_d_server_transaction_id = hash['threeDServerTransactionId']
  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/mobile_three_d_secure_challenge_parameters.rb, line 26
def to_h
  hash = super
  hash['acsReferenceNumber'] = @acs_reference_number unless @acs_reference_number.nil?
  hash['acsSignedContent'] = @acs_signed_content unless @acs_signed_content.nil?
  hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
  hash['threeDServerTransactionId'] = @three_d_server_transaction_id unless @three_d_server_transaction_id.nil?
  hash
end