File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,14 @@ The custom methods are specific to some resources which may not be available for
365
365
Disable a gift card.
366
366
- [ search()] ( https://help.shopify.com/api/reference/gift_card#search )
367
367
Search for gift cards matching supplied query
368
+
369
+ - Order ->
370
+ - [ close()] ( https://help.shopify.com/api/reference/order#close )
371
+ Close an Order
372
+ - [ open()] ( https://help.shopify.com/api/reference/order#open )
373
+ Re-open a closed Order
374
+ - [ cancel($data)] ( https://help.shopify.com/api/reference/order#cancel )
375
+ Cancel an Order
368
376
369
377
- Order -> Refund ->
370
378
- [ calculate()] ( https://help.shopify.com/api/reference/refund#calculate )
Original file line number Diff line number Diff line change 29
29
* @method ShopifyResource Event(integer $id = null)
30
30
* @method ShopifyResource Metafield(integer $id = null)
31
31
*
32
+ * --------------------------------------------------------------------------
33
+ * Order -> Custom actions
34
+ * --------------------------------------------------------------------------
35
+ * @method array close() Close an Order
36
+ * @method array open() Re-open a closed Order
37
+ * @method array cancel($data) Cancel an Order
38
+ *
32
39
*/
33
40
class Order extends ShopifyResource
34
41
{
@@ -48,4 +55,13 @@ class Order extends ShopifyResource
48
55
'Event ' ,
49
56
'Metafield ' ,
50
57
);
58
+
59
+ /**
60
+ * @inheritDoc
61
+ */
62
+ protected $ customPostActions = array (
63
+ 'close ' ,
64
+ 'open ' ,
65
+ 'cancel ' ,
66
+ );
51
67
}
You can’t perform that action at this time.
0 commit comments