Sha256: b3771dec4d69fad8fa9d4676cf0dad3768c4f50b9afc29d9a4fbe431e1465eea
Contents?: true
Size: 786 Bytes
Versions: 5
Compression:
Stored size: 786 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