TotalsInformationManagementInterface.php 662 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Api;
  7. /**
  8. * Interface for quote totals calculation
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface TotalsInformationManagementInterface
  13. {
  14. /**
  15. * Calculate quote totals based on address and shipping method.
  16. *
  17. * @param int $cartId
  18. * @param \Magento\Checkout\Api\Data\TotalsInformationInterface $addressInformation
  19. * @return \Magento\Quote\Api\Data\TotalsInterface
  20. */
  21. public function calculate(
  22. $cartId,
  23. \Magento\Checkout\Api\Data\TotalsInformationInterface $addressInformation
  24. );
  25. }