Sha256: 73c07c52b2db81fbddec61de1e5670dd5b7f6b894d669205cfb1d128aff3be20

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 Bytes

Contents

module Iyzi
  module PkiBuilders
    class CheckoutForm < PkiBuilder
      ATTRIBUTES_ORDER = %w{
        locale
        conversationId
        price
        basketId
        paymentGroup
        buyer
        shippingAddress
        billingAddress
        basketItems
        callbackUrl
        paymentSource
        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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iyzi-0.0.1 lib/iyzi/pki_builders/checkout_form.rb