Sha256: afbec5746d852b851cf326520d828102e008c2fb2d1914f94caa49554bfe07a5

Contents?: true

Size: 809 Bytes

Versions: 9

Compression:

Stored size: 809 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iyzi-0.8.1 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.8.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.7.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.6.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.5.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.4.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.3.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.2.0 lib/iyzi/pki_builders/checkout_form.rb
iyzi-0.1.0 lib/iyzi/pki_builders/checkout_form.rb