Definition at line 15 of file StateDraft.php.
◆ getDescription()
Commercetools\Api\Models\State\StateDraft::getDescription |
( |
| ) |
|
◆ getInitial()
Commercetools\Api\Models\State\StateDraft::getInitial |
( |
| ) |
|
◆ getKey()
Commercetools\Api\Models\State\StateDraft::getKey |
( |
| ) |
|
◆ getName()
Commercetools\Api\Models\State\StateDraft::getName |
( |
| ) |
|
◆ getRoles()
Commercetools\Api\Models\State\StateDraft::getRoles |
( |
| ) |
|
◆ getTransitions()
Commercetools\Api\Models\State\StateDraft::getTransitions |
( |
| ) |
|
Define the list of States of the same type
to which the current State can be transitioned to.
-
If, for example, the current State is the Initial State of StateType
OrderState
and you want to allow the transition Initial -> Shipped, then add the StateResourceIdentifier to the Shipped OrderState
to this list.
-
Set to empty list for not allowing any transition from the current State and defining it as final State for a workflow.
-
Do not set this field at all to turn off validation and allowing transitions to any other State of the same
type
as the current State.
- Returns
- null|StateResourceIdentifierCollection
Implemented in Commercetools\Api\Models\State\StateDraftModel.
◆ getType()
Commercetools\Api\Models\State\StateDraft::getType |
( |
| ) |
|
◆ setDescription()
Commercetools\Api\Models\State\StateDraft::setDescription |
( |
?LocalizedString |
$description | ) |
|
◆ setInitial()
Commercetools\Api\Models\State\StateDraft::setInitial |
( |
?bool |
$initial | ) |
|
◆ setKey()
Commercetools\Api\Models\State\StateDraft::setKey |
( |
?string |
$key | ) |
|
◆ setName()
Commercetools\Api\Models\State\StateDraft::setName |
( |
?LocalizedString |
$name | ) |
|
◆ setRoles()
Commercetools\Api\Models\State\StateDraft::setRoles |
( |
?array |
$roles | ) |
|
◆ setTransitions()
◆ setType()
Commercetools\Api\Models\State\StateDraft::setType |
( |
?string |
$type | ) |
|
◆ FIELD_DESCRIPTION
const Commercetools\Api\Models\State\StateDraft::FIELD_DESCRIPTION = 'description' |
◆ FIELD_INITIAL
const Commercetools\Api\Models\State\StateDraft::FIELD_INITIAL = 'initial' |
◆ FIELD_KEY
const Commercetools\Api\Models\State\StateDraft::FIELD_KEY = 'key' |
◆ FIELD_NAME
const Commercetools\Api\Models\State\StateDraft::FIELD_NAME = 'name' |
◆ FIELD_ROLES
const Commercetools\Api\Models\State\StateDraft::FIELD_ROLES = 'roles' |
◆ FIELD_TRANSITIONS
const Commercetools\Api\Models\State\StateDraft::FIELD_TRANSITIONS = 'transitions' |
◆ FIELD_TYPE
const Commercetools\Api\Models\State\StateDraft::FIELD_TYPE = 'type' |
The documentation for this interface was generated from the following file: