Skip to content

Commit ae44be5

Browse files
committed
configs: remove default responses, move to readme
There's an issue with merging arrays that this "solves."
1 parent 96e8633 commit ae44be5

File tree

2 files changed

+47
-35
lines changed

2 files changed

+47
-35
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,52 @@ action:
8080
code: <string>
8181
```
8282
83+
## Examples
84+
85+
### Return Debits between two values
86+
87+
```
88+
- match:
89+
debit: {} # remove if you want to return Credits and Debits
90+
amount:
91+
min: 100000 # $1,000
92+
min: 120000 # $1,200
93+
action:
94+
return:
95+
code: "R01"
96+
```
97+
98+
### Return a specific TraceNumber
99+
100+
```
101+
- match:
102+
# This matches ./examples/ppd-debit.ach
103+
traceNumber: "121042880000001"
104+
action:
105+
return:
106+
code: "R03"
107+
```
108+
109+
### Correct an account number
110+
```
111+
- match:
112+
# This matches ./examples/utility-bill.ach
113+
accountNumber: "744-5678-99"
114+
action:
115+
correction:
116+
code: "C01"
117+
data: "744567899"
118+
```
119+
120+
### Copy all entries for a routing number
121+
```
122+
- match:
123+
routingNumber: "111222337"
124+
action:
125+
copy:
126+
path: "/reconciliation/"
127+
```
128+
83129
## Getting Help
84130
85131
channel | info

configs/config.default.yml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,4 @@ ACHTestHarness:
1818
Address: ":3333"
1919
Matching:
2020
Debug: false
21-
Responses:
22-
- match:
23-
# This matches ./examples/ppd-debit.ach
24-
accountNumber: "12345678"
25-
traceNumber: "121042880000001"
26-
action:
27-
return:
28-
code: "R03"
29-
- match:
30-
debit: {}
31-
amount:
32-
min: 100000 # $1,000
33-
min: 120000 # $1,200
34-
action:
35-
return:
36-
code: "R01"
37-
- match:
38-
accountNumber: "987654321"
39-
amount:
40-
value: 45121 # $451.21
41-
action:
42-
return:
43-
code: "R01"
44-
- match:
45-
# This matches ./examples/utility-bill.ach
46-
accountNumber: "744-5678-99"
47-
action:
48-
correction:
49-
code: "C01"
50-
data: "744567899"
51-
- match:
52-
routingNumber: "111222337"
53-
action:
54-
copy:
55-
path: "/reconciliation/"
21+
Responses: []

0 commit comments

Comments
 (0)