Sha256: 258e2acbd0e6ebbc9775432c187227c9601a5bffa942c7daf7f003c16bad94f5
Contents?: true
Size: 933 Bytes
Versions: 6
Compression:
Stored size: 933 Bytes
Contents
require_relative 'sale_order_data' require_relative '../../mundipagg/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
6 entries across 6 versions & 1 rubygems