diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2020-12-01 17:09:16 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2020-12-01 17:09:16 +0800 |
commit | b0ae674600b68d8b8fa1d522cb0f5366ee0f2cb4 (patch) | |
tree | 2bec3f04847e58c1493d1c6dd6a84b88dd48564e /icclient | |
parent | 12950ef44456807150eaf669e32446b011b754fe (diff) |
Checkout function
Diffstat (limited to 'icclient')
-rw-r--r-- | icclient/member.h | 7 | ||||
-rw-r--r-- | icclient/ord.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/icclient/member.h b/icclient/member.h index d68f814..0f4ac22 100644 --- a/icclient/member.h +++ b/icclient/member.h @@ -1,6 +1,11 @@ #ifndef ICCLIENT_MEMBER_H #define ICCLIENT_MEMBER_H +struct icclient_member_preferences { + bool mv_same_billing; + bool email_copy; +}; + struct icclient_member { char *username; char *usernick; @@ -39,7 +44,7 @@ struct icclient_member { char *phone_night; char *address_book; char *accounts; - char *preferences; + struct icclient_member_preferences *preferences; char *carts; char *owner; char *file_acl; diff --git a/icclient/ord.h b/icclient/ord.h index 5195e81..a1dd4ea 100644 --- a/icclient/ord.h +++ b/icclient/ord.h @@ -10,6 +10,7 @@ struct icclient_ord_order { double subtotal; double shipping; double total_cost; + char *profile; size_t nitems; struct icclient_ord_item *items[]; }; @@ -27,6 +28,8 @@ extern "C" { */ void icclient_ord_order(const char *sku, const struct icclient_catalog *catalog, struct icclient_ord_order **orderptr); + void icclient_ord_checkout(struct icclient_ord_order *order, + struct icclient_member *member); void icclient_ord_free(struct icclient_ord_order *order); #ifdef __cplusplus |