Class: Ingenico::Connect::SDK::Domain::Payment::MobileThreeDSecureChallengeParameters

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#acs_reference_numberString

Returns the current value of acs_reference_number.

Returns:

  • (String)

    the current value of acs_reference_number



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb', line 15

def acs_reference_number
  @acs_reference_number
end

#acs_signed_contentString

Returns the current value of acs_signed_content.

Returns:

  • (String)

    the current value of acs_signed_content



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb', line 15

def acs_signed_content
  @acs_signed_content
end

#acs_transaction_idString

Returns the current value of acs_transaction_id.

Returns:

  • (String)

    the current value of acs_transaction_id



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb', line 15

def acs_transaction_id
  @acs_transaction_id
end

#three_d_server_transaction_idString

Returns the current value of three_d_server_transaction_id.

Returns:

  • (String)

    the current value of three_d_server_transaction_id



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb', line 15

def three_d_server_transaction_id
  @three_d_server_transaction_id
end

Instance Method Details

#from_hash(hash) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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_hHash

Returns:

  • (Hash)


26
27
28
29
30
31
32
33
# 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