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

Returns the current value of city.

Returns:

  • (String)

    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

#countryString

Returns the current value of country.

Returns:

  • (String)

    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_addressString

Returns the current value of email_address.

Returns:

  • (String)

    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_nameString

Returns the current value of first_name.

Returns:

  • (String)

    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_numberString

Returns the current value of fiscal_number.

Returns:

  • (String)

    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_codeString

Returns the current value of language_code.

Returns:

  • (String)

    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_numberString

Returns the current value of phone_number.

Returns:

  • (String)

    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

#streetString

Returns the current value of street.

Returns:

  • (String)

    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

#surnameString

Returns the current value of surname.

Returns:

  • (String)

    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

#zipString

Returns the current value of zip.

Returns:

  • (String)

    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_hHash

Returns:

  • (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