[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: more comments and CMD state
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: more comments and CMD state |
Date: |
Thu, 16 Jan 2020 12:13:18 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new f13b8e4d more comments and CMD state
f13b8e4d is described below
commit f13b8e4db68d3f520a8265c5f5b108baf2eea1e6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Jan 16 12:13:11 2020 +0100
more comments and CMD state
---
doc/prebuilt | 2 +-
src/include/taler_testing_lib.h | 12 +++++----
src/lib/testing_api_cmd_insert_deposit.c | 44 ++++++++++++++++++++++++++++----
3 files changed, 47 insertions(+), 11 deletions(-)
diff --git a/doc/prebuilt b/doc/prebuilt
index 934a6a18..ca53235c 160000
--- a/doc/prebuilt
+++ b/doc/prebuilt
@@ -1 +1 @@
-Subproject commit 934a6a18301e81c4fd1b3a8cda2dc13dca4741cc
+Subproject commit ca53235ccfa0458ebf11c204888ca370e20ec3f5
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 623e94ce..48214aed 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1668,17 +1668,19 @@ TALER_TESTING_cmd_connect_with_state (const char *label,
*
* @param label command label.
* @param config_filename configuration filename.
- * @param TODO
- * @param TODO
- * @param TODO
- * @param TODO
+ * @param merchant_name Human-readable name of the merchant.
+ * @param merchant_account value indicating the merchant at its bank.
+ * @param wire_deadline point in time where the aggregator should have
+ * wired money to the merchant.
+ * @param amount_with_fee amount to deposit (inclusive of deposit fee)
+ * @param deposit_fee deposit fee
* @return the command.
*/
struct TALER_TESTING_Command
TALER_TESTING_cmd_insert_deposit (const char *label,
const char *config_filename,
const char *merchant_name,
- unsigned int merchant_account,
+ const char *merchant_account,
struct GNUNET_TIME_Absolute wire_deadline,
const char *amount_with_fee,
const char *deposit_fee);
diff --git a/src/lib/testing_api_cmd_insert_deposit.c
b/src/lib/testing_api_cmd_insert_deposit.c
index cf82979d..f83e9823 100644
--- a/src/lib/testing_api_cmd_insert_deposit.c
+++ b/src/lib/testing_api_cmd_insert_deposit.c
@@ -40,6 +40,32 @@ struct InsertDepositState
* Configuration file used by the command.
*/
const char *config_filename;
+
+ /**
+ * Human-readable name of the shop.
+ */
+ const char *merchant_name;
+
+ /**
+ * Merchant bank account (FIXME: payto, non-payto?)
+ */
+ const char *merchant_account;
+
+ /**
+ * Deadline before which the aggregator should
+ * send the payment to the merchant.
+ */
+ struct GNUNET_TIME_Absolute wire_deadline;
+
+ /**
+ * Amount to deposit, inclusive of deposit fee.
+ */
+ const char *amount_with_fee;
+
+ /**
+ * Deposit fee.
+ */
+ const char *deposit_fee;
};
@@ -110,17 +136,19 @@ insert_deposit_traits (void *cls,
*
* @param label command label.
* @param config_filename configuration filename.
- * @param TODO
- * @param TODO
- * @param TODO
- * @param TODO
+ * @param merchant_name Human-readable name of the merchant.
+ * @param merchant_account value indicating the merchant at its bank.
+ * @param wire_deadline point in time where the aggregator should have
+ * wired money to the merchant.
+ * @param amount_with_fee amount to deposit (inclusive of deposit fee)
+ * @param deposit_fee deposit fee
* @return the command.
*/
struct TALER_TESTING_Command
TALER_TESTING_cmd_insert_deposit (const char *label,
const char *config_filename,
const char *merchant_name,
- unsigned int merchant_account,
+ const char *merchant_account,
struct GNUNET_TIME_Absolute wire_deadline,
const char *amount_with_fee,
const char *deposit_fee)
@@ -130,6 +158,12 @@ TALER_TESTING_cmd_insert_deposit (const char *label,
ds = GNUNET_new (struct InsertDepositState);
ds->config_filename = config_filename;
+ ds->merchant_name = merchant_name;
+ ds->merchant_account = merchant_account;
+ ds->wire_deadline = wire_deadline;
+ ds->amount_with_fee = amount_with_fee;
+ ds->deposit_fee = deposit_fee;
+
cmd.cls = ds;
cmd.label = label;
cmd.run = &insert_deposit_run;
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: more comments and CMD state,
gnunet <=