Sha256: e9e2234915db61d961d09865cd46545c43f0d81d293c7001381ed5fe953cd7fe

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

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