Sha256: 8b93321fd130292cc2cdfe13a658c5fa8ebde2a7e5fa01a3bc52d027b15f0392

Contents?: true

Size: 673 Bytes

Versions: 5

Compression:

Stored size: 673 Bytes

Contents

module Gateway

  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
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.3.0 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
stone_ecommerce-1.2.4 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
mundipagg_sdk-1.2.4 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
mundipagg_sdk-1.2.3 lib/gateway/CreditCardTransaction/credit_card_transaction.rb
mundipagg_sdk-1.2.3rc lib/gateway/CreditCardTransaction/credit_card_transaction.rb