summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ord.c b/ord.c
index 38a6aba..1dd8994 100644
--- a/ord.c
+++ b/ord.c
@@ -11,6 +11,15 @@ void interchange_ord_order(const char *sku,
request(handler, NULL, NULL, "%s%s", "order?mv_arg=", sku);
}
+void interchange_ord_remove(const char *name, const char *nextpage,
+ void (*parser)(interchange_response *))
+{
+ request(parser, NULL, &(struct body){ 1 + (nextpage ? 1 : 0), {
+ { name, "0" },
+ { "mv_nextpage", nextpage }
+ }}, "%s", "process");
+}
+
void interchange_ord_checkout(const char *order_profile,
struct interchange_member member,
void (*handler)(interchange_response *))