Sha256: 3e667863367f4df46d43a539768b14ebdad9242525bf6f8d566436d31d3ce3b5

Contents?: true

Size: 580 Bytes

Versions: 4

Compression:

Stored size: 580 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

4 entries across 4 versions & 2 rubygems

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