ach_client 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/ach_client/objects/return_code.rb +18 -0
- data/lib/ach_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e39e1785104fd318567822771daffe0f439f9f65
|
4
|
+
data.tar.gz: 75e2babc7151aab7be0cfe06f7a6c89774e9a558
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd1d87a43792f35f605f303f47509855d2ff814d59c4f502f90c9c782fcbb4f41300883b4ba22eb3414d6f1d4117e4a1b4842f04b6460e5d55a33fda334b1250
|
7
|
+
data.tar.gz: 4c2711dc6bbac757216c623cd27752274cb031455896b7347eb8c3c37d05fda9e4ce500a3a83aea4f78dc5a2e6e14c6f0159c552dd5928a807e1ae8cac5d12bf
|
data/.gitignore
CHANGED
@@ -3,6 +3,12 @@ module AchClient
|
|
3
3
|
# See config/return_codes.yml for our list.
|
4
4
|
class ReturnCode
|
5
5
|
|
6
|
+
# The first character in a correction code
|
7
|
+
CORRECTION_START_CHARACTER = 'C'
|
8
|
+
|
9
|
+
# The first character in an internal return code
|
10
|
+
INTERNAL_START_CHARACTER = 'X'
|
11
|
+
|
6
12
|
attr_accessor :code,
|
7
13
|
:description,
|
8
14
|
:reason
|
@@ -16,5 +22,17 @@ module AchClient
|
|
16
22
|
@description = description
|
17
23
|
@reason = reason
|
18
24
|
end
|
25
|
+
|
26
|
+
# @return Whether or not this return is a correction/notice of change
|
27
|
+
def correction?
|
28
|
+
@code.start_with?(CORRECTION_START_CHARACTER)
|
29
|
+
end
|
30
|
+
|
31
|
+
# @return Whether or not the return is internal
|
32
|
+
# An "internal" return means that the ACH provider knew that the ACH
|
33
|
+
# would fail and didn't bother to send it to their upstream provider
|
34
|
+
def internal?
|
35
|
+
@code.start_with?(INTERNAL_START_CHARACTER)
|
36
|
+
end
|
19
37
|
end
|
20
38
|
end
|
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.5.
|
4
|
+
version: 0.5.2
|
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-01-
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ach
|