Class: Worldline::Connect::SDK::V1::Domain::GetCustomerDetailsResponse

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#cityString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def city
  @city
end

#countryString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def country
  @country
end

#email_addressString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def email_address
  @email_address
end

#first_nameString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def first_name
  @first_name
end

#fiscal_numberString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def fiscal_number
  @fiscal_number
end

#language_codeString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def language_code
  @language_code
end

#phone_numberString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def phone_number
  @phone_number
end

#streetString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def street
  @street
end

#surnameString



22
23
24
# File 'lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb', line 22

def surname
  @surname
end

#zipString



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_hHash



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