ach_client 0.6.5 → 0.6.6

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: 26f14e345c784fd2a558e5b6ee679341732a96cb
4
- data.tar.gz: f8c85acfa9ac9135bcc6f5d7d6f1cf92c84d01e0
3
+ metadata.gz: 53af6bdeb431e497b2cb9973ffd59fc02f6aa6b6
4
+ data.tar.gz: 41ff3a0115650a12f627c3cdfca4500301ca4225
5
5
  SHA512:
6
- metadata.gz: 87476c5fb0d58e70c3e1743d9208d28e472093c1d618958f981ed3126c08fff3eb44f514e16a490e68e3edc6be972ab5b98597f895eb363e94458b13a664180e
7
- data.tar.gz: 0c23bcb7667c90adb97736fdc7fbd7f780707bf16a41b2cb240faef2517b054d6ad8f4554c6d74b25a67c221538d6806cfc7599abbf6a199c8aaacdb61ad3640
6
+ metadata.gz: e871b86cb7045baaac422410b22fee420a3db22f1a6c2d82b479b446d785a55ed4ff1f0208747bd304280c3bcda1d4a9d3fbfc7c04d1db433f22d9e7b512ffda
7
+ data.tar.gz: eb17248f02c4549b71d529747584b7e8db55d9e4662e246bbf4ca13f17a77e01feb93083ca0b73a4210918f8179ade147563b33d1b143a3c62d13b363f18a43d
@@ -7,7 +7,11 @@ module AchClient
7
7
  # they are discovered
8
8
  KNOWN_ERROR_STRINGS = [
9
9
  # ICheckGateway has a rate limit of 20 requests per calendar day
10
- "ACCESS DENIED: Report Call Limit Exceeded"
10
+ "ACCESS DENIED: Report Call Limit Exceeded",
11
+ # The date range can't be wider than 15 days
12
+ "ACCESS DENIED: Date Range Exceeds 15 Days",
13
+ # Because so far they all contain ACCESS_DENIED:
14
+ "ACCESS_DENIED"
11
15
  ]
12
16
 
13
17
  ##
@@ -25,7 +29,7 @@ module AchClient
25
29
  def self.check_for_errors(record)
26
30
  KNOWN_ERROR_STRINGS.each do |error_string|
27
31
  if record.include?(error_string)
28
- raise "Couldnt process ICheckGateway Response: #{error_string}"
32
+ raise "Couldnt process ICheckGateway Response: #{record}"
29
33
  end
30
34
  end
31
35
  end
@@ -1,4 +1,4 @@
1
1
  module AchClient
2
2
  # Increment this when changes are published
3
- VERSION = '0.6.5'
3
+ VERSION = '0.6.6'
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: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Cotter