aboutsummaryrefslogtreecommitdiff
path: root/sandbox
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2020-01-28 20:50:44 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2020-01-28 20:50:44 +0100
commitabe150db818a66826589ab793917dd8bc5d83ddf (patch)
tree379bc6ac0ca12924bf8893e0e9d4b06291e8d0c6 /sandbox
parent849bca95be1cd6f772457ab5f974c58c62ecf6bf (diff)
downloadlibeufin-abe150db818a66826589ab793917dd8bc5d83ddf.tar.gz
libeufin-abe150db818a66826589ab793917dd8bc5d83ddf.tar.bz2
libeufin-abe150db818a66826589ab793917dd8bc5d83ddf.zip
Implement HEV in the Nexus (to test).
Diffstat (limited to 'sandbox')
-rwxr-xr-xsandbox/src/main/python/libeufin-cli17
1 files changed, 17 insertions, 0 deletions
diff --git a/sandbox/src/main/python/libeufin-cli b/sandbox/src/main/python/libeufin-cli
index 68de4c06..058431dc 100755
--- a/sandbox/src/main/python/libeufin-cli
+++ b/sandbox/src/main/python/libeufin-cli
@@ -109,6 +109,23 @@ def native(ctx, sandbox_base_url):
ctx.obj.update(sandbox_base_url=sandbox_base_url)
pass
+@ebics.command(help="Send the HEV message to the bank.")
+@click.pass_obj
+@click.option(
+ "--customer_id",
+ help="Customer id",
+ required=True
+)
+def send_hev(customer_id):
+ url = urljoin(obj["nexus_base_url"], "/ebics/{}/sendHev".format(customer_id))
+ try:
+ resp = get(url)
+ except Exception:
+ print("Unsuccessful request")
+ return
+
+ print(resp.content.decode("utf-8"))
+
@ebics.command(help="Restore private keys backup.")
@click.pass_obj
@click.option(