Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b25533d

Browse files
committed
Add support the AssignedFulfillmentOrder resource
1 parent 1d05bc9 commit b25533d

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

‎README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ Some resources are available directly, some resources are only available through
323323
- [AbandonedCheckout](https://help.shopify.com/api/reference/abandoned_checkouts)
324324
- [ApiDeprecations](https://shopify.dev/api/admin-rest/2022-04/resources/deprecated-api-calls#get-deprecated-api-calls)
325325
- [ApplicationCharge](https://help.shopify.com/api/reference/applicationcharge)
326+
- [AssignedFulfillmentOrder](https://shopify.dev/docs/api/admin-rest/2023-04/resources/assignedfulfillmentorder#get-assigned-fulfillment-orders)
326327
- [Blog](https://help.shopify.com/api/reference/blog/)
327328
- Blog -> [Article](https://help.shopify.com/api/reference/article/)
328329
- Blog -> Article -> [Event](https://help.shopify.com/api/reference/event/)
@@ -520,10 +521,13 @@ The custom methods are specific to some resources which may not be available for
520521
- Mapped FulfillmentOrder->FulfillmentRequest
521522
- Mapped Order(id)->FulfillmentOrder
522523

523-
```
524+
```php
524525
// Requesting the FulfilmentOrder for a given order
525526
$fo = $client->Order("1234567890")->FulfillmentOrder()->get();
526527

528+
// Requesting assigned fulfillment orders (with status fulfillment_requested)
529+
$shopify->AssignedFulfillmentOrder()->get(["assignment_status" => "fulfillment_requested"]);
530+
527531
// Creating a FulfilmentRequest
528532
// Follow instructions to get partial fulfilments
529533
$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->post([]);

‎lib/AssignedFulfillmentOrder.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
*
4+
* @see https://shopify.dev/docs/api/admin-rest/2023-04/resources/assignedfulfillmentorder Shopify API Reference for Assigned Fulfillment Order
5+
*/
6+
7+
namespace PHPShopify;
8+
9+
10+
class AssignedFulfillmentOrder extends ShopifyResource
11+
{
12+
/**
13+
* @inheritDoc
14+
*/
15+
protected $resourceKey = 'assigned_fulfillment_order';
16+
}

‎lib/ShopifySDK.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868

6969
/**
7070
* @property-read AbandonedCheckout $AbandonedCheckout
71+
* @property-read AssignedFulfillmentOrder $AssignedFulfillmentOrder
7172
* @property-read AccessScope $AccessScope
7273
* @property-read ApiDeprecations $ApiDeprecations
7374
* @property-read ApplicationCharge $ApplicationCharge
@@ -116,6 +117,7 @@
116117
* @property-read GraphQL $GraphQL
117118
*
118119
* @method AbandonedCheckout AbandonedCheckout(integer $id = null)
120+
* @method AssignedFulfillmentOrder AssignedFulfillmentOrder(string $assignment_status = null, array $location_ids = null)
119121
* @method AccessScope AccessScope()
120122
* @method ApiDeprecations ApiDeprecations()
121123
* @method ApplicationCharge ApplicationCharge(integer $id = null)
@@ -173,6 +175,7 @@ class ShopifySDK
173175
*/
174176
protected $resources = array(
175177
'AbandonedCheckout',
178+
'AssignedFulfillmentOrder',
176179
'AccessScope',
177180
'ApiDeprecations',
178181
'ApplicationCharge',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /