Class: Worldline::Acquiring::SDK::V1::Domain::ECommerceDataForResponse
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::ECommerceDataForResponse
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb
Instance Attribute Summary collapse
-
#address_verification_result ⇒ String
The current value of address_verification_result.
-
#card_security_code_result ⇒ String
The current value of card_security_code_result.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#address_verification_result ⇒ String
Returns 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_result ⇒ String
Returns 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_h ⇒ 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 |