[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: cli: make a facade
From: |
gnunet |
Subject: |
[libeufin] branch master updated: cli: make a facade |
Date: |
Tue, 06 Oct 2020 17:18:32 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 42ff9ca cli: make a facade
42ff9ca is described below
commit 42ff9cabe8fd9fe59711997ca66001aff36cdd2e
Author: MS <ms@taler.net>
AuthorDate: Tue Oct 6 17:18:24 2020 +0200
cli: make a facade
---
cli/libeufin-cli | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index 60f98b1..6183b02 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -39,6 +39,12 @@ General utility to invoke HTTP REST services offered by
Nexus.
def cli():
pass
+@cli.group()
+@click.pass_context
+def taler_facade(ctx):
+ ctx.obj = NexusAccess(*fetch_env())
+ pass
+
@cli.group()
@click.pass_context
def connections(ctx):
@@ -290,6 +296,29 @@ def transactions(obj, account_name):
return
print(resp.content.decode("utf-8"))
+@taler_facade.command(help="create a new Taler facade")
+@click.option("--facade-name", help="Name of the Taler facade", required=True)
+@click.argument("connection-name")
+@click.argument("account-name")
+@click.pass_obj
+def new_facade(obj, facade_name, connection_name, account_name):
+ url = urljoin(nexus_base_url, "/facades")
+ try:
+ resp = post(url, json=dict(
+ name=facade_name,
+ type="taler-wire-gateway",
+ creator=nexus_user_id,
+ config=dict(
+ bankAccount=account_name,
+ bankConnection=connection_name,
+ reserveTransferLevel="UNUSED",
+ intervalIncremental="UNUSED"
+ )
+ ))
+ except Exception:
+ print("Could not reach sandbox")
+ return
+ print(resp.content.decode("utf-8"))
@sandbox.command(help="activate a Ebics host")
@click.option("--host-id", help="Ebics host ID", required=True)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: cli: make a facade,
gnunet <=