Sha256: 37dd3681c627f41dea3aa4fc7aa49d11ee08c8bd5b1c61f4e8a5aeda14473366
Contents?: true
Size: 899 Bytes
Versions: 4
Compression:
Stored size: 899 Bytes
Contents
require_relative 'sale_order_data' require_relative '../../gateway/AntiFraud/query_sale_anti_fraud_analysis_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 @AntiFraudAnalysisData = QuerySaleAntiFraudAnalysisData.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
4 entries across 4 versions & 2 rubygems