Skip to content

Commit 592febd

Browse files
authored
Merge pull request #30 from mnastalski/add-order-by-split
Add `addOrderBySplit` method
2 parents a948778 + 15c4ba4 commit 592febd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Api/Request/Orders.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,17 @@ public function addOrderReceiptFile(int $receiptId, string $file, string $extern
249249
);
250250
}
251251

252+
public function addOrderBySplit(int $orderId, array $itemsToSplit, ?float $deliveryCostToSplit = null): Response
253+
{
254+
return new Response(
255+
$this->post('addOrderBySplit', [
256+
'order_id' => $orderId,
257+
'items_to_split' => $itemsToSplit,
258+
'delivery_cost_to_split' => $deliveryCostToSplit,
259+
]),
260+
);
261+
}
262+
252263
public function getInvoiceFile(int $invoiceId): Response
253264
{
254265
return new Response(

0 commit comments

Comments
 (0)