AppliedTaxRateInterface.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 rate interface.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface AppliedTaxRateInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get code
  16. *
  17. * @return string|null
  18. */
  19. public function getCode();
  20. /**
  21. * Set code
  22. *
  23. * @param string $code
  24. * @return $this
  25. */
  26. public function setCode($code);
  27. /**
  28. * Get Title
  29. *
  30. * @return string|null
  31. */
  32. public function getTitle();
  33. /**
  34. * Set Title
  35. *
  36. * @param string $title
  37. * @return $this
  38. */
  39. public function setTitle($title);
  40. /**
  41. * Get Tax Percent
  42. *
  43. * @return float|null
  44. */
  45. public function getPercent();
  46. /**
  47. * Set Tax Percent
  48. *
  49. * @param float $percent
  50. * @return $this
  51. */
  52. public function setPercent($percent);
  53. /**
  54. * Retrieve existing extension attributes object or create a new one.
  55. *
  56. * @return \Magento\Tax\Api\Data\AppliedTaxRateExtensionInterface|null
  57. */
  58. public function getExtensionAttributes();
  59. /**
  60. * Set an extension attributes object.
  61. *
  62. * @param \Magento\Tax\Api\Data\AppliedTaxRateExtensionInterface $extensionAttributes
  63. * @return $this
  64. */
  65. public function setExtensionAttributes(\Magento\Tax\Api\Data\AppliedTaxRateExtensionInterface $extensionAttributes);
  66. }