AppliedTaxInterface.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. * Applied tax interface.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface AppliedTaxInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get tax rate key
  16. *
  17. * @return string|null
  18. */
  19. public function getTaxRateKey();
  20. /**
  21. * Set tax rate key
  22. *
  23. * @param string $taxRateKey
  24. * @return $this
  25. */
  26. public function setTaxRateKey($taxRateKey);
  27. /**
  28. * Get percent
  29. *
  30. * @return float
  31. */
  32. public function getPercent();
  33. /**
  34. * Set percent
  35. *
  36. * @param float $percent
  37. * @return $this
  38. */
  39. public function setPercent($percent);
  40. /**
  41. * Get amount
  42. *
  43. * @return float
  44. */
  45. public function getAmount();
  46. /**
  47. * Get amount
  48. *
  49. * @param float $amount
  50. * @return $this
  51. */
  52. public function setAmount($amount);
  53. /**
  54. * Get rates
  55. *
  56. * @return \Magento\Tax\Api\Data\AppliedTaxRateInterface[]|null
  57. */
  58. public function getRates();
  59. /**
  60. * Set rates
  61. *
  62. * @param \Magento\Tax\Api\Data\AppliedTaxRateInterface[] $rates
  63. * @return $this
  64. */
  65. public function setRates(array $rates = null);
  66. /**
  67. * Retrieve existing extension attributes object or create a new one.
  68. *
  69. * @return \Magento\Tax\Api\Data\AppliedTaxExtensionInterface|null
  70. */
  71. public function getExtensionAttributes();
  72. /**
  73. * Set an extension attributes object.
  74. *
  75. * @param \Magento\Tax\Api\Data\AppliedTaxExtensionInterface $extensionAttributes
  76. * @return $this
  77. */
  78. public function setExtensionAttributes(\Magento\Tax\Api\Data\AppliedTaxExtensionInterface $extensionAttributes);
  79. }