summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-16 23:38:46 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-16 23:38:46 +0200
commit778176a664c9ecf96073ffbc2e1823a4366fd37a (patch)
tree41d60d28db26ea000faa470e4f600c37e76fc64b /src/include/taler_merchant_service.h
parent843f00401878a2db69cea3d3a5f72f27bd763070 (diff)
downloadmerchant-778176a664c9ecf96073ffbc2e1823a4366fd37a.tar.gz
merchant-778176a664c9ecf96073ffbc2e1823a4366fd37a.tar.bz2
merchant-778176a664c9ecf96073ffbc2e1823a4366fd37a.zip
use POST instead of PATCH
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index e45aded7..953b1301 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -613,7 +613,19 @@ TALER_MERCHANT_instance_patch_cancel (
/**
* Handle for an operation to modify authentication settings.
*/
-struct TALER_MERCHANT_InstanceAuthPatchHande;
+struct TALER_MERCHANT_InstanceAuthPostHande;
+
+
+/**
+ * Function called with the result of the GET /instances/$ID operation.
+ *
+ * @param cls closure
+ * @param hr HTTP response data
+ */
+typedef void
+(*TALER_MERCHANT_InstanceAuthPostCallback)(
+ void *cls,
+ const struct TALER_MERCHANT_HttpResponse *hr);
/**
@@ -630,13 +642,13 @@ struct TALER_MERCHANT_InstanceAuthPatchHande;
* @param cb_cls closure for @a config_cb
* @return the instances handle; NULL upon error
*/
-struct TALER_MERCHANT_InstanceAuthPatchHandle *
-TALER_MERCHANT_instance_auth_patch (
+struct TALER_MERCHANT_InstanceAuthPostHandle *
+TALER_MERCHANT_instance_auth_post (
struct GNUNET_CURL_Context *ctx,
const char *backend_url,
const char *instance_id,
const char *auth_token,
- TALER_MERCHANT_InstancePatchCallback cb,
+ TALER_MERCHANT_InstanceAuthPostCallback cb,
void *cb_cls);
@@ -648,8 +660,8 @@ TALER_MERCHANT_instance_auth_patch (
* @param iaph request to cancel.
*/
void
-TALER_MERCHANT_instance_auth_patch_cancel (
- struct TALER_MERCHANT_InstanceAuthPatchHandle *iaph);
+TALER_MERCHANT_instance_auth_post_cancel (
+ struct TALER_MERCHANT_InstanceAuthPostHandle *iaph);
/**