Sha256: 29674c0ef2486b6a7b6833a7fefc54e97a0408709813787ed2d64e78377c2700

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stone_ecommerce-1.0.3 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
mundipagg_sdk-1.0.3 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
stone_ecommerce-1.0.2 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
stone_ecommerce-1.0.0 lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb