From ff203b595fc28eb00b23535c35afcdcbdc2a846f 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, 12 Mar 2023 17:44:56 +0800 Subject: Only profile is needed from order on checkout --- interchange/ord.h | 4 ++-- ord.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interchange/ord.h b/interchange/ord.h index d6ce999..533c5a9 100644 --- a/interchange/ord.h +++ b/interchange/ord.h @@ -38,12 +38,12 @@ void interchange_ord_order(const char *sku, /*! * \brief For checking out items in the cart. - * \param order The order to be checked out. + * \param order_profile The order profile/method. * \param member The member checking out. * \param handler A pointer to the function when a custom handler is needed to * arrange the data into the product. */ -void interchange_ord_checkout(const struct interchange_ord_order *order, +void interchange_ord_checkout(const char *order_profile, const struct interchange_member *member, void (*handler)(interchange_response *)); diff --git a/ord.c b/ord.c index 6ad382e..9c13c93 100644 --- a/ord.c +++ b/ord.c @@ -11,14 +11,14 @@ void interchange_ord_order(const char *sku, request(handler, NULL, NULL, "%s%s", "order?mv_arg=", sku); } -void interchange_ord_checkout(const struct interchange_ord_order *order, +void interchange_ord_checkout(const char *order_profile, const struct interchange_member *member, void (*handler)(interchange_response *)) { request(handler, NULL, &(struct body){ 14, { { "mv_todo", "submit" }, { "mv_action", "refresh" }, - { "mv_order_profile", order->profile }, + { "mv_order_profile", order_profile }, { "fname", member->fname }, { "lname", member->lname }, { "address1", member->address1 }, -- cgit v1.2.3