ach_client 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d11d4f11d7798de68161c055bd3813b48c8c825
|
|
4
|
+
data.tar.gz: f16abf9d6efe1cf2b98e82645658e178a698309d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36dfae94d6242fafd729fc5d0a21cf9ff23d130ceb303f14ca0b1d9181d0c72630f5cfc32af3df290b9f5c4128c47190775d016af1977d7536f4ec0a8fde1d8d
|
|
7
|
+
data.tar.gz: d0ebf4105244973ee008d7441a10e2e74881d701afce322e6fc05e0a9685cc7393e66e01dd5a01c383533fbe172469fafa866608dc7994e9f828e69b2f859548
|
|
@@ -4,6 +4,9 @@ module AchClient
|
|
|
4
4
|
# AchWorks implementation for AchTransaction
|
|
5
5
|
class AchTransaction < Abstract::AchTransaction
|
|
6
6
|
|
|
7
|
+
# Only allows for merchant length of less than or equal to 22.
|
|
8
|
+
MAX_MERCHANT_NAME_LENGTH = 22.freeze
|
|
9
|
+
|
|
7
10
|
##
|
|
8
11
|
# @param super [Array] args from parent class
|
|
9
12
|
# @param customer_id [String] optional identifier for the customer
|
|
@@ -33,7 +36,7 @@ module AchClient
|
|
|
33
36
|
SSS: AchClient::AchWorks.s_s_s,
|
|
34
37
|
LocID: AchClient::AchWorks.loc_i_d,
|
|
35
38
|
FrontEndTrace: front_end_trace,
|
|
36
|
-
CustomerName: merchant_name,
|
|
39
|
+
CustomerName: merchant_name[0..(MAX_MERCHANT_NAME_LENGTH-1)],
|
|
37
40
|
CustomerRoutingNo: routing_number.to_s,
|
|
38
41
|
CustomerAcctNo: account_number.to_s,
|
|
39
42
|
OriginatorName: originator_name.try(:first, 16),
|
data/lib/ach_client/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ach_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zach Cotter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ach
|