diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-29 02:23:55 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-29 02:23:55 -0400 |
commit | cf42868740b7481d2ebaac4ca0a152fbd9e97a95 (patch) | |
tree | 7f93bae2e493ab536d8ad3346375a4e7c476c84c /src/include/taler_merchant_service.h | |
parent | 9755a40ef68b78039293c8505fb0910d42affa4e (diff) | |
download | merchant-cf42868740b7481d2ebaac4ca0a152fbd9e97a95.tar.gz merchant-cf42868740b7481d2ebaac4ca0a152fbd9e97a95.tar.bz2 merchant-cf42868740b7481d2ebaac4ca0a152fbd9e97a95.zip |
lib code/tests for claim token
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r-- | src/include/taler_merchant_service.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h index 8779f094..783520c1 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -1114,12 +1114,15 @@ struct TALER_MERCHANT_PostOrdersOperation; * @param cls closure * @param hr HTTP response details * @param order_id order id of the newly created order + * @param token the claim token generated by the merchant (NULL if + * it wasn't generated). */ typedef void (*TALER_MERCHANT_PostOrdersCallback) ( void *cls, const struct TALER_MERCHANT_HttpResponse *hr, - const char *order_id); + const char *order_id, + const struct TALER_ClaimTokenP *token); /** @@ -1176,6 +1179,7 @@ struct TALER_MERCHANT_InventoryProduct * @param inventory_products products to add to the order from the inventory * @param lock_uuids_length length of the @a uuids array * @param uuids array of UUIDs with locks on @a inventory_products + * @param create_token whether to create a claim token * @param cb the callback to call when a reply for this request is available * @param cb_cls closure for @a cb * @return a handle for this request, NULL on error @@ -1191,6 +1195,7 @@ TALER_MERCHANT_orders_post2 ( const struct TALER_MERCHANT_InventoryProduct inventory_products[], unsigned int uuids_length, const struct GNUNET_Uuid uuids[], + bool create_token, TALER_MERCHANT_PostOrdersCallback cb, void *cb_cls); @@ -1809,6 +1814,7 @@ typedef void * @param backend_url base URL of the merchant backend * @param order_id order id used to perform the lookup * @param nonce nonce to use to claim the proposal + * @param claim_token the token used to verify the claim * @param cb callback which will work the response gotten from the backend * @param cb_cls closure to pass to @a cb * @return handle for this handle, NULL upon errors @@ -1818,6 +1824,7 @@ TALER_MERCHANT_order_claim (struct GNUNET_CURL_Context *ctx, const char *backend_url, const char *order_id, const struct GNUNET_CRYPTO_EddsaPublicKey *nonce, + const struct TALER_ClaimTokenP *claim_token, TALER_MERCHANT_OrderClaimCallback cb, void *cb_cls); |