Sha256: 46281b0f315d18db48cb92d630dde7fce6d70a8bf74aeb8a65ff02677a1dd650

Contents?: true

Size: 954 Bytes

Versions: 9

Compression:

Stored size: 954 Bytes

Contents

class QuerySaleRequest
  attr_accessor :OrderKey

  attr_accessor :OrderReference

  attr_accessor :CreditCardTransactionKey

  attr_accessor :CreditCardTransactionReference

  attr_accessor :BoletoTransactionKey

  attr_accessor :BoletoTransactionReference

  attr_accessor :QuerySaleRequestEnum

  # Enum feito para as chamadas do método query
  @@QuerySaleRequestEnum = {
      :OrderKey => 'OrderKey',
      :OrderReference => 'OrderReference',
      :CreditCardTransactionKey => 'CreditCardTransactionKey',
      :CreditCardTransactionReference => 'CreditCardTransactionReference',
      :BoletoTransactionKey => 'BoletoTransactionKey',
      :BoletoTransactionReference => 'BoletoTransactionReference'
  }

  def self.QuerySaleRequestEnum
    @@QuerySaleRequestEnum
  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/query_sale_request.rb
mundipagg_sdk-1.0.1 lib/gateway/Sale/query_sale_request.rb
mundipagg_sdk-1.0.0 lib/gateway/Sale/query_sale_request.rb
mundipagg_api-1.3.1 lib/mundipagg/Sale/query_sale_request.rb
mundipagg_api-1.3.0 lib/mundipagg/Sale/query_sale_request.rb
mundipagg_api-1.1.1 lib/mundipagg/Sale/query_sale_request.rb
mundipagg_api-1.1.0 lib/mundipagg/Sale/query_sale_request.rb
mundipagg_api-1.0.1 lib/mundipagg/Sale/query_sale_request.rb
mundipagg_api-1.0.0 lib/mundipagg/Sale/query_sale_request.rb