gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Add PAIN.002 download trigger to the C


From: gnunet
Subject: [libeufin] branch master updated: Add PAIN.002 download trigger to the CLI.
Date: Wed, 04 Mar 2020 17:07:20 +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 87786e0  Add PAIN.002 download trigger to the CLI.
87786e0 is described below

commit 87786e0edf022edae2e70b23a7540a86ff992bae
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Mar 4 17:06:53 2020 +0100

    Add PAIN.002 download trigger to the CLI.
---
 cli/python/libeufin-cli | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/cli/python/libeufin-cli b/cli/python/libeufin-cli
index b4e00e8..5453eff 100755
--- a/cli/python/libeufin-cli
+++ b/cli/python/libeufin-cli
@@ -571,6 +571,26 @@ def prepare(ctx, account_id, nexus_base_url):
     ctx.invoke(sync, account_id=account_id, nexus_base_url=nexus_base_url)
 
 
+@ebics.command(help="Download PAIN.002 related to a particular customer")
+@click.pass_context
+@click.option(
+    "--account-id",
+    help="Numerical ID of the customer at the Nexus",
+    required=True
+)
+@click.argument(
+  "nexus-base-url"
+)
+def download_payment_status(ctx, account_id, nexus_base_url):
+    try:
+        url = urljoin(
+            nexus_base_url, 
"/ebics/subscribers/{}/fetch-payment-status".format(account_id))
+        resp = post(url)
+    except Exception as e:
+        print("Could not reach the Nexus", e)
+        return
+    print(resp.content.decode("utf-8"))
+
 @ebics.command(help="Picks the first unsubmitted payment and send it to the 
bank")
 @click.pass_context
 @click.argument(

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]