Class: AchClient::SiliconValleyBank::AchFilenameBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/ach_client/providers/sftp/silicon_valley_bank/ach_filename_builder.rb

Overview

Class for dealing with SVB's file naming conventions

Class Method Summary collapse

Class Method Details

.next_file_nameString

Connects to the remote server, and finds the next valid filename you can use for upload Starts with “ACHP” Followed by formatted date Followed by “Sequence Number”, see below This strategy will be a problem if we are ever sending ACH batches concurrently

Returns:

  • (String)

    the next filename you should use



14
15
16
17
# File 'lib/ach_client/providers/sftp/silicon_valley_bank/ach_filename_builder.rb', line 14

def self.next_file_name
  # ACHP means it is an ACH.
  "ACHP#{file_date}#{sequence_number}"
end