Class: Iyzi::PkiBuilders::Buyer

Inherits:
Iyzi::PkiBuilder show all
Defined in:
lib/iyzi/pki_builders/buyer.rb

Constant Summary collapse

ATTRIBUTES_ORDER =
%w{
  id
  name
  surname
  identityNumber
  email
  gsmNumber
  registrationDate
  lastLoginDate
  registrationAddress
  city
  country
  zipCode
  ip
}.freeze
TYPE_CAST =
{
  registrationDate: 'add_date',
  lastLoginDate:    'add_date'
}.freeze

Constants inherited from Iyzi::PkiBuilder

Iyzi::PkiBuilder::DEFAULT_ADD_METHOD

Instance Attribute Summary

Attributes inherited from Iyzi::PkiBuilder

#ordered_keys, #params

Instance Method Summary collapse

Methods inherited from Iyzi::PkiBuilder

#add, #add_address, #add_array, #add_basket_items, #add_buyer, #add_date, #add_payment_card, #add_price, #add_store_card, #convert_str, #ordered_params, #parse_date, #prepare_request_string, #request_string

Constructor Details

#initialize(values = {}) ⇒ Buyer

Returns a new instance of Buyer.



25
26
27
# File 'lib/iyzi/pki_builders/buyer.rb', line 25

def initialize(values = {})
  super(values, ATTRIBUTES_ORDER, TYPE_CAST)
end