Sha256: e2e362b23d44583bb6b9aab64165c96d71255d420f74b26acfd52410dc3092b1

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 Bytes

Contents

module Gateway

  class ShoppingCartItemCollection

    attr_accessor :ItemReference

    attr_accessor :Quantity

    attr_accessor :UnitCostInCents

    attr_accessor :TotalCostInCents

    attr_accessor :Name

    attr_accessor :Description

    attr_accessor :DiscountAmountInCents

    def to_json
      hash = {}
      instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
      hash
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.3.0 lib/gateway/ShoppingCart/shopping_cart_item.rb
stone_ecommerce-1.2.4 lib/gateway/ShoppingCart/shopping_cart_item.rb
mundipagg_sdk-1.2.4 lib/gateway/ShoppingCart/shopping_cart_item.rb
mundipagg_sdk-1.2.3 lib/gateway/ShoppingCart/shopping_cart_item.rb
mundipagg_sdk-1.2.3rc lib/gateway/ShoppingCart/shopping_cart_item.rb