[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: CLI: command to query status of paymen
From: |
gnunet |
Subject: |
[libeufin] branch master updated: CLI: command to query status of payments. |
Date: |
Tue, 03 Mar 2020 19:18:48 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new c8302ad CLI: command to query status of payments.
c8302ad is described below
commit c8302ad5cfbc62bcfea7ab59ca53a837f871416b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 3 19:18:29 2020 +0100
CLI: command to query status of payments.
---
sandbox/src/main/python/libeufin-cli | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/sandbox/src/main/python/libeufin-cli
b/sandbox/src/main/python/libeufin-cli
index fb91f4d..34b8ad6 100755
--- a/sandbox/src/main/python/libeufin-cli
+++ b/sandbox/src/main/python/libeufin-cli
@@ -570,6 +570,27 @@ def prepare(ctx, account_id, nexus_base_url):
ctx.invoke(hia, account_id=account_id, nexus_base_url=nexus_base_url)
ctx.invoke(sync, account_id=account_id, nexus_base_url=nexus_base_url)
+@ebics.command(help="Show status of payments")
+@click.pass_context
+@click.option(
+ "--account-id",
+ help="Numerical ID of the customer at the Nexus",
+ required=True
+)
+@click.argument(
+ "nexus-base-url"
+)
+def payment_status(
+ ctx, account_id, nexus_base_url):
+ nexus_url = urljoin(
+ nexus_base_url, "/ebics/subscribers/{}/payments".format(account_id))
+ try:
+ resp = get(nexus_url)
+ except Exception:
+ print("Could not reach the Nexus")
+ return
+
+ print(resp.content.decode("utf-8"))
@ebics.command(help="Prepare a payment")
@click.pass_context
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: CLI: command to query status of payments.,
gnunet <=