libeufin

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

commit 3059e32bf70bf25f58d65dbf4238c7d6906a589f
parent 5d44119fc98b17128667e53310769436a39292af
Author: ms <ms@taler.net>
Date:   Wed, 12 Jan 2022 20:14:35 +0100

Allow CLI to register public acconts.

Diffstat:
Mcli/bin/libeufin-cli | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli @@ -1259,13 +1259,20 @@ def sandbox_demobank_info(obj, bank_account): will be both the username to login at the bank and the bank account label""" ) +@click.option( + "--public", + required=False, + default=False, + help="Creates a public bank account", +) @click.pass_obj -def sandbox_demobank_register(obj): +def sandbox_demobank_register(obj, public): sandbox_base_url = obj.require_sandbox_base_url() url = urljoin_nodrop(sandbox_base_url, f"/access-api/testing/register") try: - resp = post(url, - json=dict(username=obj.username, password=obj.password), + resp = post( + url, + json=dict(username=obj.username, password=obj.password, isPublic=public), ) except Exception as e: print(e)