commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyCartsReplicate.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Api\Models\Cart\ReplicaCartDraft
;
12
use
Commercetools\Client\ApiResource
;
13
use GuzzleHttp\ClientInterface;
14
use Psr\Http\Message\UploadedFileInterface;
15
19
class
ResourceByProjectKeyCartsReplicate
extends
ApiResource
20
{
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
25
{
26
parent::__construct(
'/{projectKey}/carts/replicate'
, $args, $client);
27
}
28
33
public
function
post
(?
ReplicaCartDraft
$body =
null
, array $headers = []):
ByProjectKeyCartsReplicatePost
34
{
35
$args = $this->
getArgs
();
36
37
return
new
ByProjectKeyCartsReplicatePost
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
38
}
39
}
Commercetools\Api\Client\Resource\ByProjectKeyCartsReplicatePost
Definition:
ByProjectKeyCartsReplicatePost.php:36
Commercetools\Api\Client\Resource\ResourceByProjectKeyCartsReplicate
Definition:
ResourceByProjectKeyCartsReplicate.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyCartsReplicate\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition:
ResourceByProjectKeyCartsReplicate.php:24
Commercetools\Api\Client\Resource\ResourceByProjectKeyCartsReplicate\post
post(?ReplicaCartDraft $body=null, array $headers=[])
Definition:
ResourceByProjectKeyCartsReplicate.php:33
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\Cart\ReplicaCartDraft
Definition:
ReplicaCartDraft.php:16
Commercetools\Api\Client\Resource
Definition:
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.1