Sha256: e0774ed646676b77228c06a35ab222cc74f27b425abccb0afb115dfb8bf3e741

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

module GenesisRuby
  module Api
    module Requests
      module Base
        module Financials
          # Base Class used for all transaction request containing Credit Card data
          class CreditCard < GenesisRuby::Api::Requests::Base::Financial

            include Mixins::Requests::Financial::Cards::AccountOwnerAttributes
            include Mixins::Requests::Financial::Cards::CreditCardAttributes
            include Mixins::Requests::Financial::Cards::TokenizationAttributes
            include Mixins::Requests::Financial::PaymentAttributes

            def init_required_fields
              self.required_fields = %i[transaction_id amount currency]
            end

            protected

            # Credit Card attributes
            def payment_transaction_structure
              payment_attributes_structure.merge(
                credit_card_attributes_structure, tokenization_attributes_structure,
                { account_owner: account_owner_attributes_structure }
              )
            end

          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
genesis_ruby-0.1.7 lib/genesis_ruby/api/requests/base/financials/credit_card.rb
genesis_ruby-0.1.6 lib/genesis_ruby/api/requests/base/financials/credit_card.rb
genesis_ruby-0.1.5 lib/genesis_ruby/api/requests/base/financials/credit_card.rb