diff options
Diffstat (limited to 'src/testing/testing_api_cmd_patch_product.c')
-rw-r--r-- | src/testing/testing_api_cmd_patch_product.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/testing/testing_api_cmd_patch_product.c b/src/testing/testing_api_cmd_patch_product.c index fd0b8d49..41d992e2 100644 --- a/src/testing/testing_api_cmd_patch_product.c +++ b/src/testing/testing_api_cmd_patch_product.c @@ -201,7 +201,7 @@ patch_product_run (void *cls, * @param index index number of the object to extract. * @return #GNUNET_OK on success */ -static int +static enum GNUNET_GenericReturnValue patch_product_traits (void *cls, const void **ret, const char *trait, @@ -209,16 +209,18 @@ patch_product_traits (void *cls, { struct PatchProductState *pps = cls; struct TALER_TESTING_Trait traits[] = { - TALER_TESTING_make_trait_string (0, pps->description), - TALER_TESTING_make_trait_json (0, pps->description_i18n), - TALER_TESTING_make_trait_string (1, pps->unit), - TALER_TESTING_make_trait_amount_obj (0, &pps->price), - TALER_TESTING_make_trait_string (3, pps->image), - TALER_TESTING_make_trait_json (2, pps->taxes), - TALER_TESTING_make_trait_int64 (0, &pps->total_stock), - TALER_TESTING_make_trait_json (3, pps->address), - TALER_TESTING_make_trait_absolute_time (0, &pps->next_restock), - TALER_TESTING_make_trait_string (2, pps->product_id), + TALER_TESTING_make_trait_product_description (&pps->description), + TALER_TESTING_make_trait_i18n_description (pps->description_i18n), + TALER_TESTING_make_trait_product_unit (&pps->unit), + TALER_TESTING_make_trait_amount (&pps->price), + TALER_TESTING_make_trait_product_image ( + (const char **) &pps->image), + TALER_TESTING_make_trait_taxes (pps->taxes), + TALER_TESTING_make_trait_product_stock (&pps->total_stock), + TALER_TESTING_make_trait_address (pps->address), + TALER_TESTING_make_trait_absolute_time (0, + &pps->next_restock), + TALER_TESTING_make_trait_product_id (&pps->product_id), TALER_TESTING_trait_end (), }; |