summaryrefslogtreecommitdiff
path: root/interchange.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 11:08:10 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 11:59:14 +0800
commit6ea1859f82fdde343be5d7d649d40e43223395e3 (patch)
tree0d64bffaf48878425241442dd68cab2d2de4f076 /interchange.cxx
parent82f3e8426f4092831d25a97e05a91ce3663bc3c6 (diff)
Order now takes only SKU
Diffstat (limited to 'interchange.cxx')
-rw-r--r--interchange.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/interchange.cxx b/interchange.cxx
index 9833b1d..2daba1e 100644
--- a/interchange.cxx
+++ b/interchange.cxx
@@ -82,12 +82,9 @@ namespace QInterchange {
emit gotOrder(response);
}
- void Interchange::order(QString const& sku, Catalog const& catalog,
- Ord& order)
+ void Interchange::order(QString const& sku)
{
- auto data = order.data();
interchange_ord_order(sku.toLatin1().constData(),
- catalog.constData(), &data,
[](interchange_response* response) {
interchange->emitOrder(QString{response->data});
interchange_free_response(response);