Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,57 +103,57 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/product-selections/test_ID/products?where=where',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
'ByProjectKeyProductSelectionsByIDProductsGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withId('test_ID')
->products()
->get()
->withExpand('expand');
->withWithTotal('withTotal');
},
'get',
'test_projectKey/product-selections/test_ID/products?expand=expand',
'test_projectKey/product-selections/test_ID/products?withTotal=withTotal',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withLimit' => [
'ByProjectKeyProductSelectionsByIDProductsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withId('test_ID')
->products()
->get()
->withLimit('limit');
->withExpand('expand');
},
'get',
'test_projectKey/product-selections/test_ID/products?limit=limit',
'test_projectKey/product-selections/test_ID/products?expand=expand',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withOffset' => [
'ByProjectKeyProductSelectionsByIDProductsGet_withLimit' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withId('test_ID')
->products()
->get()
->withOffset('offset');
->withLimit('limit');
},
'get',
'test_projectKey/product-selections/test_ID/products?offset=offset',
'test_projectKey/product-selections/test_ID/products?limit=limit',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withWithTotal' => [
'ByProjectKeyProductSelectionsByIDProductsGet_withOffset' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withId('test_ID')
->products()
->get()
->withWithTotal('withTotal');
->withOffset('offset');
},
'get',
'test_projectKey/product-selections/test_ID/products?withTotal=withTotal',
'test_projectKey/product-selections/test_ID/products?offset=offset',
],
'ByProjectKeyProductSelectionsByIDProductsGet_withSort' => [
function (ApiRequestBuilder $builder): RequestInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,57 +103,57 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/product-selections/key=test_key/products?where=where',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withKey('test_key')
->products()
->get()
->withExpand('expand');
->withWithTotal('withTotal');
},
'get',
'test_projectKey/product-selections/key=test_key/products?expand=expand',
'test_projectKey/product-selections/key=test_key/products?withTotal=withTotal',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withLimit' => [
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withKey('test_key')
->products()
->get()
->withLimit('limit');
->withExpand('expand');
},
'get',
'test_projectKey/product-selections/key=test_key/products?limit=limit',
'test_projectKey/product-selections/key=test_key/products?expand=expand',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withOffset' => [
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withLimit' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withKey('test_key')
->products()
->get()
->withOffset('offset');
->withLimit('limit');
},
'get',
'test_projectKey/product-selections/key=test_key/products?offset=offset',
'test_projectKey/product-selections/key=test_key/products?limit=limit',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withWithTotal' => [
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withOffset' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productSelections()
->withKey('test_key')
->products()
->get()
->withWithTotal('withTotal');
->withOffset('offset');
},
'get',
'test_projectKey/product-selections/key=test_key/products?withTotal=withTotal',
'test_projectKey/product-selections/key=test_key/products?offset=offset',
],
'ByProjectKeyProductSelectionsKeyByKeyProductsGet_withSort' => [
function (ApiRequestBuilder $builder): RequestInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductTailoringGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productTailoring()
->get()
->withWithTotal('withTotal');
},
'get',
'test_projectKey/product-tailoring?withTotal=withTotal',
],
'ByProjectKeyProductTailoringGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -147,17 +158,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/product-tailoring?offset=offset',
],
'ByProjectKeyProductTailoringGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->productTailoring()
->get()
->withWithTotal('withTotal');
},
'get',
'test_projectKey/product-tailoring?withTotal=withTotal',
],
'ByProjectKeyProductTailoringGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductsByIDProductSelectionsGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->products()
->withId('test_ID')
->productSelections()
->get()
->withWithTotal('withTotal');
},
'get',
'test_projectKey/products/test_ID/product-selections?withTotal=withTotal',
],
'ByProjectKeyProductsByIDProductSelectionsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -142,19 +155,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/products/test_ID/product-selections?offset=offset',
],
'ByProjectKeyProductsByIDProductSelectionsGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->products()
->withId('test_ID')
->productSelections()
->get()
->withWithTotal('withTotal');
},
'get',
'test_projectKey/products/test_ID/product-selections?withTotal=withTotal',
],
'ByProjectKeyProductsByIDProductSelectionsGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->products()
->withKey('test_key')
->productSelections()
->get()
->withWithTotal('withTotal');
},
'get',
'test_projectKey/products/key=test_key/product-selections?withTotal=withTotal',
],
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -142,19 +155,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/products/key=test_key/product-selections?offset=offset',
],
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWithTotal' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->products()
->withKey('test_key')
->productSelections()
->get()
->withWithTotal('withTotal');
},
'get',
'test_projectKey/products/key=test_key/product-selections?withTotal=withTotal',
],
'ByProjectKeyProductsKeyByKeyProductSelectionsGet_withWhere' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ public function withWhere($where): ByProjectKeyProductSelectionsByIDProductsGet
return $this->withQueryParam('where', $where);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsByIDProductsGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down Expand Up @@ -182,15 +191,6 @@ public function withOffset($offset): ByProjectKeyProductSelectionsByIDProductsGe
return $this->withQueryParam('offset', $offset);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsByIDProductsGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $sort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ public function withWhere($where): ByProjectKeyProductSelectionsKeyByKeyProducts
return $this->withQueryParam('where', $where);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsKeyByKeyProductsGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down Expand Up @@ -182,15 +191,6 @@ public function withOffset($offset): ByProjectKeyProductSelectionsKeyByKeyProduc
return $this->withQueryParam('offset', $offset);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductSelectionsKeyByKeyProductsGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $sort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductTailoringGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down Expand Up @@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductTailoringGet
return $this->withQueryParam('offset', $offset);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductTailoringGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductsByIDProductSelectionsGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $expand
Expand Down Expand Up @@ -183,15 +192,6 @@ public function withOffset($offset): ByProjectKeyProductsByIDProductSelectionsGe
return $this->withQueryParam('offset', $offset);
}

/**
*
* @psalm-param scalar|scalar[] $withTotal
*/
public function withWithTotal($withTotal): ByProjectKeyProductsByIDProductSelectionsGet
{
return $this->withQueryParam('withTotal', $withTotal);
}

/**
*
* @psalm-param scalar|scalar[] $where
Expand Down
Loading