v1.2.5
- add support for Order()->FulfillmentOrder and FulfillmentRequests #278
Support the behavior required by:
https://shopify.dev/apps/fulfillment/order-management-apps/manage-fulfillments#request-a-fulfillment
https://shopify.dev/api/admin-rest/2022-10/resources/assignedfulfillmentorder
FulfillmentRequest Resource - including actions
Mapped FulfillmentOrder->FulfillmentRequest
Mapped Order(id)->FulfillmentOrder
Example:
// Requesting the FulfilmentOrder for a given order
$fo = $client->Order("1234567890")->FulfillmentOrder()->get();
// Creating a FulfilmentRequest
// Follow instructions to get partial fulfilments
$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->post([]);
// Accepting \ Rejecting a FulfilmentRequest
$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->accept();
$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->reject();
// Communicating fulfillment
$client->Fulfillment->post($body)