From 33c252c6b2f509b6420c24d610dd99a15cda5593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 14 May 2023 16:12:41 +0800 Subject: Order can differentiate variant SKU from product --- interchange/ord.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'interchange') diff --git a/interchange/ord.h b/interchange/ord.h index fa55da1..e31006e 100644 --- a/interchange/ord.h +++ b/interchange/ord.h @@ -30,12 +30,14 @@ extern "C" { /*! * \brief For putting an item to a cart. - * \param sku The SKU of the item to order. - * \param handler A pointer to the function when a custom handler is needed to - * arrange the data into the order. + * \param sku The product or variant SKU of the item to order. + * \param item The product SKU of the item to order. + * \param quantity The quantity of the item to order. + * \param parser Function for parsing the formatted response. */ -void interchange_ord_order(const char *sku, - void (*handler)(interchange_response *)); +void interchange_ord_order(const char *sku, const char *item, + const unsigned int quantity, + void (*parser)(interchange_response *)); /*! * \brief For updating the quantity of an item in a cart. -- cgit v1.2.3