diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-08-16 02:42:03 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-08-16 02:42:49 -0400 |
commit | 84d79e5c8eda85d4dc2af6528de19a35350ad60e (patch) | |
tree | 38d109bda1d7f1b9fed8ca44a7834aa6fc205bcf /src/backend/taler-merchant-httpd.c | |
parent | 5e9a041c084f70c7bb80d13b960402d30cd5e6fe (diff) | |
download | merchant-84d79e5c8eda85d4dc2af6528de19a35350ad60e.tar.gz merchant-84d79e5c8eda85d4dc2af6528de19a35350ad60e.tar.bz2 merchant-84d79e5c8eda85d4dc2af6528de19a35350ad60e.zip |
early stages of implementing POST /orders/$ORDER_ID/refund
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index cf149d27..f65b4292 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -60,6 +60,7 @@ #include "taler-merchant-httpd_post-orders-ID-claim.h" #include "taler-merchant-httpd_post-orders-ID-paid.h" #include "taler-merchant-httpd_post-orders-ID-pay.h" +#include "taler-merchant-httpd_post-orders-ID-refund.h" #include "taler-merchant-httpd_post-tips-ID-pickup.h" #include "taler-merchant-httpd_reserves.h" #include "taler-merchant-httpd_templating.h" @@ -1067,6 +1068,17 @@ url_handler (void *cls, to set a conservative bound for sane wallets */ .max_upload = 1024 * 1024 }, + /* POST /orders/$ID/refund: */ + { + .url_prefix = "/orders/", + .have_id_segment = true, + .url_suffix = "refund", + .method = MHD_HTTP_METHOD_POST, + .handler = &TMH_post_orders_ID_refund, + /* the body should be pretty small, allow 1 MB of upload + to set a conservative bound for sane wallets */ + .max_upload = 1024 * 1024 + }, /* GET /orders/$ID: */ { .url_prefix = "/orders/", |