class PaysonAPI::V2::Models::Customer

Attributes

city[RW]
country_code[RW]
email[RW]
first_name[RW]
identity_number[RW]
last_name[RW]
phone[RW]
postal_code[RW]
street[RW]
type[RW]

Public Class Methods

from_hash(hash) click to toggle source
# File lib/payson_api/v2/models/customer.rb, line 10
def self.from_hash(hash)
  new.tap do |customer|
    customer.city = hash['city']
    customer.country_code = hash['countryCode']
    customer.first_name = hash['firstName']
    customer.last_name = hash['lastName']
    customer.identity_number = hash['identityNumber']
    customer.email = hash['email']
    customer.postal_code = hash['postalCode']
    customer.phone = hash['phone']
    customer.street = hash['street']
    customer.type = hash['type']
  end
end