diff options
author | Florian Dold <florian@dold.me> | 2021-01-13 17:16:06 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-13 17:16:06 +0100 |
commit | bdd8291f73833389c50ca5e540881279222c5863 (patch) | |
tree | 0ff91f8c5664fe6894566dea57cb6ec30f595c10 /cli | |
parent | 91aeb349866471ccc06b6535df12ee7947c3a16c (diff) | |
download | libeufin-bdd8291f73833389c50ca5e540881279222c5863.tar.gz libeufin-bdd8291f73833389c50ca5e540881279222c5863.tar.bz2 libeufin-bdd8291f73833389c50ca5e540881279222c5863.zip |
cli
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/bin/libeufin-cli | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli index 0fd355d2..ed794360 100755 --- 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) |