Sha256: dcf81c27fb4f287b6708f2b0e00628e562e1d243ff03a583df488fa102e2c8cf

Contents?: true

Size: 669 Bytes

Versions: 9

Compression:

Stored size: 669 Bytes

Contents

class CreateSaleResponse
  # Lista as transações de Cartão de Crédito
  attr_accessor :CreditCardTransactionResultCollection

  # Lista as transações de boleto
  attr_accessor :BoletoTransactionResultCollection

  # Dados de retorno do pedido
  attr_accessor :OrderResult

  # Chave do comprador. Utilizada para identificar um comprador no gateway
  attr_accessor :BuyerKey

  def initialize
    @CreditCardTransactionResultCollection = Array.new
    @BoletoTransactionResultCollection = Array.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_response.rb
mundipagg_sdk-1.0.1 lib/gateway/Sale/create_sale_response.rb
mundipagg_sdk-1.0.0 lib/gateway/Sale/create_sale_response.rb
mundipagg_api-1.3.1 lib/mundipagg/Sale/create_sale_response.rb
mundipagg_api-1.3.0 lib/mundipagg/Sale/create_sale_response.rb
mundipagg_api-1.1.1 lib/mundipagg/Sale/create_sale_response.rb
mundipagg_api-1.1.0 lib/mundipagg/Sale/create_sale_response.rb
mundipagg_api-1.0.1 lib/mundipagg/Sale/create_sale_response.rb
mundipagg_api-1.0.0 lib/mundipagg/Sale/create_sale_response.rb