SalesModelInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model\Cart\SalesModel;
  7. /**
  8. * Wrapper interface for accessing sales model data
  9. */
  10. interface SalesModelInterface
  11. {
  12. /**
  13. * Get all items from shopping sales model
  14. *
  15. * @return array
  16. * @api
  17. */
  18. public function getAllItems();
  19. /**
  20. * @return float|null
  21. * @api
  22. */
  23. public function getBaseSubtotal();
  24. /**
  25. * @return float|null
  26. * @api
  27. */
  28. public function getBaseTaxAmount();
  29. /**
  30. * @return float|null
  31. * @api
  32. */
  33. public function getBaseShippingAmount();
  34. /**
  35. * @return float|null
  36. * @api
  37. */
  38. public function getBaseDiscountAmount();
  39. /**
  40. * Wrapper for \Magento\Framework\DataObject getDataUsingMethod method
  41. *
  42. * @param string $key
  43. * @param mixed $args
  44. * @return mixed
  45. * @api
  46. */
  47. public function getDataUsingMethod($key, $args = null);
  48. /**
  49. * Return object that contains tax related fields
  50. *
  51. * @return \Magento\Sales\Api\Data\OrderInterface|\Magento\Quote\Api\Data\AddressInterface
  52. * @api
  53. */
  54. public function getTaxContainer();
  55. }