Sha256: bdab8cd810b93b3915cfb1353481612917c065cf610e90534a044c0f5ff4b1ea

Contents?: true

Size: 477 Bytes

Versions: 10

Compression:

Stored size: 477 Bytes

Contents

module Iyzi
  module PkiBuilders
    class BasketItem < PkiBuilder
      ATTRIBUTES_ORDER = %w{
        id
        price
        name
        category1
        category2
        itemType
        subMerchantKey
        subMerchantPrice
      }.freeze

      TYPE_CAST = {
        price:            'add_price',
        subMerchantPrice: 'add_price'
      }.freeze

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

Version data entries

10 entries across 10 versions & 1 rubygems

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