summaryrefslogtreecommitdiff
path: root/src/backend-lib/merchant_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend-lib/merchant_db.h')
-rw-r--r--src/backend-lib/merchant_db.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/backend-lib/merchant_db.h b/src/backend-lib/merchant_db.h
index 540bddbd..c748002e 100644
--- a/src/backend-lib/merchant_db.h
+++ b/src/backend-lib/merchant_db.h
@@ -164,4 +164,21 @@ MERCHANT_DB_get_contract_handle (PGconn *conn,
const struct GNUNET_HashCode *h_contract,
struct MERCHANT_contract_handle *contract_handle);
+/**
+ * Store a deposit permission in DB. To be mainly used if /deposit should
+ * be retried; also, the merchant can benefit from this information in case
+ * he needs to later investigate about some transaction_id.
+ * @param conn DB handle
+ * @param transaction_id identification number of this payment (which is the
+ * same id of the related contract)
+ * @param pending if true, this payment got to a persistent state
+ * @param which mint is to get this deposit permission
+ * @return GNUNET_OK if successful, GNUNET_SYSERR upon errors
+ */
+uint32_t
+MERCHANT_DB_store_deposit_permission (PGconn *conn,
+ const char *deposit_permission,
+ uint64_t transaction_id,
+ unsigned int pending,
+ const char *mint_url);
/* end of merchant-db.h */