libeufin

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

commit 977f984d917bca6026b6b491cba29a63580c415f
parent ec932fe5a8d38835e81c5b8888e0e96756a12590
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu, 19 Mar 2020 19:18:03 +0100

Equip CLI with CCC method.

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

diff --git a/cli/python/libeufin-cli b/cli/python/libeufin-cli @@ -581,6 +581,21 @@ def fetch_payment_status(ctx, account_id, date_range, nexus_base_url): return print(resp.content.decode("utf-8")) +@ebics.command(help="Picks the first unsubmitted payment and send it to the bank via CCC") +@click.pass_context +@click.argument( + "nexus-base-url" +) +def execute_payments_ccc(ctx, nexus_base_url): + try: + url = urljoin(nexus_base_url, "/ebics/admin/execute-payments-ccc") + resp = post(url) + except Exception as e: + print("Could not reach the Nexus", e) + return + + print(resp.content.decode("utf-8")) + @ebics.command(help="Picks the first unsubmitted payment and send it to the bank") @click.pass_context @click.argument(