GuestCartTotalRepositoryInterface.php 599 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Api;
  7. /**
  8. * Cart totals repository interface for guest carts.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface GuestCartTotalRepositoryInterface
  13. {
  14. /**
  15. * Return quote totals data for a specified cart.
  16. *
  17. * @param string $cartId The cart ID.
  18. * @return \Magento\Quote\Api\Data\TotalsInterface Quote totals data.
  19. * @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist.
  20. */
  21. public function get($cartId);
  22. }