Class: Iyzi::PkiBuilders::CheckoutForm

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

Constant Summary collapse

ATTRIBUTES_ORDER =
%w{
  locale
  conversationId
  price
  basketId
  paymentGroup
  buyer
  shippingAddress
  billingAddress
  basketItems
  callbackUrl
  paymentSource
  currency
  posOrderId
  paidPrice
  forceThreeDS
  cardUserKey
}.freeze
TYPE_CAST =
{
  price:           'add_price',
  buyer:           'add_buyer',
  shippingAddress: 'add_address',
  billingAddress:  'add_address',
  basketItems:     'add_basket_items',
  paidPrice:       'add_price'
}.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 = {}) ⇒ CheckoutForm

Returns a new instance of CheckoutForm.



32
33
34
# File 'lib/iyzi/pki_builders/checkout_form.rb', line 32

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