OrderMessage domain

OrderMessage Commands

AddOrderMessageCommand

PrestaShop\PrestaShop\Core\Domain\OrderMessage\Command\AddOrderMessageCommand Add new order message

Command details
Constructor parameters
  • $array $localizedName
  • $array $localizedMessage
Handler class PrestaShop\PrestaShop\Adapter\OrderMessage\CommandHandler\AddOrderMessageHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderMessage\CommandHandler\AddOrderMessageHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\OrderMessage\ValueObject\OrderMessageId

BulkDeleteOrderMessageCommand

PrestaShop\PrestaShop\Core\Domain\OrderMessage\Command\BulkDeleteOrderMessageCommand Delete given order messages

Command details
Constructor parameters
  • $array $orderMessageIds
Handler class PrestaShop\PrestaShop\Adapter\OrderMessage\CommandHandler\BulkDeleteOrderMessageHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderMessage\CommandHandler\BulkDeleteOrderMessageHandlerInterface
Return type void

DeleteOrderMessageCommand

PrestaShop\PrestaShop\Core\Domain\OrderMessage\Command\DeleteOrderMessageCommand Delete given order message

Command details
Constructor parameters
  • $int $orderMessageId
Handler class PrestaShop\PrestaShop\Adapter\OrderMessage\CommandHandler\DeleteOrderMessageHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderMessage\CommandHandler\DeleteOrderMessageHandlerInterface
Return type void

EditOrderMessageCommand

PrestaShop\PrestaShop\Core\Domain\OrderMessage\Command\EditOrderMessageCommand Edit given order message

Command details
Constructor parameters
  • $int $orderMessageId
  • $?array $localizedName = NULL
  • $?array $localizedMessage = NULL
Handler class PrestaShop\PrestaShop\Adapter\OrderMessage\CommandHandler\EditOrderMessageHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderMessage\CommandHandler\EditOrderMessageHandlerInterface
Return type void

OrderMessage Queries

GetOrderMessageForEditing

PrestaShop\PrestaShop\Core\Domain\OrderMessage\Query\GetOrderMessageForEditing Get order message data for editing

Query details
Constructor parameters
  • $int $orderMessageId
Handler class PrestaShop\PrestaShop\Adapter\OrderMessage\QueryHandler\GetOrderMessageForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\OrderMessage\QueryHandler\GetOrderMessageForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\OrderMessage\QueryResult\EditableOrderMessage