Skip to content

Commit e301d02

Browse files
committed
Merge pull request #305 from whobutsb/feature/add-location-metafields
Add the Metafield to the Location Resource
2 parents acd86cb + f32b531 commit e301d02

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ Some resources are available directly, some resources are only available through
362362
- [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel)
363363
- [Location](https://help.shopify.com/api/reference/location/) _(read only)_
364364
- Location -> [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel)
365+
- Location -> [Metafield](https://help.shopify.com/api/reference/metafield)
365366
- [Metafield](https://help.shopify.com/api/reference/metafield)
366367
- [Multipass](https://help.shopify.com/api/reference/multipass) _(Shopify Plus Only, API not available yet)_
367368
- [Order](https://help.shopify.com/api/reference/order)

lib/Location.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010
namespace PHPShopify;
1111

12+
/**
13+
* --------------------------------------------------------------------------
14+
* Location -> Child Resources
15+
* --------------------------------------------------------------------------
16+
* @property-read Metafield $Metafield
17+
*
18+
* @method Metafield Metafield(integer $id = null)
19+
*/
1220

1321
class Location extends ShopifyResource
1422
{
@@ -32,5 +40,6 @@ class Location extends ShopifyResource
3240
*/
3341
protected $childResource = array(
3442
'InventoryLevel',
43+
'Metafield',
3544
);
36-
}
45+
}

0 commit comments

Comments
 (0)