Sha256: f2a957195e105853b200d8672ab2b13aabe71ae74c41a2f301b3975692925dcc

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 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.4.1 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
stone_ecommerce-1.4.0 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
mundipagg_sdk-1.4.0 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
stone_ecommerce-1.3.0 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
stone_ecommerce-1.2.3 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb