diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-14 16:26:04 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-14 16:26:04 +0800 |
| commit | baef8cc91f5fd86cde021acc6a9630cca009669f (patch) | |
| tree | 8a029801e660189619c71493cb203e921d697785 /interchange.hxx | |
| parent | 5bd00e1499884e8458f58db86a6b92bc96da3e57 (diff) | |
Improve the order implementation
Diffstat (limited to 'interchange.hxx')
| -rw-r--r-- | interchange.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/interchange.hxx b/interchange.hxx index f412377..582a007 100644 --- a/interchange.hxx +++ b/interchange.hxx @@ -61,23 +61,27 @@ namespace QInterchange { void defaultAllProducts(); /*! * \brief For putting an item to a cart. - * \param sku The SKU of the item to order. + * \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. */ - void order(QString const& sku); + void order(const QString &sku, + const QString &item = "", + const int quantity = 1); signals: void gotPage(QString const& path, QString const& response); void gotCatalog(QString const& response); void gotProduct(QString const& response); - void gotOrder(QString const& response); + void gotOrder(const QString &response); protected: void emitPage(QString const& path, QString const& response); void emitCatalog(QString const& response); void emitProduct(QString const& response); - void emitOrder(QString const& response); + void emitOrder(const QString &response); }; } |