Class: Worldline::Acquiring::SDK::V1::Domain::ECommerceDataForResponse

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#address_verification_resultString

Returns the current value of address_verification_result.

Returns:

  • (String)

    the current value of address_verification_result



13
14
15
# File 'lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb', line 13

def address_verification_result
  @address_verification_result
end

#card_security_code_resultString

Returns the current value of card_security_code_result.

Returns:

  • (String)

    the current value of card_security_code_result



13
14
15
# File 'lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb', line 13

def card_security_code_result
  @card_security_code_result
end

Instance Method Details

#from_hash(hash) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb', line 27

def from_hash(hash)
  super
  if hash.has_key? 'addressVerificationResult'
    @address_verification_result = hash['addressVerificationResult']
  end
  if hash.has_key? 'cardSecurityCodeResult'
    @card_security_code_result = hash['cardSecurityCodeResult']
  end
end

#to_hHash

Returns:

  • (Hash)


20
21
22
23
24
25
# File 'lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb', line 20

def to_h
  hash = super
  hash['addressVerificationResult'] = @address_verification_result unless @address_verification_result.nil?
  hash['cardSecurityCodeResult'] = @card_security_code_result unless @card_security_code_result.nil?
  hash
end