From 75e8bd2e92850c716bad506d8deea96b80b79c7e Mon Sep 17 00:00:00 2001 From: Steve Barbera Date: Wed, 30 Aug 2023 10:10:58 -0600 Subject: [PATCH 1/3] Added the Metafield to the Location Resource --- lib/Location.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Location.php b/lib/Location.php index f4a589a..d99f0ce 100644 --- a/lib/Location.php +++ b/lib/Location.php @@ -9,6 +9,14 @@ namespace PHPShopify; +/** + * -------------------------------------------------------------------------- + * Inventory -> Child Resources + * -------------------------------------------------------------------------- + * @property-read Metafield $Metafield + * + * @method Metafield Metafield(integer $id = null) + */ class Location extends ShopifyResource { @@ -32,5 +40,6 @@ class Location extends ShopifyResource */ protected $childResource = array( 'InventoryLevel', + 'Metafield', ); -} \ No newline at end of file +} From 13dfcb4bf4d4dd64f3c96ba2f12417c46feb8583 Mon Sep 17 00:00:00 2001 From: Steve Barbera Date: Thu, 31 Aug 2023 07:31:18 -0600 Subject: [PATCH 2/3] Updated the readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8459ff7..766654b 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,7 @@ Some resources are available directly, some resources are only available through - [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel) - [Location](https://help.shopify.com/api/reference/location/) _(read only)_ - Location -> [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel) +- Location -> [Metafield](https://help.shopify.com/api/reference/metafield) - [Metafield](https://help.shopify.com/api/reference/metafield) - [Multipass](https://help.shopify.com/api/reference/multipass) _(Shopify Plus Only, API not available yet)_ - [Order](https://help.shopify.com/api/reference/order) From b9a35f83356937b6971cd4bc156f8ad8e3624778 Mon Sep 17 00:00:00 2001 From: Steve Barbera Date: Tue, 12 Sep 2023 15:59:08 -0600 Subject: [PATCH 3/3] rename in comments --- lib/Location.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Location.php b/lib/Location.php index d99f0ce..c5c1247 100644 --- a/lib/Location.php +++ b/lib/Location.php @@ -11,7 +11,7 @@ /** * -------------------------------------------------------------------------- - * Inventory -> Child Resources + * Location -> Child Resources * -------------------------------------------------------------------------- * @property-read Metafield $Metafield *