Sha256: 38bf22b3d232fe5e85a67e2c92c084c6b907781b9705d12126890e657d1cab3b

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 KB

Contents

module AchClient
  # Base concern for providers like SVB and BOA that use NACHA format
  module NachaProvider
    extend ActiveSupport::Concern

    included do
      # @return [String] Immediate Destination ID provided by SVB, refers to SVB
      class_attribute :immediate_destination

      # @return [String] Immediate Destination Name provided by SVB, refers to SVB
      class_attribute :immediate_destination_name

      # @return [String] Immediate Origin ID provided by SVB, refers to you
      class_attribute :immediate_origin

      # @return [String] Immediate Origin Name provided by SVB, refers to you
      class_attribute :immediate_origin_name

      # @return [String] Company Identification provided by SVB, refers to you
      class_attribute :company_identification

      # @return [String] Company Entry Description, whatever that means
      class_attribute :company_entry_description

      # @return [String] originating_dfi_identification refers to your bank?
      # originating_dfi => "Originating Depository Financial Institution"
      class_attribute :originating_dfi_identification

      # @return [Proc<Time>] method to calculate the File Creation Date for NACHA header
      class_attribute :transmission_datetime_calculator, default: -> { Time.now }

      def self.transmission_datetime
        transmission_datetime_calculator.call
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ach_client-5.3.2 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-5.3.1 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-5.3.0 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-5.2.0 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-5.1.0 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-5.0.0 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-4.0.0 lib/ach_client/providers/sftp/nacha_provider.rb
ach_client-3.1.0 lib/ach_client/providers/sftp/nacha_provider.rb