diff options
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r-- | src/include/taler_merchant_service.h | 25 |
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; - + }; |