-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathOrder.php
69 lines (63 loc) · 1.79 KB
/
Order.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Created by PhpStorm.
* @author Tareq Mahmood <tareqtms@yahoo.com>
* Created at 8/19/16 2:59 PM UTC+06:00
*
* @see https://help.shopify.com/api/reference/order Shopify API Reference for Order
*/
namespace PHPShopify;
/**
* --------------------------------------------------------------------------
* Order -> Child Resources
* --------------------------------------------------------------------------
* @property-read FulfillmentOrder $FulfillmentOrder
* @property-read Fulfillment $Fulfillment
* @property-read OrderRisk $Risk
* @property-read Refund $Refund
* @property-read Transaction $Transaction
* @property-read Event $Event
* @property-read Metafield $Metafield
*
* @method Fulfillment Fulfillment(integer $id = null)
* @method OrderRisk Risk(integer $id = null)
* @method Refund Refund(integer $id = null)
* @method Transaction Transaction(integer $id = null)
* @method Event Event(integer $id = null)
* @method Metafield Metafield(integer $id = null)
*
* --------------------------------------------------------------------------
* Order -> Custom actions
* --------------------------------------------------------------------------
* @method array close() Close an Order
* @method array open() Re-open a closed Order
* @method array cancel(array $data) Cancel an Order
*
*/
class Order extends ShopifyResource
{
/**
* @inheritDoc
*/
protected $resourceKey = 'order';
/**
* @inheritDoc
*/
protected $childResource = array (
'Fulfillment',
'FulfillmentOrder',
'OrderRisk' => 'Risk',
'Refund',
'Transaction',
'Event',
'Metafield',
);
/**
* @inheritDoc
*/
protected $customPostActions = array(
'close',
'open',
'cancel',
);
}