diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-05-26 12:30:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-05-26 12:30:26 +0200 |
commit | ffdfeb863a03cc2cf9a92731f7b44b0c058d6a2d (patch) | |
tree | b63a5da281434b4cfe29276caccc5e00b6a91afc /src/include/taler_merchantdb_plugin.h | |
parent | 79c0c75009f9d292949382db02e3a2331d005bd8 (diff) |
expand POST /products to allow specifying categories the product is in
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index 7c009b89..12c00833 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -1758,13 +1758,24 @@ struct TALER_MERCHANTDB_Plugin * @param instance_id instance to insert product for * @param product_id product identifier of product to insert * @param pd the product details to insert + * @param num_cats length of @a cats array + * @param cats array of categories the product is in + * @param[out] no_instance set to true if @a instance_id is unknown + * @param[out] conflict set to true if a conflicting + * product already exists in the database + * @param[out] no_cat set to index of non-existing category from @a cats, or -1 if all @a cats were found * @return database result code */ enum GNUNET_DB_QueryStatus (*insert_product)(void *cls, const char *instance_id, const char *product_id, - const struct TALER_MERCHANTDB_ProductDetails *pd); + const struct TALER_MERCHANTDB_ProductDetails *pd, + size_t num_cats, + const uint64_t *cats, + bool *no_instance, + bool *conflict, + ssize_t *no_cat); /** * Update details about a particular product. Note that the |