Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Tax domain

Tax Commands

AddTaxCommand

PrestaShop\PrestaShop\Core\Domain\Tax\Command\AddTaxCommand Adds new tax

Command details
Constructor parameters
  • $array $localizedNames
  • $float $rate
  • $bool $enabled
Handler class PrestaShop\PrestaShop\Adapter\Tax\CommandHandler\AddTaxHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\CommandHandler\AddTaxHandlerInterface
Return type void

BulkDeleteTaxCommand

PrestaShop\PrestaShop\Core\Domain\Tax\Command\BulkDeleteTaxCommand Deletes taxes on bulk action

Command details
Constructor parameters
  • $array $taxIds
Handler class PrestaShop\PrestaShop\Adapter\Tax\CommandHandler\BulkDeleteTaxHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\CommandHandler\BulkDeleteTaxHandlerInterface
Return type void

BulkToggleTaxStatusCommand

PrestaShop\PrestaShop\Core\Domain\Tax\Command\BulkToggleTaxStatusCommand Toggles taxes status on bulk action

Command details
Constructor parameters
  • $array $taxIds
  • $bool $expectedStatus
Handler class PrestaShop\PrestaShop\Adapter\Tax\CommandHandler\BulkToggleTaxStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\CommandHandler\BulkToggleTaxStatusHandlerInterface
Return type void

DeleteTaxCommand

PrestaShop\PrestaShop\Core\Domain\Tax\Command\DeleteTaxCommand Deletes tax

Command details
Constructor parameters
  • $int $taxId
Handler class PrestaShop\PrestaShop\Adapter\Tax\CommandHandler\DeleteTaxHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\CommandHandler\DeleteTaxHandlerInterface
Return type void

EditTaxCommand

PrestaShop\PrestaShop\Core\Domain\Tax\Command\EditTaxCommand Edits given tax with provided data

Command details
Constructor parameters
  • $int $taxId
Handler class PrestaShop\PrestaShop\Adapter\Tax\CommandHandler\EditTaxHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\CommandHandler\EditTaxHandlerInterface
Return type void

ToggleTaxStatusCommand

PrestaShop\PrestaShop\Core\Domain\Tax\Command\ToggleTaxStatusCommand Toggles tax status

Command details
Constructor parameters
  • $int $taxId
  • $bool $expectedStatus
Handler class PrestaShop\PrestaShop\Adapter\Tax\CommandHandler\ToggleTaxStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\CommandHandler\ToggleTaxStatusHandlerInterface
Return type void

Tax Queries

GetTaxForEditing

PrestaShop\PrestaShop\Core\Domain\Tax\Query\GetTaxForEditing Gets tax for editing in Back Office

Query details
Constructor parameters
  • $int $taxId
Handler class PrestaShop\PrestaShop\Adapter\Tax\QueryHandler\GetTaxForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Tax\QueryHandler\GetTaxForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Tax\QueryResult\EditableTax