Skip to content

Commit 106be89

Browse files
committed
[Fixes #58] Get Location -> inventory levels
1 parent b3268cb commit 106be89

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Some resources are available directly, some resources are only available through
264264
- [InventoryItem](https://help.shopify.com/api/reference/inventoryitem)
265265
- [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel)
266266
- [Location](https://help.shopify.com/api/reference/location/) _(read only)_
267+
- Location -> [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel)
267268
- [Metafield](https://help.shopify.com/api/reference/metafield)
268269
- [Multipass](https://help.shopify.com/api/reference/multipass) _(Shopify Plus Only, API not available yet)_
269270
- [Order](https://help.shopify.com/api/reference/order)

lib/Location.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@ class Location extends ShopifyResource
2626
* @inheritDoc
2727
*/
2828
public $readOnly = true;
29+
30+
/**
31+
* @inheritDoc
32+
*/
33+
protected $childResource = array(
34+
'InventoryLevel',
35+
);
2936
}

0 commit comments

Comments
 (0)