Sha256: 24f66547cf8d42450651224ae0136d88eda7c6d32ba60db33274f5903886635e

Contents?: true

Size: 919 Bytes

Versions: 4

Compression:

Stored size: 919 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

4 entries across 4 versions & 2 rubygems

Version Path
stone_ecommerce-1.0.3 lib/gateway/Sale/query_sale_request.rb
mundipagg_sdk-1.0.3 lib/gateway/Sale/query_sale_request.rb
stone_ecommerce-1.0.2 lib/gateway/Sale/query_sale_request.rb
stone_ecommerce-1.0.0 lib/gateway/Sale/query_sale_request.rb