diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-09-01 14:27:48 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-09-01 14:27:48 +0200 |
commit | 35dcd4514a93ba0f5353ecd1194fc9b515f2aad4 (patch) | |
tree | 399d8f8fbebf5e8ac383fc318b7be08901279a31 /src/lib/merchant_api_post_templates.c | |
parent | 858e3047b8b595ab693e16ce0bbe0b8983b072ed (diff) | |
download | merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.tar.gz merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.tar.bz2 merchant-35dcd4514a93ba0f5353ecd1194fc9b515f2aad4.zip |
new CRUD APIs for OTP devices and merchant accounts (fixes #7929, #7824), one minor test is still failing...
Diffstat (limited to 'src/lib/merchant_api_post_templates.c')
-rw-r--r-- | src/lib/merchant_api_post_templates.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/merchant_api_post_templates.c b/src/lib/merchant_api_post_templates.c index bdba52f9..3ab4320c 100644 --- a/src/lib/merchant_api_post_templates.c +++ b/src/lib/merchant_api_post_templates.c @@ -203,8 +203,7 @@ TALER_MERCHANT_templates_post ( const char *backend_url, const char *template_id, const char *template_description, - const char *pos_key, - enum TALER_MerchantConfirmationAlgorithm pos_algorithm, + const char *otp_id, const json_t *template_contract, TALER_MERCHANT_TemplatesPostCallback cb, void *cb_cls) @@ -222,11 +221,9 @@ TALER_MERCHANT_templates_post ( template_id), GNUNET_JSON_pack_string ("template_description", template_description), - GNUNET_JSON_pack_uint64 ("pos_algorithm", - (uint32_t) pos_algorithm), GNUNET_JSON_pack_allow_null ( - GNUNET_JSON_pack_string ("pos_key", - pos_key)), + GNUNET_JSON_pack_string ("otp_id", + otp_id)), GNUNET_JSON_pack_object_incref ("template_contract", (json_t *) template_contract)); tph = GNUNET_new (struct TALER_MERCHANT_TemplatesPostHandle); |