Skip to content

Commit 8bd77cf

Browse files
committed
Add v1.13.6
1 parent d6671ca commit 8bd77cf

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

‎CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.13.6 - 2021-08-12
4+
### Fixes
5+
- Fix GetHierarchiesRequest not working with param hierarchy
6+
37
## v1.13.5 - 2021-07-26
48
### Fixes
59
- Fix error with deprecated method GuzzleHttp\Psr7\build_query() if using Guzzle 7.2+

‎composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mirakl/sdk-php-shop",
33
"description": "Mirakl provides a PHP SDK that wraps the Mirakl REST APIs in a lightweight library. This enables you to develop a fast, flexible and custom integration for your existing e-commerce solution.",
44
"type": "library",
5-
"version": "1.13.5",
5+
"version": "1.13.6",
66
"license": "proprietary",
77
"authors": [
88
{

‎src/Mirakl/MCI/Common/Request/Hierarchy/AbstractGetHierarchiesRequest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use Mirakl\MCI\Common\Domain\Collection\HierarchyCollection;
66

77
/**
8+
* @method string getHierarchy()
9+
* @method $this setHierarchy(string $hierarchyCode)
810
* @method string getHierarchyCode()
911
* @method $this setHierarchyCode(string $hierarchyCode)
1012
* @method int getMaxLevel()
@@ -20,7 +22,11 @@ abstract class AbstractGetHierarchiesRequest extends AbstractRequest
2022
/**
2123
* @var array
2224
*/
23-
public $queryParams = ['hierarchy_code', 'max_level'];
25+
public $queryParams = [
26+
'hierarchy_code' => 'hierarchy',
27+
'hierarchy' => 'hierarchy',
28+
'max_level' => 'max_level',
29+
];
2430

2531
/**
2632
* @inheritdoc
@@ -29,4 +35,4 @@ public function getResponseDecorator()
2935
{
3036
return HierarchyCollection::decorator('hierarchies');
3137
}
32-
}
38+
}

0 commit comments

Comments
 (0)