Class: OnlinePayments::SDK::Domain::MobileThreeDSecureChallengeParameters

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from 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



13
14
15
# File 'lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb', line 13

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



13
14
15
# File 'lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb', line 13

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



13
14
15
# File 'lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb', line 13

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



13
14
15
# File 'lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb', line 13

def three_d_server_transaction_id
  @three_d_server_transaction_id
end

Instance Method Details

#from_hash(hash) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb', line 33

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)


24
25
26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb', line 24

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