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\ByProjectKeyShippingMethodsMatchingOrdereditGet Class Reference
Inheritance diagram for Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsMatchingOrdereditGet:
Commercetools\Client\ApiRequest Commercetools\Api\Client\Resource\Errorable Commercetools\Api\Client\Resource\Deprecatable200 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)
 
 withOrderEditId ($orderEditId)
 
 withCountry ($country)
 
 withState ($state)
 
- 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 ()
 

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 Errorable<ByProjectKeyShippingMethodsMatchingOrdereditGet> @template-implements Deprecatable200<ByProjectKeyShippingMethodsMatchingOrdereditGet>

Definition at line 36 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ execute()

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

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

Returns
null|T|ErrorResponse|JsonObject|ShippingMethodPagedQueryResponse

Definition at line 104 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.

◆ executeAsync()

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

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

Returns
PromiseInterface

Definition at line 127 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.

◆ mapFromResponse()

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

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

Returns
ErrorResponse|JsonObject|ShippingMethodPagedQueryResponse|T|null

Definition at line 53 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.

◆ withCountry()

Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsMatchingOrdereditGet::withCountry (   $country)

@psalm-param scalar|scalar[] $country

Definition at line 159 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.

◆ withOrderEditId()

Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsMatchingOrdereditGet::withOrderEditId (   $orderEditId)

@psalm-param scalar|scalar[] $orderEditId

Definition at line 150 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.

◆ withState()

Commercetools\Api\Client\Resource\ByProjectKeyShippingMethodsMatchingOrdereditGet::withState (   $state)

@psalm-param scalar|scalar[] $state

Definition at line 168 of file ByProjectKeyShippingMethodsMatchingOrdereditGet.php.


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