File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 8
8
* --------------------------------------------------------------------------
9
9
*
10
10
* @property-read Product $Product
11
+ * @property-read Metafield $Metafield
11
12
*
12
13
* @method Product Product(integer $id = null)
14
+ * @method Metafield Metafield(integer $id = null)
13
15
*
14
16
* @see https://shopify.dev/docs/admin-api/rest/reference/products/collection
15
17
*
@@ -31,5 +33,6 @@ class Collection extends ShopifyResource
31
33
*/
32
34
protected $ childResource = array (
33
35
'Product ' ,
36
+ 'Metafield ' ,
34
37
);
35
- }
38
+ }
Original file line number Diff line number Diff line change 12
12
13
13
14
14
/**
15
+ * --------------------------------------------------------------------------
16
+ * DraftOrder -> Child Resources
17
+ * --------------------------------------------------------------------------
18
+ *
19
+ * @property-read Metafield $Metafield
20
+ *
21
+ * @method Metafield Metafield(integer $id = null)
22
+ *
15
23
* --------------------------------------------------------------------------
16
24
* DraftOrder -> Custom actions
17
25
* --------------------------------------------------------------------------
@@ -39,4 +47,11 @@ class DraftOrder extends ShopifyResource
39
47
protected $ customPutActions = array (
40
48
'complete ' ,
41
49
);
42
- }
50
+
51
+ /**
52
+ * @inheritDoc
53
+ */
54
+ protected $ childResource = array (
55
+ 'Metafield ' ,
56
+ );
57
+ }
You can’t perform that action at this time.
0 commit comments