From b8680f8eecc7c7d4d3c09b6880904f3f732ea4d8 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: Wed, 17 May 2023 14:09:33 +0800 Subject: order takes custom options paramters --- interchange.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'interchange.hxx') diff --git a/interchange.hxx b/interchange.hxx index 582a007..cdd3e9a 100644 --- a/interchange.hxx +++ b/interchange.hxx @@ -64,10 +64,12 @@ namespace QInterchange { * \param sku The product or variant SKU of the item. * \param item The product SKU of the item to order. * \param quantity The quantity of the item to order. + * \param opts Any additional pairs of custom options. */ void order(const QString &sku, const QString &item = "", - const int quantity = 1); + const int quantity = 1, + const QVariant &options = {}); signals: void gotPage(QString const& path, -- cgit v1.2.3