Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page
PrestaShop\PrestaShop\Core\Domain\Currency\Command\AddCurrencyCommand
Class AddCurrencyCommand used to add an official currency
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\AddOfficialCurrencyHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Currency\ValueObject\CurrencyId |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\AddUnofficialCurrencyCommand
Class AddUnofficialCurrencyCommand used to add an alternative currency
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\AddUnofficialCurrencyHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Currency\ValueObject\CurrencyId |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\BulkDeleteCurrenciesCommand
Deletes given currencies
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\BulkDeleteCurrenciesHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\BulkToggleCurrenciesStatusCommand
Enables/disables currencies status
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\BulkToggleCurrenciesStatusHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\DeleteCurrencyCommand
Class DeleteCurrencyCommand is responsible for deleting Currency.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\DeleteCurrencyHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\EditCurrencyCommand
Class EditCurrencyCommand
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\EditOfficialCurrencyHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\EditUnofficialCurrencyCommand
__
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\EditUnofficialCurrencyHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\RefreshExchangeRatesCommand
Class RefreshExchangeRatesCommand
Command details | |
---|---|
Constructor parameters | |
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\RefreshExchangeRatesHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\ToggleCurrencyStatusCommand
Class ToggleCurrencyStatusCommand is responsible for changing the status of the currency.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\ToggleCurrencyStatusHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Command\ToggleExchangeRateAutomatizationCommand
Class ToggleExchangeRateAutomatizationCommand is responsible for turning on or off the setting - if its on then in CronJobs module it creates new record with url which points to the script which is being executed at certain time of period. If the setting is off then it removes that record.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\CommandHandler\ToggleExchangeRateAutomatizationHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Currency\Query\GetCurrencyExchangeRate
Retrieves the exchange rate for a currency compared to the shop's default
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\QueryHandler\GetCurrencyExchangeRateHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Currency\QueryResult\ExchangeRate |
PrestaShop\PrestaShop\Core\Domain\Currency\Query\GetCurrencyForEditing
Class GetCurrencyForEditing
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\QueryHandler\GetCurrencyForEditingHandler Implements:
|
Return type | \PrestaShop\PrestaShop\Core\Domain\Currency\QueryResult\EditableCurrency |
PrestaShop\PrestaShop\Core\Domain\Currency\Query\GetReferenceCurrency
Get reference currency data, which are data from the unicode CLDR database, thus only official currencies have one. The result is exposed with a ReferenceCurrency object, and if the currency doesn't exist a CurrencyNotFoundException is thrown.
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Currency\QueryHandler\GetReferenceCurrencyHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Currency\QueryResult\ReferenceCurrency |