mirror of
https://github.com/valitydev/holmes.git
synced 2024-11-06 01:45:25 +00:00
5d9418c702
* Add script for batch refund processing
8 lines
188 B
Bash
Executable File
8 lines
188 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BATCH="${1}"
|
|
[ -z "${BATCH}" ] && exit 127
|
|
|
|
echo "${BATCH}" | \
|
|
jq '{id, postings:[.postings[] | {from_id:.to_id, to_id:.from_id, amount, currency_sym_code, description}]}'
|