diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-06 19:42:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-06 19:43:06 +0200 |
commit | 89d4f6430956129d9bfb29551fc2fa1c5c147676 (patch) | |
tree | 81bc1888abd15b01e18071615416f591a6a40b3f /src/include/taler_merchantdb_plugin.h | |
parent | 2d1e2b3e9992652ab1ff2e7b8a34a511779d04dd (diff) | |
download | merchant-89d4f6430956129d9bfb29551fc2fa1c5c147676.tar.gz merchant-89d4f6430956129d9bfb29551fc2fa1c5c147676.tar.bz2 merchant-89d4f6430956129d9bfb29551fc2fa1c5c147676.zip |
fix backend double-pay issue (#7244)
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index 41fb0b59..79d679e9 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -1222,13 +1222,15 @@ struct TALER_MERCHANTDB_Plugin * @param cls closure * @param instance_id instance to delete order of * @param order_id order to delete + * @param force force deletion of claimed but unpaid orders * @return DB status code, #GNUNET_DB_STATUS_SUCCESS_NO_RESULTS * if locks prevent deletion OR order unknown */ enum GNUNET_DB_QueryStatus (*delete_order)(void *cls, const char *instance_id, - const char *order_id); + const char *order_id, + bool force); /** @@ -1354,6 +1356,7 @@ struct TALER_MERCHANTDB_Plugin * @param order_id order_id used to lookup. * @param[out] contract_terms where to store the result, NULL to only check for existence * @param[out] order_serial set to the order's serial number + * @param[out] paid set to true if the order is fully paid * @param[out] claim_token set to the claim token, NULL to only check for existence * @return transaction status */ @@ -1363,6 +1366,7 @@ struct TALER_MERCHANTDB_Plugin const char *order_id, json_t **contract_terms, uint64_t *order_serial, + bool *paid, struct TALER_ClaimTokenP *claim_token); |