class Ingenico::Connect::SDK::Domain::Product::GetCustomerDetailsResponse

@attr [String] city @attr [String] country @attr [String] email_address @attr [String] first_name @attr [String] fiscal_number @attr [String] language_code @attr [String] phone_number @attr [String] street @attr [String] surname @attr [String] zip

Attributes

city[RW]
country[RW]
email_address[RW]
first_name[RW]
fiscal_number[RW]
language_code[RW]
phone_number[RW]
street[RW]
surname[RW]
zip[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb, line 59
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() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb, line 44
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