libeufin

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

commit bdd8291f73833389c50ca5e540881279222c5863
parent 91aeb349866471ccc06b6535df12ee7947c3a16c
Author: Florian Dold <florian@dold.me>
Date:   Wed, 13 Jan 2021 17:16:06 +0100

cli

Diffstat:
Mcli/bin/libeufin-cli | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli @@ -499,12 +499,24 @@ def create_ebics_subscriber(obj, host_id, partner_id, user_id): exit(1) print(resp.content.decode("utf-8")) +@sandbox_ebicssubscriber.command("list", help="List EBICS subscribers.") +@click.pass_obj +def create_ebics_subscriber(obj): + sandbox_base_url = obj.require_sandbox_base_url() + url = urljoin(sandbox_base_url, "/admin/ebics/subscribers") + try: + resp = get(url) + except Exception: + print("Could not reach sandbox") + exit(1) + print(resp.content.decode("utf-8")) + @sandbox.group("ebicsbankaccount", help="manage EBICS bank accounts") @click.pass_context def sandbox_ebicsbankaccount(ctx): pass -@sandbox_ebicsbankaccount.command("create", help="associate a bank account to a Ebics subscriber") +@sandbox_ebicsbankaccount.command("create", help="Create a bank account associated to an EBICS subscriber.") @click.option("--iban", help="IBAN", required=True) @click.option("--bic", help="BIC", required=True) @click.option("--person-name", help="bank account owner name", required=True)