[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 02/04: (Redundantly) asking direction for mock payments.
From: |
gnunet |
Subject: |
[libeufin] 02/04: (Redundantly) asking direction for mock payments. |
Date: |
Fri, 15 Jan 2021 10:59:57 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit c1abb57ba8abb7b0b45d18fa4058ef70455c3ca9
Author: MS <ms@taler.net>
AuthorDate: Fri Jan 15 10:57:13 2021 +0100
(Redundantly) asking direction for mock payments.
---
cli/bin/libeufin-cli | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index 0e45332..7cc0b42 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -808,6 +808,11 @@ def bankaccount_generate_transactions(obj, account_label):
@click.option("--amount", help="amount, no currency", prompt=True)
@click.option("--currency", help="currency", prompt=True)
@click.option("--subject", help="payment subject", prompt=True)
+@click.option(
+ "--direction",
+ help="direction respect to the bank account hosted at Sandbox: allows
DBIT/CRDT values.",
+ prompt=True
+)
@click.pass_obj
def book_payment(
obj,
@@ -820,6 +825,7 @@ def book_payment(
amount,
currency,
subject,
+ direction,
):
sandbox_base_url = obj.require_sandbox_base_url()
url = urljoin(sandbox_base_url, "/admin/payments")
@@ -833,6 +839,7 @@ def book_payment(
amount=amount,
currency=currency,
subject=subject,
+ direction=direction
)
try:
resp = post(url, json=body)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.