ach_client 0.6.7 → 0.6.8

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
  SHA1:
3
- metadata.gz: 25a6f91853e2d339481de30d9f4906c30097292f
4
- data.tar.gz: 639d4d67290731fe3d8f4ad60c71722d88b9d3e4
3
+ metadata.gz: 2d11d4f11d7798de68161c055bd3813b48c8c825
4
+ data.tar.gz: f16abf9d6efe1cf2b98e82645658e178a698309d
5
5
  SHA512:
6
- metadata.gz: 439a49ca24e8cc36de4ce77d11097116798df9b10cdd42c04d5a4525d1b7e97b2045ac2c6eb5d8aa304ddf1ca19151df38484c5fdc63cd4cc7899a860d126592
7
- data.tar.gz: 24ed20359c230a47345c49dbf421ad54a4afbd219a3fa41305afc54743fb94ecd1f6d03a27f3deff20f3117110a864792929e74d7f062de3803b109b804a1ced
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),
@@ -1,4 +1,4 @@
1
1
  module AchClient
2
2
  # Increment this when changes are published
3
- VERSION = '0.6.7'
3
+ VERSION = '0.6.8'
4
4
  end
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.7
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-10 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ach