Skip to content

Commit

Permalink
configs: remove default responses, move to readme
Browse files Browse the repository at this point in the history
There's an issue with merging arrays that this "solves."
  • Loading branch information
adamdecaf committed Mar 17, 2021
1 parent 96e8633 commit ae44be5
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 35 deletions.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,52 @@ action:
code: <string>
```
## Examples
### Return Debits between two values
```
- match:
debit: {} # remove if you want to return Credits and Debits
amount:
min: 100000 # $1,000
min: 120000 # $1,200
action:
return:
code: "R01"
```
### Return a specific TraceNumber
```
- match:
# This matches ./examples/ppd-debit.ach
traceNumber: "121042880000001"
action:
return:
code: "R03"
```
### Correct an account number
```
- match:
# This matches ./examples/utility-bill.ach
accountNumber: "744-5678-99"
action:
correction:
code: "C01"
data: "744567899"
```
### Copy all entries for a routing number
```
- match:
routingNumber: "111222337"
action:
copy:
path: "/reconciliation/"
```
## Getting Help
channel | info
Expand Down
36 changes: 1 addition & 35 deletions configs/config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,4 @@ ACHTestHarness:
Address: ":3333"
Matching:
Debug: false
Responses:
- match:
# This matches ./examples/ppd-debit.ach
accountNumber: "12345678"
traceNumber: "121042880000001"
action:
return:
code: "R03"
- match:
debit: {}
amount:
min: 100000 # $1,000
min: 120000 # $1,200
action:
return:
code: "R01"
- match:
accountNumber: "987654321"
amount:
value: 45121 # $451.21
action:
return:
code: "R01"
- match:
# This matches ./examples/utility-bill.ach
accountNumber: "744-5678-99"
action:
correction:
code: "C01"
data: "744567899"
- match:
routingNumber: "111222337"
action:
copy:
path: "/reconciliation/"
Responses: []

0 comments on commit ae44be5

Please sign in to comment.