Class: Worldline::Acquiring::SDK::V1::Domain::AddressVerificationData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::AddressVerificationData
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb
Instance Attribute Summary collapse
-
#cardholder_address ⇒ String
The current value of cardholder_address.
-
#cardholder_postal_code ⇒ String
The current value of cardholder_postal_code.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#cardholder_address ⇒ String
Returns the current value of cardholder_address.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb', line 13 def cardholder_address @cardholder_address end |
#cardholder_postal_code ⇒ String
Returns the current value of cardholder_postal_code.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb', line 13 def cardholder_postal_code @cardholder_postal_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb', line 27 def from_hash(hash) super if hash.has_key? 'cardholderAddress' @cardholder_address = hash['cardholderAddress'] end if hash.has_key? 'cardholderPostalCode' @cardholder_postal_code = hash['cardholderPostalCode'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb', line 20 def to_h hash = super hash['cardholderAddress'] = @cardholder_address unless @cardholder_address.nil? hash['cardholderPostalCode'] = @cardholder_postal_code unless @cardholder_postal_code.nil? hash end |