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: db2454a8ff3bb7662637a5cee010020ed14a3515d6eb47efe369ccbdc9bc4be4
4
- data.tar.gz: 57751a71e4e2b8875da5d045d21f2c75c9261ff909bb20a765b1dc6eeb7faf00
3
+ metadata.gz: d140b0751adee4c2f924f737d9533bf084656ff330e6ebd2f764cede1cac4bf7
4
+ data.tar.gz: 91340a5b05226ad8e2f1eeeeac110415187a7bb7341c45d155720e143e93b165
5
5
  SHA512:
6
- metadata.gz: 42622b2e2e29a203713131b2f0523110b52ec3e61a3f5c8c2a5166da5787f045daee6886ea1d5fb52a498b0bc9ca771cd3cb475706b5e542e4f037f265ffbea5
7
- data.tar.gz: febbaf712c3749e5417d55d9b247a7cde525a55e051be93bd44c0568392a6a5050cf42657971541869855516a66bc606d2ae16daf8da444a9b85b845816d66c2
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
@@ -1,4 +1,4 @@
1
1
  module AchClient
2
2
  # Increment this when changes are published
3
- VERSION = '3.0.0'
3
+ VERSION = '3.1.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ach_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Cotter