admin_currencies_index:
  path: /
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::indexAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies

admin_currencies_search:
  path: /
  methods: POST
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\CommonController::searchGridAction
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.currency
    redirectRoute: admin_currencies_index
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:submitFiltercurrency

admin_currencies_create:
  path: /new
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::createAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:addcurrency

admin_currencies_edit:
  path: /{currencyId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::editAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:updatecurrency
    _legacy_parameters:
      id_currency: currencyId
  requirements:
    currencyId: \d+

admin_currencies_delete:
  path: /{currencyId}/delete
  methods: DELETE
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::deleteAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:deletecurrency
    _legacy_parameters:
      id_currency: currencyId
  requirements:
    currencyId: \d+

admin_currencies_toggle_status:
  path: /{currencyId}/toggle-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::toggleStatusAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:statuscurrency
    _legacy_parameters:
      id_currency: currencyId
  requirements:
    currencyId: \d+

admin_currencies_update_live_exchange_rates:
  path: /update-live-exchange-rates
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::updateLiveExchangeRatesAction'
    _legacy_controller: AdminCurrencies

admin_currencies_refresh_exchange_rates:
  path: /refresh-exchange-rates
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::refreshExchangeRatesAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:SubmitExchangesRates

admin_currencies_get_reference_data:
  path: /reference-data/{currencyIsoCode}
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::getReferenceDataAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:getReferenceData

admin_currencies_bulk_delete:
  path: /bulk-delete
  methods: [ POST, DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::bulkDeleteAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:submitBulkdeletecurrency

admin_currencies_bulk_toggle_status:
  path: /bulk-toggle-status/{status}
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\International\CurrencyController::bulkToggleStatusAction'
    _legacy_controller: AdminCurrencies
    _legacy_link: AdminCurrencies:submitBulkupdatecurrency
  requirements:
    status: enable|disable
