Sha256: f017518fc4837ad287d9edf28d798ad16c9d30c60dda161ad4b6a43a94ccdc97

Contents?: true

Size: 767 Bytes

Versions: 9

Compression:

Stored size: 767 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/Sale/create_sale_request.rb
mundipagg_sdk-1.0.1 lib/gateway/Sale/create_sale_request.rb
mundipagg_sdk-1.0.0 lib/gateway/Sale/create_sale_request.rb
mundipagg_api-1.3.1 lib/mundipagg/Sale/create_sale_request.rb
mundipagg_api-1.3.0 lib/mundipagg/Sale/create_sale_request.rb
mundipagg_api-1.1.1 lib/mundipagg/Sale/create_sale_request.rb
mundipagg_api-1.1.0 lib/mundipagg/Sale/create_sale_request.rb
mundipagg_api-1.0.1 lib/mundipagg/Sale/create_sale_request.rb
mundipagg_api-1.0.0 lib/mundipagg/Sale/create_sale_request.rb