OrderState domain

OrderState Commands

AddOrderStateCommand

PrestaShop\PrestaShop\Core\Domain\OrderState\Command\AddOrderStateCommand Adds new order state with provided data

Command details
Constructor parameters
  • $array $localizedNames
  • $string $color
  • $bool $loggable
  • $bool $invoice
  • $bool $hidden
  • $bool $sendEmail
  • $bool $pdfInvoice
  • $bool $pdfDelivery
  • $bool $shipped
  • $bool $paid
  • $bool $delivery
  • $array $localizedTemplates
Handler class PrestaShop\PrestaShop\Adapter\OrderState\CommandHandler\AddOrderStateHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderState\CommandHandler\AddOrderStateHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\OrderState\ValueObject\OrderStateId

BulkDeleteOrderStateCommand

PrestaShop\PrestaShop\Core\Domain\OrderState\Command\BulkDeleteOrderStateCommand Deletes addresses in bulk action

Command details
Constructor parameters
  • $array $orderStateIds
Handler class PrestaShop\PrestaShop\Adapter\OrderState\CommandHandler\BulkDeleteOrderStateHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderState\CommandHandler\BulkDeleteOrderStateHandlerInterface
Return type void

DeleteOrderStateCommand

PrestaShop\PrestaShop\Core\Domain\OrderState\Command\DeleteOrderStateCommand Deletes Address

Command details
Constructor parameters
  • $int $orderStateId
Handler class PrestaShop\PrestaShop\Adapter\OrderState\CommandHandler\DeleteOrderStateHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderState\CommandHandler\DeleteOrderStateHandlerInterface
Return type void

EditOrderStateCommand

PrestaShop\PrestaShop\Core\Domain\OrderState\Command\EditOrderStateCommand Edits provided order state. It can edit either all or partial data. Only not-null values are considered when editing order state. For example, if the name is null, then the original value is not modified, however, if name is set, then the original value will be overwritten.

Command details
Constructor parameters
  • $int $orderStateId
Handler class PrestaShop\PrestaShop\Adapter\OrderState\CommandHandler\EditOrderStateHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderState\CommandHandler\EditOrderStateHandlerInterface
Return type void

OrderState Queries

GetOrderStateForEditing

PrestaShop\PrestaShop\Core\Domain\OrderState\Query\GetOrderStateForEditing Gets order state information for editing.

Query details
Constructor parameters
  • $int $orderStateId
Handler class PrestaShop\PrestaShop\Adapter\OrderState\QueryHandler\GetOrderStateForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderState\QueryHandler\GetOrderStateForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\OrderState\QueryResult\EditableOrderState