Class: Worldline::Connect::SDK::V1::Domain::GetCustomerDetailsResponse
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::GetCustomerDetailsResponse
- Defined in:
- lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb
Instance Attribute Summary collapse
-
#city ⇒ String
The current value of city.
-
#country ⇒ String
The current value of country.
-
#email_address ⇒ String
The current value of email_address.
-
#first_name ⇒ String
The current value of first_name.
-
#fiscal_number ⇒ String
The current value of fiscal_number.
-
#language_code ⇒ String
The current value of language_code.
-
#phone_number ⇒ String
The current value of phone_number.
-
#street ⇒ String
The current value of street.
-
#surname ⇒ String
The current value of surname.
-
#zip ⇒ String
The current value of zip.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#city ⇒ String
Returns the current value of city.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def city @city end |
#country ⇒ String
Returns the current value of country.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def country @country end |
#email_address ⇒ String
Returns the current value of email_address.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def email_address @email_address end |
#first_name ⇒ String
Returns the current value of first_name.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def first_name @first_name end |
#fiscal_number ⇒ String
Returns the current value of fiscal_number.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def fiscal_number @fiscal_number end |
#language_code ⇒ String
Returns the current value of language_code.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def language_code @language_code end |
#phone_number ⇒ String
Returns the current value of phone_number.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def phone_number @phone_number end |
#street ⇒ String
Returns the current value of street.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def street @street end |
#surname ⇒ String
Returns the current value of surname.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def surname @surname end |
#zip ⇒ String
Returns the current value of zip.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
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 91 92 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 60 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 ⇒ Hash
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 45 def to_h hash = super hash['city'] = @city unless @city.nil? hash['country'] = @country unless @country.nil? hash['emailAddress'] = @email_address unless @email_address.nil? hash['firstName'] = @first_name unless @first_name.nil? hash['fiscalNumber'] = @fiscal_number unless @fiscal_number.nil? hash['languageCode'] = @language_code unless @language_code.nil? hash['phoneNumber'] = @phone_number unless @phone_number.nil? hash['street'] = @street unless @street.nil? hash['surname'] = @surname unless @surname.nil? hash['zip'] = @zip unless @zip.nil? hash end |