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\ByProjectKeyProductsPost Class Reference
Inheritance diagram for Commercetools\Api\Client\Resource\ByProjectKeyProductsPost:
Commercetools\Client\ApiRequest Commercetools\Api\Client\Resource\PriceSelecting 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 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)
 
 withPriceCurrency ($priceCurrency)
 
 withPriceCountry ($priceCountry)
 
 withPriceCustomerGroup ($priceCustomerGroup)
 
 withPriceChannel ($priceChannel)
 
 withLocaleProjection ($localeProjection)
 
 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\PriceSelecting
 withPriceCurrency (string $priceCurrency)
 
 withPriceCountry (string $priceCountry)
 
 withPriceCustomerGroup (string $priceCustomerGroup)
 
 withPriceChannel (string $priceChannel)
 
 withLocaleProjection (string $localeProjection)
 
- 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 PriceSelecting<ByProjectKeyProductsPost> @template-implements Expandable<ByProjectKeyProductsPost> @template-implements Deprecatable201<ByProjectKeyProductsPost> @template-implements Errorable<ByProjectKeyProductsPost>

Definition at line 38 of file ByProjectKeyProductsPost.php.

Constructor & Destructor Documentation

◆ __construct()

Commercetools\Api\Client\Resource\ByProjectKeyProductsPost::__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 44 of file ByProjectKeyProductsPost.php.

Member Function Documentation

◆ execute()

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

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

Returns
null|T|ErrorResponse|JsonObject|Product

Definition at line 106 of file ByProjectKeyProductsPost.php.

◆ executeAsync()

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

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

Returns
PromiseInterface

Definition at line 129 of file ByProjectKeyProductsPost.php.

◆ mapFromResponse()

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

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

Returns
ErrorResponse|JsonObject|Product|T|null

Definition at line 55 of file ByProjectKeyProductsPost.php.

◆ withExpand()

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

@psalm-param scalar|scalar[] $expand

Definition at line 197 of file ByProjectKeyProductsPost.php.

◆ withLocaleProjection()

Commercetools\Api\Client\Resource\ByProjectKeyProductsPost::withLocaleProjection (   $localeProjection)

@psalm-param scalar|scalar[] $localeProjection

Definition at line 188 of file ByProjectKeyProductsPost.php.

◆ withPriceChannel()

Commercetools\Api\Client\Resource\ByProjectKeyProductsPost::withPriceChannel (   $priceChannel)

@psalm-param scalar|scalar[] $priceChannel

Definition at line 179 of file ByProjectKeyProductsPost.php.

◆ withPriceCountry()

Commercetools\Api\Client\Resource\ByProjectKeyProductsPost::withPriceCountry (   $priceCountry)

@psalm-param scalar|scalar[] $priceCountry

Definition at line 161 of file ByProjectKeyProductsPost.php.

◆ withPriceCurrency()

Commercetools\Api\Client\Resource\ByProjectKeyProductsPost::withPriceCurrency (   $priceCurrency)

@psalm-param scalar|scalar[] $priceCurrency

Definition at line 152 of file ByProjectKeyProductsPost.php.

◆ withPriceCustomerGroup()

Commercetools\Api\Client\Resource\ByProjectKeyProductsPost::withPriceCustomerGroup (   $priceCustomerGroup)

@psalm-param scalar|scalar[] $priceCustomerGroup

Definition at line 170 of file ByProjectKeyProductsPost.php.


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