From 5f2620c548c447e7bc1d1f9565665d1a3827164e Mon Sep 17 00:00:00 2001 From: Morten Poul Jensen Date: Fri, 28 May 2021 10:28:14 +0200 Subject: [PATCH] feat: add createOrderFulfillment method --- src/REST/Actions/ManagesFulfillments.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/REST/Actions/ManagesFulfillments.php b/src/REST/Actions/ManagesFulfillments.php index 7367883..c58a93f 100644 --- a/src/REST/Actions/ManagesFulfillments.php +++ b/src/REST/Actions/ManagesFulfillments.php @@ -24,6 +24,11 @@ public function getOrderFulfillment($orderId, $fulfillmentId): ApiResource return $this->getResource('fulfillments', $fulfillmentId, ['orders', $orderId]); } + public function createOrderFulfillment($orderId, array $data): ApiResource + { + return $this->createResource('fulfillments', $data, ['orders', $orderId]); + } + public function createFulfillment(array $data): ApiResource { return $this->createResource('fulfillments', $data);