lib/iyzi/pki_builders/checkout_form.rb
module Iyzi
module PkiBuilders
class CheckoutForm < PkiBuilder
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
def initialize(values = {})
super(values, ATTRIBUTES_ORDER, TYPE_CAST)
end
end
end
end