Sha256: e21e62511d9b09915bba43f1b0593e55ba1d0adf521ccb5133b427018dba9bf2

Contents?: true

Size: 611 Bytes

Versions: 9

Compression:

Stored size: 611 Bytes

Contents

class CreditCardTransaction

  attr_accessor :CreditCard

  attr_accessor :Options

  attr_accessor :Recurrency

  attr_accessor :AmountInCents

  attr_accessor :InstallmentCount

  attr_accessor :CreditCardOperation

  attr_accessor :TransactionReference

  attr_accessor :TransactionDateInMerchant


  def initialize
    @Options = CreditCardTransactionOptions.new
    @Recurrency = Recurrency.new
    @CreditCard = CreditCard.new
  end

  def to_json
    hash = {}
    instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
    hash
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
mundipagg_sdk-1.0.1 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
mundipagg_sdk-1.0.0 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
mundipagg_api-1.3.1 lib/mundipagg/CreditCardTransaction/credit_card_transaction.rb
mundipagg_api-1.3.0 lib/mundipagg/CreditCardTransaction/credit_card_transaction.rb
mundipagg_api-1.1.1 lib/mundipagg/CreditCardTransaction/credit_card_transaction.rb
mundipagg_api-1.1.0 lib/mundipagg/CreditCardTransaction/credit_card_transaction.rb
mundipagg_api-1.0.1 lib/mundipagg/CreditCardTransaction/credit_card_transaction.rb
mundipagg_api-1.0.0 lib/mundipagg/CreditCardTransaction/credit_card_transaction.rb