Sha256: ebe9d5822fc9a6c8e1a466046f87c10b1c74140a5bbc1d86fd9e2d6e71fccf96

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

module Gateway

# classe para usar nos metodos de cancel e capture
  class ManageCreditCardTransaction
    attr_accessor :AmountInCents
    attr_accessor :TransactionKey
    attr_accessor :TransactionReference

    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/CreditCardTransaction/manage_credit_card_transaction.rb
stone_ecommerce-1.2.4 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
mundipagg_sdk-1.2.4 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
mundipagg_sdk-1.2.3 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
mundipagg_sdk-1.2.3rc lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb