GrandTotalDetailsInterface.php 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Api\Data;
  7. /**
  8. * Interface GrandTotalDetailsInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface GrandTotalDetailsInterface
  13. {
  14. /**
  15. * Get tax amount value
  16. *
  17. * @return float|string
  18. */
  19. public function getAmount();
  20. /**
  21. * @param string|float $amount
  22. * @return $this
  23. */
  24. public function setAmount($amount);
  25. /**
  26. * Applied tax rates info
  27. *
  28. * @return \Magento\Tax\Api\Data\GrandTotalRatesInterface[]
  29. */
  30. public function getRates();
  31. /**
  32. * @param \Magento\Tax\Api\Data\GrandTotalRatesInterface[] $rates
  33. * @return $this
  34. */
  35. public function setRates($rates);
  36. /**
  37. * Details group identifier
  38. *
  39. * @return int
  40. */
  41. public function getGroupId();
  42. /**
  43. * @param int $id
  44. * @return $this
  45. */
  46. public function setGroupId($id);
  47. }