libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit c1abb57ba8abb7b0b45d18fa4058ef70455c3ca9
parent 577a417a238358489366f113155549bff21478fc
Author: MS <ms@taler.net>
Date:   Fri, 15 Jan 2021 10:57:13 +0100

(Redundantly) asking direction for mock payments.

Diffstat:
Mcli/bin/libeufin-cli | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli @@ -808,6 +808,11 @@ def bankaccount_generate_transactions(obj, account_label): @click.option("--amount", help="amount, no currency", prompt=True) @click.option("--currency", help="currency", prompt=True) @click.option("--subject", help="payment subject", prompt=True) +@click.option( + "--direction", + help="direction respect to the bank account hosted at Sandbox: allows DBIT/CRDT values.", + prompt=True +) @click.pass_obj def book_payment( obj, @@ -820,6 +825,7 @@ def book_payment( amount, currency, subject, + direction, ): sandbox_base_url = obj.require_sandbox_base_url() url = urljoin(sandbox_base_url, "/admin/payments") @@ -833,6 +839,7 @@ def book_payment( amount=amount, currency=currency, subject=subject, + direction=direction ) try: resp = post(url, json=body)