Sha256: 99fcb61b169aedf4d6524cbd9e54ec75f38dc04a07227559639b49f079e8cd9c

Contents?: true

Size: 802 Bytes

Versions: 5

Compression:

Stored size: 802 Bytes

Contents

module Gateway

  class CreateSaleRequest

    attr_accessor :CreditCardTransactionCollection

    attr_accessor :BoletoTransactionCollection

    attr_accessor :Order

    attr_accessor :Buyer

    attr_accessor :ShoppingCartCollection

    attr_accessor :Options

    attr_accessor :Merchant

    attr_accessor :RequestData

    def initialize
      @CreditCardTransactionCollection = Array.new
      @BoletoTransactionCollection = Array.new
      @ShoppingCartCollection = Array.new
      @Buyer = Buyer.new
      @RequestData = RequestData.new
      @Options = SalesOption.new
      @Merchant = Merchant.new
      @Order = Order.new
    end

    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.4.1 lib/gateway/Sale/create_sale_request.rb
stone_ecommerce-1.4.0 lib/gateway/Sale/create_sale_request.rb
mundipagg_sdk-1.4.0 lib/gateway/Sale/create_sale_request.rb
stone_ecommerce-1.3.0 lib/gateway/Sale/create_sale_request.rb
stone_ecommerce-1.2.3 lib/gateway/Sale/create_sale_request.rb