From 81aa9e362c9d8f729cae0c418b3e38add9280e2c Mon Sep 17 00:00:00 2001 From: Hakim Razalan Date: Tue, 4 May 2021 13:25:09 +0800 Subject: [PATCH] Fix inventory_item response fetching for listing. --- src/Service/InventoryItemService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/InventoryItemService.php b/src/Service/InventoryItemService.php index b24623b..7d0c93d 100644 --- a/src/Service/InventoryItemService.php +++ b/src/Service/InventoryItemService.php @@ -19,7 +19,7 @@ class InventoryItemService extends AbstractService public function all(array $params = []){ $endpoint = 'inventory_items.json'; $response = $this->request($endpoint, 'GET', $params); - return $this->createCollection(InventoryItem::class, $response['inventory_item']); + return $this->createCollection(InventoryItem::class, $response['inventory_items']); } /**