Method: CyberSource::Ptsv2paymentsMerchantInformationServiceLocation#initialize

Defined in:
lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb

#initialize(attributes = {}) ⇒ Ptsv2paymentsMerchantInformationServiceLocation

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb', line 60

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'locality')
    self.locality = attributes[:'locality']
  end

  if attributes.has_key?(:'countrySubdivisionCode')
    self.country_subdivision_code = attributes[:'countrySubdivisionCode']
  end

  if attributes.has_key?(:'countryCode')
    self.country_code = attributes[:'countryCode']
  end

  if attributes.has_key?(:'postalCode')
    self.postal_code = attributes[:'postalCode']
  end
end