admin_carts_view:
  path: /{cartId}/view
  methods: [GET]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:view
    _legacy_controller: AdminCarts
    _legacy_link: AdminCarts:viewcart
    _legacy_parameters:
      id_cart: cartId
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_info:
  path: /{cartId}/info
  methods: [GET]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:getInfo
    _legacy_controller: AdminCarts
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_create:
  path: /new
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:create
    _legacy_controller: AdminCarts
  options:
    expose: true

admin_carts_edit_addresses:
  path: /{cartId}/addresses
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:editAddresses
    _legacy_controller: AdminCarts
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_edit_carrier:
  path: /{cartId}/carrier
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:editCarrier
    _legacy_controller: AdminCarts
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_edit_currency:
  path: /{cartId}/currency
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:editCurrency
    _legacy_controller: AdminCarts
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_edit_language:
  path: /{cartId}/language
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:editLanguage
    _legacy_controller: AdminCarts
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_set_delivery_settings:
  path: /{cartId}/rules/delivery-settings
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:updateDeliverySettings
    _legacy_controller: AdminCarts
  requirements:
    cartId: \d+
  options:
    expose: true

admin_carts_add_cart_rule:
  path: /{cartId}/cart-rules
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:addCartRule
    _legacy_controller: AdminCarts
  options:
    expose: true

admin_carts_delete_cart_rule:
  path: /{cartId}/cart-rules/{cartRuleId}/delete
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:deleteCartRule
    _legacy_controller: AdminCarts
  options:
    expose: true

admin_carts_add_product:
  path: /{cartId}/products
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:addProduct
    _legacy_controller: AdminCarts
  options:
    expose: true
  requirements:
    cartId: \d+

admin_carts_edit_product_price:
  path: /{cartId}/products/{productId}/price
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:editProductPrice
    _legacy_controller: AdminCarts
  options:
    expose: true
  requirements:
    cartId: \d+
    productId: \d+

admin_carts_edit_product_quantity:
  path: /{cartId}/products/{productId}/quantity
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:editProductQuantity
    _legacy_controller: AdminCarts
  options:
    expose: true
  requirements:
    cartId: \d+
    productId: \d+

admin_carts_delete_product:
  path: /{cartId}/delete-product
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin/Sell/Order/Cart:deleteProduct
    _legacy_controller: AdminCarts
  options:
    expose: true
  requirements:
    cartId: \d+
