Class: Ingenico::Connect::SDK::Domain::Product::GetCustomerDetailsResponse

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#cityObject

String



14
15
16
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 14

def city
  @city
end

#countryObject

String



17
18
19
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 17

def country
  @country
end

#email_addressObject

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_nameObject

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_numberObject

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_codeObject

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_numberObject

String



32
33
34
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 32

def phone_number
  @phone_number
end

#streetObject

String



35
36
37
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 35

def street
  @street
end

#surnameObject

String



38
39
40
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 38

def surname
  @surname
end

#zipObject

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_hObject



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