-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathFulfillmentOrder.php
55 lines (50 loc) · 1.57 KB
/
FulfillmentOrder.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
*
* @see https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillmentorder Shopify API Reference for Fulfillment Order
*/
namespace PHPShopify;
/**
* --------------------------------------------------------------------------
* FulfillmentOrder -> Child Resources
* --------------------------------------------------------------------------
* @property-read FulfillmentRequest $FulfillmentRequest
* @property-read Fulfillment $Fulfillment
*
* --------------------------------------------------------------------------
* Fulfillment -> Custom actions
* --------------------------------------------------------------------------
* @method array cancel() Cancel a fulfillment order
* @method array open() Open a fulfillment order
* @method array close() Close a fulfillment order
* @method array move() Move a fulfilment order to a new location
* @method array reschedule() Reschedule fulfill_at_time of a scheduled fulfillment order
* @method array hold(array $data) Hold a fulfillment order
* @method array release_hold() Release hold on a fulfillment order
*/
class FulfillmentOrder extends ShopifyResource
{
/**
* @inheritDoc
*/
protected $resourceKey = 'fulfillment_order';
/**
* @inheritDoc
*/
protected $childResource = array (
'FulfillmentRequest',
'Fulfillment'
);
/**
* @inheritDoc
*/
protected $customPostActions = array(
'close',
'open',
'cancel',
'move',
'reschedule',
'hold',
'release_hold'
);
}