gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: make CLI use latest API


From: gnunet
Subject: [libeufin] branch master updated: make CLI use latest API
Date: Fri, 13 Nov 2020 16:15:38 +0100

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 5c2b1df  make CLI use latest API
5c2b1df is described below

commit 5c2b1dfc68d8b5451d82e7916e8c2260c81d3d95
Author: MS <ms@taler.net>
AuthorDate: Fri Nov 13 16:15:29 2020 +0100

    make CLI use latest API
---
 cli/libeufin-cli      | 4 ++--
 cli/setup-template.sh | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index 908cecc..945451f 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -247,7 +247,7 @@ def show(obj):
 @click.pass_obj
 def prepare_payment(obj, account_name, credit_iban, credit_bic, credit_name,
                     payment_amount, payment_subject):
-    url = urljoin(obj.nexus_base_url, 
"/bank-accounts/{}/prepared-payments".format(account_name))
+    url = urljoin(obj.nexus_base_url, 
"/bank-accounts/{}/payment-initiations".format(account_name))
     body = dict(
         iban=credit_iban,
         bic=credit_bic,
@@ -270,7 +270,7 @@ def prepare_payment(obj, account_name, credit_iban, 
credit_bic, credit_name,
 def submit_payment(obj, account_name, payment_uuid):
     url = urljoin(
         obj.nexus_base_url,
-        "/bank-accounts/{}/prepared-payments/{}/submit".format(account_name, 
payment_uuid)
+        "/bank-accounts/{}/payment-initiations/{}/submit".format(account_name, 
payment_uuid)
     )
     try:
         resp = post(url, json=dict(), auth = auth.HTTPBasicAuth(obj.username, 
obj.password))
diff --git a/cli/setup-template.sh b/cli/setup-template.sh
index 9a6bf79..512e390 100755
--- a/cli/setup-template.sh
+++ b/cli/setup-template.sh
@@ -13,7 +13,7 @@ EBICS_USER_ID=ebicsuser
 EBICS_BASE_URL="$SANDBOX_URL/ebicsweb"
 
 # A bank account details.
-IBAN=x
+IBAN=LU150102294655243148
 BIC=y
 PERSON_NAME=z
 ACCOUNT_NAME=a
@@ -99,3 +99,4 @@ echo Download bank accounts
 echo Note: NEXUS_USERNAME, NEXUS_PASSWORD, and NEXUS_BASE_URL
 echo have been *already* exported in this shell.  Bank connection
 echo $(tput bold)$NEXUS_BANK_CONNECTION_NAME$(tput sgr0) can be soon used via 
the $(tput bold)libeufin-cli$(tput sgr0) utility!
+exec bash

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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