summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-02 12:20:43 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-02 12:20:43 +0100
commit96726fd5ab6dc067af4957c3d1826f9fd2745c95 (patch)
tree0aceccf83f16d0f1bde0b2dd0bfd41a795b9c1a0 /src/include/taler_merchant_service.h
parent0232c377c39611f4c476ec9464356f0ae40497d9 (diff)
downloadmerchant-96726fd5ab6dc067af4957c3d1826f9fd2745c95.tar.gz
merchant-96726fd5ab6dc067af4957c3d1826f9fd2745c95.tar.bz2
merchant-96726fd5ab6dc067af4957c3d1826f9fd2745c95.zip
extend client and testing libs to support setting authentication tokens (#6731)
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index f7a8d667..9937750b 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -503,6 +503,7 @@ typedef void
* @param default_max_deposit_fee default maximum deposit fee merchant is willing to pay
* @param default_wire_transfer_delay default wire transfer delay merchant will ask for
* @param default_pay_delay default validity period for offers merchant makes
+ * @param auth_token authorization token needed to access the instance, can be NULL
* @param cb function to call with the
* backend's instances information
* @param cb_cls closure for @a config_cb
@@ -523,6 +524,7 @@ TALER_MERCHANT_instances_post (
const struct TALER_Amount *default_max_deposit_fee,
struct GNUNET_TIME_Relative default_wire_transfer_delay,
struct GNUNET_TIME_Relative default_pay_delay,
+ const char *auth_token,
TALER_MERCHANT_InstancesPostCallback cb,
void *cb_cls);
@@ -572,6 +574,7 @@ typedef void
* @param default_max_deposit_fee default maximum deposit fee merchant is willing to pay
* @param default_wire_transfer_delay default wire transfer delay merchant will ask for
* @param default_pay_delay default validity period for offers merchant makes
+ * @param auth_token authorization token needed to access the instance, can be NULL
* @param cb function to call with the
* backend's instances information
* @param cb_cls closure for @a config_cb
@@ -592,6 +595,7 @@ TALER_MERCHANT_instance_patch (
const struct TALER_Amount *default_max_deposit_fee,
struct GNUNET_TIME_Relative default_wire_transfer_delay,
struct GNUNET_TIME_Relative default_pay_delay,
+ const char *auth_token,
TALER_MERCHANT_InstancePatchCallback cb,
void *cb_cls);
@@ -1244,14 +1248,16 @@ struct TALER_MERCHANT_PostOrdersReply
* Details of the reply, depending on the HTTP
* status code.
*/
- union {
+ union
+ {
/**
* Details provided if the @e hr.http_status is
* #MHD_HTTP_OK and the order was created.
*/
- struct {
-
+ struct
+ {
+
/**
* order id of the newly created order
*/
@@ -1262,14 +1268,15 @@ struct TALER_MERCHANT_PostOrdersReply
* (NULL if it was NOT generated).
*/
const struct TALER_ClaimTokenP *token;
-
+
} ok;
/**
* Details provided if the @e hr.http_status is
* #MHD_HTTP_GONE because a product was out of stock.
- */
- struct {
+ */
+ struct
+ {
/**
* ID of the product of the order that is out of
* stock.
@@ -1291,11 +1298,11 @@ struct TALER_MERCHANT_PostOrdersReply
* restocked? 0 for unknown.
*/
struct GNUNET_TIME_Absolute restock_expected;
-
+
} gone;
-
+
} details;
-
+
};