commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Api\Models\ProductTailoring\ProductTailoringInStoreDraft
;
12
use
Commercetools\Client\ApiResource
;
13
use GuzzleHttp\ClientInterface;
14
use Psr\Http\Message\UploadedFileInterface;
15
19
class
ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring
extends
ApiResource
20
{
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
25
{
26
parent::__construct(
'/{projectKey}/in-store/key={storeKey}/product-tailoring'
, $args, $client);
27
}
28
33
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet
34
{
35
$args = $this->
getArgs
();
36
37
return
new
ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet
($args[
'projectKey'
], $args[
'storeKey'
], $body, $headers, $this->
getClient
());
38
}
43
public
function
post
(?
ProductTailoringInStoreDraft
$body =
null
, array $headers = []):
ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost
44
{
45
$args = $this->
getArgs
();
46
47
return
new
ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost
($args[
'projectKey'
], $args[
'storeKey'
], $body, $headers, $this->
getClient
());
48
}
49
}
Commercetools\Api\Client\Resource\ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet
Definition:
ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet.php:43
Commercetools\Api\Client\Resource\ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost
Definition:
ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost.php:38
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring\post
post(?ProductTailoringInStoreDraft $body=null, array $headers=[])
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring.php:43
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring.php:24
Commercetools\Client\ApiResource
Definition:
ApiResource.php:15
Commercetools\Client\ApiResource\getClient
getClient()
Definition:
ApiResource.php:61
Commercetools\Client\ApiResource\getArgs
getArgs()
Definition:
ApiResource.php:56
Commercetools\Api\Models\ProductTailoring\ProductTailoringInStoreDraft
Definition:
ProductTailoringInStoreDraft.php:17
Commercetools\Api\Client\Resource
Definition:
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.1