Sha256: ab4cb94996965c6c909d6d4ebf217f76045684a32009dcc25d2fd1236f0cd127

Contents?: true

Size: 756 Bytes

Versions: 5

Compression:

Stored size: 756 Bytes

Contents

require_relative 'sale_order_data'

class SaleData
  # Lista transações de cartão de crédito
  attr_accessor :CreditCardTransactionDataCollection

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

  # Dados do pedido
  attr_accessor :OrderData

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

  # Dados de serviço do antifraude
  attr_accessor :AntiFraudAnalysisData

  def initialize
    @CreditCardTransactionDataCollection = Array.new
    @BoletoTransactionDataCollection = Array.new
    @OrderData = SaleOrderData.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

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.4.1 lib/gateway/Sale/sale_data.rb
stone_ecommerce-1.4.0 lib/gateway/Sale/sale_data.rb
mundipagg_sdk-1.4.0 lib/gateway/Sale/sale_data.rb
stone_ecommerce-1.3.0 lib/gateway/Sale/sale_data.rb
stone_ecommerce-1.2.3 lib/gateway/Sale/sale_data.rb