Class: Ingenico::Connect::SDK::Domain::Product::GetCustomerDetailsResponse
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Product::GetCustomerDetailsResponse
- Defined in:
- lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
String.
-
#country ⇒ Object
String.
-
#email_address ⇒ Object
String.
-
#first_name ⇒ Object
String.
-
#fiscal_number ⇒ Object
String.
-
#language_code ⇒ Object
String.
-
#phone_number ⇒ Object
String.
-
#street ⇒ Object
String.
-
#surname ⇒ Object
String.
-
#zip ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#city ⇒ Object
String
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 14 def city @city end |
#country ⇒ Object
String
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 17 def country @country end |
#email_address ⇒ Object
String
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 20 def email_address @email_address end |
#first_name ⇒ Object
String
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 23 def first_name @first_name end |
#fiscal_number ⇒ Object
String
26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 26 def fiscal_number @fiscal_number end |
#language_code ⇒ Object
String
29 30 31 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 29 def language_code @language_code end |
#phone_number ⇒ Object
String
32 33 34 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 32 def phone_number @phone_number end |
#street ⇒ Object
String
35 36 37 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 35 def street @street end |
#surname ⇒ Object
String
38 39 40 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 38 def surname @surname end |
#zip ⇒ Object
String
41 42 43 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 41 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 58 def from_hash(hash) super if hash.has_key?('city') @city = hash['city'] end if hash.has_key?('country') @country = hash['country'] end if hash.has_key?('emailAddress') @email_address = hash['emailAddress'] end if hash.has_key?('firstName') @first_name = hash['firstName'] end if hash.has_key?('fiscalNumber') @fiscal_number = hash['fiscalNumber'] end if hash.has_key?('languageCode') @language_code = hash['languageCode'] end if hash.has_key?('phoneNumber') @phone_number = hash['phoneNumber'] end if hash.has_key?('street') @street = hash['street'] end if hash.has_key?('surname') @surname = hash['surname'] end if hash.has_key?('zip') @zip = hash['zip'] end end |
#to_h ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 43 def to_h hash = super add_to_hash(hash, 'city', @city) add_to_hash(hash, 'country', @country) add_to_hash(hash, 'emailAddress', @email_address) add_to_hash(hash, 'firstName', @first_name) add_to_hash(hash, 'fiscalNumber', @fiscal_number) add_to_hash(hash, 'languageCode', @language_code) add_to_hash(hash, 'phoneNumber', @phone_number) add_to_hash(hash, 'street', @street) add_to_hash(hash, 'surname', @surname) add_to_hash(hash, 'zip', @zip) hash end |