Method: AchClient::Sftp::AchStatusChecker.in_range

Defined in:
lib/ach_client/providers/sftp/ach_status_checker.rb

.in_range(start_date:, end_date:) ⇒ Hash{String => [AchClient::AchResponse]}

Gets the status of ach transactions between the given dates



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/ach_client/providers/sftp/ach_status_checker.rb', line 23

def self.in_range(start_date:, end_date:)
  in_range = {}
  self.module_parent.with_sftp_connection do |connection|
    in_range = process_files(
      files_in_range(
        connection: connection,
        start_date: start_date,
        end_date: end_date
      )
    )
  end
  in_range
end