commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
Public Member Functions | List of all members
Commercetools\Api\Client\Resource\ByProjectKeyCartsPost Class Reference
Inheritance diagram for Commercetools\Api\Client\Resource\ByProjectKeyCartsPost:
Commercetools\Client\ApiRequest Commercetools\Api\Client\Resource\Expandable Commercetools\Api\Client\Resource\Deprecatable201 Commercetools\Api\Client\Resource\Errorable Commercetools\Client\ApiRequestInterface Commercetools\Client\ApiRequestInterface Commercetools\Client\ApiRequestInterface Commercetools\Client\ApiRequestInterface

Public Member Functions

 __construct (string $projectKey, $body=null, array $headers=[], ClientInterface $client=null)
 
 mapFromResponse (?ResponseInterface $response, string $resultType=null)
 
 execute (array $options=[], string $resultType=null)
 
 executeAsync (array $options=[], string $resultType=null)
 
 withExpand ($expand)
 
- Public Member Functions inherited from Commercetools\Client\ApiRequest
 __construct (?ClientInterface $client, string $method, string $uri, array $headers=[], $body=null, string $version='1.1')
 
 withQueryParam (string $parameterName, $value)
 
 send (array $options=[])
 
 sendAsync (array $options=[])
 
 getClient ()
 
- Public Member Functions inherited from Commercetools\Api\Client\Resource\Expandable
 withExpand (string $expand)
 

Additional Inherited Members

- Protected Member Functions inherited from Commercetools\Client\ApiRequest
 ensureHeader (array $headers, string $header, $defaultValue)
 
 responseData (ResponseInterface $response)
 

Detailed Description

@psalm-suppress PropertyNotSetInConstructor @template-implements Expandable<ByProjectKeyCartsPost> @template-implements Deprecatable201<ByProjectKeyCartsPost> @template-implements Errorable<ByProjectKeyCartsPost>

Definition at line 37 of file ByProjectKeyCartsPost.php.

Constructor & Destructor Documentation

◆ __construct()

Commercetools\Api\Client\Resource\ByProjectKeyCartsPost::__construct ( string  $projectKey,
  $body = null,
array  $headers = [],
ClientInterface  $client = null 
)
Parameters
?object|array|string$body @psalm-param array<string, scalar|scalar[]> $headers

Definition at line 43 of file ByProjectKeyCartsPost.php.

Member Function Documentation

◆ execute()

Commercetools\Api\Client\Resource\ByProjectKeyCartsPost::execute ( array  $options = [],
string  $resultType = null 
)

@template T of JsonObject @psalm-param ?class-string<T> $resultType

Returns
null|T|Cart|ErrorResponse|JsonObject

Definition at line 105 of file ByProjectKeyCartsPost.php.

◆ executeAsync()

Commercetools\Api\Client\Resource\ByProjectKeyCartsPost::executeAsync ( array  $options = [],
string  $resultType = null 
)

@template T of JsonObject @psalm-param ?class-string<T> $resultType

Returns
PromiseInterface

Definition at line 128 of file ByProjectKeyCartsPost.php.

◆ mapFromResponse()

Commercetools\Api\Client\Resource\ByProjectKeyCartsPost::mapFromResponse ( ?ResponseInterface  $response,
string  $resultType = null 
)

@template T of JsonObject @psalm-param ?class-string<T> $resultType

Returns
Cart|ErrorResponse|JsonObject|T|null

Definition at line 54 of file ByProjectKeyCartsPost.php.

◆ withExpand()

Commercetools\Api\Client\Resource\ByProjectKeyCartsPost::withExpand (   $expand)

@psalm-param scalar|scalar[] $expand

Definition at line 151 of file ByProjectKeyCartsPost.php.


The documentation for this class was generated from the following file: