ach_client 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d140b0751adee4c2f924f737d9533bf084656ff330e6ebd2f764cede1cac4bf7
|
4
|
+
data.tar.gz: 91340a5b05226ad8e2f1eeeeac110415187a7bb7341c45d155720e143e93b165
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4affcfdf1085e60c06bf45916cea073f02b83e70bcae42e6e0f4ba9b774aa7695c82676344a2de91a4e0b294663aad91af3cbd055a34b9012f009e2775fcaecf
|
7
|
+
data.tar.gz: 2d9dc7b4c4f4ec66665e8cb74b646d8f21606adab21058c44a74b5451926f1e98cf4a8bf40f905167bfa8f9e388ce7aec2e18d163ee8cffd26e00c3227e3c259
|
data/README.md
CHANGED
@@ -337,6 +337,7 @@ these new classes using the same interface described above for the API providers
|
|
337
337
|
| `outgoing_path` | Path on the remote server where bank has asked you to dump your NACHAs |
|
338
338
|
| `incoming_path` | Path on the remote server where the bank leaves confirmation/return files |
|
339
339
|
| `file_naming_strategy` | Function to define filenames for the NACHA files |
|
340
|
+
| `transmission_datetime_calculator` | (optional) Function to define File Creation Date header value - defaults to `-> { Time.now }` - note that you may wish to override this to use a non-UTC zone |
|
340
341
|
|
341
342
|
#### File Naming Strategy
|
342
343
|
|
@@ -62,7 +62,8 @@ module AchClient
|
|
62
62
|
:immediate_destination,
|
63
63
|
:immediate_destination_name,
|
64
64
|
:immediate_origin,
|
65
|
-
:immediate_origin_name
|
65
|
+
:immediate_origin_name,
|
66
|
+
:transmission_datetime
|
66
67
|
].each do |attribute|
|
67
68
|
file_header.send("#{attribute}=", self.class.parent.send(attribute))
|
68
69
|
end
|
@@ -25,6 +25,13 @@ module AchClient
|
|
25
25
|
# @return [String] originating_dfi_identification refers to your bank?
|
26
26
|
# originating_dfi => "Originating Depository Financial Institution"
|
27
27
|
class_attribute :originating_dfi_identification
|
28
|
+
|
29
|
+
# @return [Proc<Time>] method to calculate the File Creation Date for NACHA header
|
30
|
+
class_attribute :transmission_datetime_calculator, default: -> { Time.now }
|
31
|
+
|
32
|
+
def self.transmission_datetime
|
33
|
+
transmission_datetime_calculator.call
|
34
|
+
end
|
28
35
|
end
|
29
36
|
end
|
30
37
|
end
|
data/lib/ach_client/version.rb
CHANGED