Sha256: b45a990af49e28671fb03e076f739f4c47e499580df7a8e9b4e21d8ef0940eb9

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

module Gateway

  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
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.3.0 lib/gateway/Sale/query_sale_request.rb
stone_ecommerce-1.2.4 lib/gateway/Sale/query_sale_request.rb
mundipagg_sdk-1.2.4 lib/gateway/Sale/query_sale_request.rb
mundipagg_sdk-1.2.3 lib/gateway/Sale/query_sale_request.rb
mundipagg_sdk-1.2.3rc lib/gateway/Sale/query_sale_request.rb