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_patch_instance.c | |
parent | 858e3047b8b595ab693e16ce0bbe0b8983b072ed (diff) |
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_patch_instance.c')
-rw-r--r-- | src/lib/merchant_api_patch_instance.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/lib/merchant_api_patch_instance.c b/src/lib/merchant_api_patch_instance.c index 8b4b6205..420cd549 100644 --- a/src/lib/merchant_api_patch_instance.c +++ b/src/lib/merchant_api_patch_instance.c @@ -158,8 +158,6 @@ TALER_MERCHANT_instance_patch ( struct GNUNET_CURL_Context *ctx, const char *backend_url, const char *instance_id, - unsigned int accounts_length, - const struct TALER_MERCHANT_AccountConfig accounts[static accounts_length], const char *name, enum TALER_KYCLOGIC_KycUserType ut, const json_t *address, @@ -171,7 +169,6 @@ TALER_MERCHANT_instance_patch ( void *cb_cls) { struct TALER_MERCHANT_InstancePatchHandle *iph; - json_t *jaccounts; json_t *req_obj; const char *uts; @@ -181,44 +178,7 @@ TALER_MERCHANT_instance_patch ( GNUNET_break (0); return NULL; } - jaccounts = json_array (); - if (NULL == jaccounts) - { - GNUNET_break (0); - return NULL; - } - for (unsigned int i = 0; i<accounts_length; i++) - { - const struct TALER_MERCHANT_AccountConfig *account = &accounts[i]; - json_t *jaccount; - - jaccount = - GNUNET_JSON_PACK ( - GNUNET_JSON_pack_string ( - "payto_uri", - account->payto_uri), - GNUNET_JSON_pack_allow_null ( - GNUNET_JSON_pack_string ( - "credit_facade_url", - account->credit_facade_url)), - GNUNET_JSON_pack_allow_null ( - GNUNET_JSON_pack_object_incref ( - "credit_facade_credentials", - accounts->credit_facade_credentials)) - ); - - if (0 != - json_array_append_new (jaccounts, - jaccount)) - { - GNUNET_break (0); - json_decref (jaccounts); - return NULL; - } - } req_obj = GNUNET_JSON_PACK ( - GNUNET_JSON_pack_array_steal ("accounts", - jaccounts), GNUNET_JSON_pack_string ("name", name), GNUNET_JSON_pack_string ("user_type", |