commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
|
Public Member Functions | |
__construct (?int $version=null, ?string $key=null, ?string $name=null, ?array $countries=null, ?array $currencies=null, ?array $languages=null, ?DateTimeImmutable $createdAt=null, ?string $trialUntil=null, ?MessagesConfiguration $messages=null, ?CartsConfiguration $carts=null, ?ShoppingListsConfiguration $shoppingLists=null, ?ShippingRateInputType $shippingRateInputType=null, ?ExternalOAuth $externalOAuth=null, ?SearchIndexingConfiguration $searchIndexing=null, ?BusinessUnitConfiguration $businessUnits=null) | |
getVersion () | |
getKey () | |
getName () | |
getCountries () | |
getCurrencies () | |
getLanguages () | |
getCreatedAt () | |
getTrialUntil () | |
getMessages () | |
getCarts () | |
getShoppingLists () | |
getShippingRateInputType () | |
getExternalOAuth () | |
getSearchIndexing () | |
getBusinessUnits () | |
setVersion (?int $version) | |
setKey (?string $key) | |
setName (?string $name) | |
setCountries (?array $countries) | |
setCurrencies (?array $currencies) | |
setLanguages (?array $languages) | |
setCreatedAt (?DateTimeImmutable $createdAt) | |
setTrialUntil (?string $trialUntil) | |
setMessages (?MessagesConfiguration $messages) | |
setCarts (?CartsConfiguration $carts) | |
setShoppingLists (?ShoppingListsConfiguration $shoppingLists) | |
setShippingRateInputType (?ShippingRateInputType $shippingRateInputType) | |
setExternalOAuth (?ExternalOAuth $externalOAuth) | |
setSearchIndexing (?SearchIndexingConfiguration $searchIndexing) | |
setBusinessUnits (?BusinessUnitConfiguration $businessUnits) | |
jsonSerialize () | |
Public Member Functions inherited from Commercetools\Base\JsonObjectModel | |
get (string $field) | |
with (callable $callable=null) | |
Protected Attributes | |
$version | |
$key | |
$name | |
$countries | |
$currencies | |
$languages | |
$createdAt | |
$trialUntil | |
$messages | |
$carts | |
$shoppingLists | |
$shippingRateInputType | |
$externalOAuth | |
$searchIndexing | |
$businessUnits | |
Additional Inherited Members | |
Static Public Member Functions inherited from Commercetools\Base\BaseJsonObject | |
static | of ($data=null) |
static | fromStdClass (stdClass $data=null) |
static | fromArray (array $data=[]) |
Public Attributes inherited from Commercetools\Api\Models\Project\Project | |
const | FIELD_VERSION = 'version' |
const | FIELD_KEY = 'key' |
const | FIELD_NAME = 'name' |
const | FIELD_COUNTRIES = 'countries' |
const | FIELD_CURRENCIES = 'currencies' |
const | FIELD_LANGUAGES = 'languages' |
const | FIELD_CREATED_AT = 'createdAt' |
const | FIELD_TRIAL_UNTIL = 'trialUntil' |
const | FIELD_MESSAGES = 'messages' |
const | FIELD_CARTS = 'carts' |
const | FIELD_SHOPPING_LISTS = 'shoppingLists' |
const | FIELD_SHIPPING_RATE_INPUT_TYPE = 'shippingRateInputType' |
const | FIELD_EXTERNAL_O_AUTH = 'externalOAuth' |
const | FIELD_SEARCH_INDEXING = 'searchIndexing' |
const | FIELD_BUSINESS_UNITS = 'businessUnits' |
Protected Member Functions inherited from Commercetools\Base\JsonObjectModel | |
toArray () | |
Protected Member Functions inherited from Commercetools\Base\BaseJsonObject | |
raw (string $field) | |
getRawDataArray () | |
Definition at line 23 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::__construct | ( | ?int | $version = null , |
?string | $key = null , |
||
?string | $name = null , |
||
?array | $countries = null , |
||
?array | $currencies = null , |
||
?array | $languages = null , |
||
?DateTimeImmutable | $createdAt = null , |
||
?string | $trialUntil = null , |
||
?MessagesConfiguration | $messages = null , |
||
?CartsConfiguration | $carts = null , |
||
?ShoppingListsConfiguration | $shoppingLists = null , |
||
?ShippingRateInputType | $shippingRateInputType = null , |
||
?ExternalOAuth | $externalOAuth = null , |
||
?SearchIndexingConfiguration | $searchIndexing = null , |
||
?BusinessUnitConfiguration | $businessUnits = null |
||
) |
@psalm-suppress MissingParamType
Definition at line 119 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getBusinessUnits | ( | ) |
Holds configuration specific to Business Units.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 449 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getCarts | ( | ) |
Holds the configuration for the Carts feature.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 344 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getCountries | ( | ) |
Country code of the geographic location.
@psalm-var ?list<mixed> $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 219 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getCreatedAt | ( | ) |
Date and time (UTC) the Project was initially created.
@psalm-var ?string $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 279 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getCurrencies | ( | ) |
Currency code of the country. A Project must have at least one currency.
@psalm-var ?list<mixed> $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 239 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getExternalOAuth | ( | ) |
Represents a RFC 7662 compliant OAuth 2.0 Token Introspection endpoint.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 407 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getKey | ( | ) |
User-defined unique identifier of the Project.
@psalm-var ?string $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 179 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getLanguages | ( | ) |
Language of the country. A Project must have at least one language.
@psalm-var ?list<mixed> $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 259 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getMessages | ( | ) |
Holds the configuration for the Messages Query feature.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 323 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getName | ( | ) |
Name of the Project.
@psalm-var ?string $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 199 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getSearchIndexing | ( | ) |
Controls indexing of resources to be provided on high performance read-only search endpoints.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 428 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getShippingRateInputType | ( | ) |
Holds the configuration for the tiered shipping rates feature.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 386 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getShoppingLists | ( | ) |
Holds the configuration for the Shopping Lists feature. This field may not be present on Projects created before January 2020.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 365 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getTrialUntil | ( | ) |
Date in YYYY-MM format specifying when the trial period for the Project ends. Only present on Projects in trial period.
@psalm-var ?string $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 303 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::getVersion | ( | ) |
Current version of the Project.
@psalm-var ?int $data
Implements Commercetools\Api\Models\Project\Project.
Definition at line 159 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::jsonSerialize | ( | ) |
Reimplemented from Commercetools\Base\BaseJsonObject.
Definition at line 587 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setBusinessUnits | ( | ?BusinessUnitConfiguration | $businessUnits | ) |
?BusinessUnitConfiguration | $businessUnits |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 580 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setCarts | ( | ?CartsConfiguration | $carts | ) |
?CartsConfiguration | $carts |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 540 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setCountries | ( | ?array | $countries | ) |
?array | $countries |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 492 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setCreatedAt | ( | ?DateTimeImmutable | $createdAt | ) |
?DateTimeImmutable | $createdAt |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 516 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setCurrencies | ( | ?array | $currencies | ) |
?array | $currencies |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 500 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setExternalOAuth | ( | ?ExternalOAuth | $externalOAuth | ) |
?ExternalOAuth | $externalOAuth |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 564 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setKey | ( | ?string | $key | ) |
?string | $key |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 476 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setLanguages | ( | ?array | $languages | ) |
?array | $languages |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 508 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setMessages | ( | ?MessagesConfiguration | $messages | ) |
?MessagesConfiguration | $messages |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 532 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setName | ( | ?string | $name | ) |
?string | $name |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 484 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setSearchIndexing | ( | ?SearchIndexingConfiguration | $searchIndexing | ) |
?SearchIndexingConfiguration | $searchIndexing |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 572 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setShippingRateInputType | ( | ?ShippingRateInputType | $shippingRateInputType | ) |
?ShippingRateInputType | $shippingRateInputType |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 556 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setShoppingLists | ( | ?ShoppingListsConfiguration | $shoppingLists | ) |
?ShoppingListsConfiguration | $shoppingLists |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 548 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setTrialUntil | ( | ?string | $trialUntil | ) |
?string | $trialUntil |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 524 of file ProjectModel.php.
Commercetools\Api\Models\Project\ProjectModel::setVersion | ( | ?int | $version | ) |
?int | $version |
Implements Commercetools\Api\Models\Project\Project.
Definition at line 468 of file ProjectModel.php.
|
protected |
Definition at line 113 of file ProjectModel.php.
|
protected |
Definition at line 83 of file ProjectModel.php.
|
protected |
Definition at line 47 of file ProjectModel.php.
|
protected |
Definition at line 65 of file ProjectModel.php.
|
protected |
Definition at line 53 of file ProjectModel.php.
|
protected |
Definition at line 101 of file ProjectModel.php.
|
protected |
Definition at line 35 of file ProjectModel.php.
|
protected |
Definition at line 59 of file ProjectModel.php.
|
protected |
Definition at line 77 of file ProjectModel.php.
|
protected |
Definition at line 41 of file ProjectModel.php.
|
protected |
Definition at line 107 of file ProjectModel.php.
|
protected |
Definition at line 95 of file ProjectModel.php.
|
protected |
Definition at line 89 of file ProjectModel.php.
|
protected |
Definition at line 71 of file ProjectModel.php.
|
protected |
Definition at line 29 of file ProjectModel.php.