gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] 03/07: update of the test TOTP but not finish


From: gnunet
Subject: [taler-merchant] 03/07: update of the test TOTP but not finish
Date: Wed, 29 Mar 2023 16:39:50 +0200

This is an automated email from the git hooks/post-receive script.

priscilla-huang pushed a commit to branch master
in repository merchant.

commit 03f432afbf824777b2d5aa5897fc6737a08119eb
Author: priscilla <priscilla.huang@efrei.net>
AuthorDate: Tue Mar 14 10:11:23 2023 -0400

    update of the test TOTP but not finish
---
 src/include/taler_merchant_service.h     | 10 ++++++++++
 src/include/taler_merchant_testing_lib.h | 13 +++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/src/include/taler_merchant_service.h 
b/src/include/taler_merchant_service.h
index 20da7abd..b2f2f334 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -2179,6 +2179,11 @@ struct TALER_MERCHANT_PayResponse
        */
       struct TALER_MerchantSignatureP merchant_sig;
 
+      /**
+       * Optional payment confirmation code returned by the service.
+       */
+      const char *pos_confirmation;
+ 
     } success;
 
     // TODO: might want to return further details on errors,
@@ -4207,6 +4212,11 @@ struct TALER_MERCHANT_TemplateGetResponse
        */
       const char *pos_key;
 
+      /**
+       * Option that add amount of the order
+       */
+      const enum TALER_MerchantConfirmationAlgorithm pos_alg;
+
       /**
        * Template for the contract.
        */
diff --git a/src/include/taler_merchant_testing_lib.h 
b/src/include/taler_merchant_testing_lib.h
index 02f386c4..886b052b 100644
--- a/src/include/taler_merchant_testing_lib.h
+++ b/src/include/taler_merchant_testing_lib.h
@@ -1498,7 +1498,8 @@ TALER_TESTING_cmd_merchant_kyc_get (const char *label,
  *        POST /templates request.
  * @param template_id the ID of the template to query
  * @param template_description description of the template
- * @param image base64-encoded template image
+ * @param pos_key base32-encoded key to verify the payment
+ * @param pos_alg is an option that show the amount of the order. it is linked 
with the pos_key
  * @param template_contract where the contract of the company is
  * @param http_status expected HTTP response code.
  * @return the command.
@@ -1509,7 +1510,8 @@ TALER_TESTING_cmd_merchant_post_templates2 (
   const char *merchant_url,
   const char *template_id,
   const char *template_description,
-  const char *image,
+  const char *pos_key,
+  const enum TALER_MerchantConfirmationAlgorithm pos_alg,
   json_t *template_contract,
   unsigned int http_status);
 
@@ -1541,7 +1543,8 @@ TALER_TESTING_cmd_merchant_post_templates (const char 
*label,
  *        PATCH /template request.
  * @param template_id the ID of the template to query
  * @param template_description description of the template
- * @param image base64-encoded template image
+ * @param pos_key base32-encoded key to verify the payment
+ * @param pos_alg is an option that show the amount of the order. it is linked 
with the pos_key
  * @param template_contract contract of the company
  * @param http_status expected HTTP response code.
  * @return the command.
@@ -1552,7 +1555,8 @@ TALER_TESTING_cmd_merchant_patch_template (
   const char *merchant_url,
   const char *template_id,
   const char *template_description,
-  const char *image,
+  const char *pos_key,
+  const enum TALER_MerchantConfirmationAlgorithm pos_alg,
   json_t *template_contract,
   unsigned int http_status);
 
@@ -1867,6 +1871,7 @@ TALER_TESTING_cmd_checkserver2 (const char *label,
   op (proposal_reference, const char *) \
   op (template_description, const char *) \
   op (template_pos_key, const char *) \
+  op (template_pos_alg, const enum TALER_MerchantConfirmationAlgorithm) \
   op (template_id, const char *) \
   op (template_contract, const json_t) \
   op (event_type, const char *)   \

-- 
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]