Skip to content

v1.2.5

Compare
Choose a tag to compare
@tareqtms tareqtms released this 13 Feb 03:51
· 22 commits to master since this release
1d05bc9
  • 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)