TaxRuleInterface.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. use Magento\Framework\Api\ExtensibleDataInterface;
  8. /**
  9. * Tax rule interface.
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TaxRuleInterface extends ExtensibleDataInterface
  14. {
  15. /**
  16. * Get id
  17. *
  18. * @return int|null
  19. */
  20. public function getId();
  21. /**
  22. * Set id
  23. *
  24. * @param int $id
  25. * @return $this
  26. */
  27. public function setId($id);
  28. /**
  29. * Get tax rule code
  30. *
  31. * @return string
  32. */
  33. public function getCode();
  34. /**
  35. * Set tax rule code
  36. *
  37. * @param string $code
  38. * @return $this
  39. */
  40. public function setCode($code);
  41. /**
  42. * Get priority
  43. *
  44. * @return int
  45. */
  46. public function getPriority();
  47. /**
  48. * Set priority
  49. *
  50. * @param int $priority
  51. * @return $this
  52. */
  53. public function setPriority($priority);
  54. /**
  55. * Get sort order.
  56. *
  57. * @return int
  58. */
  59. public function getPosition();
  60. /**
  61. * Set sort order.
  62. *
  63. * @param int $position
  64. * @return $this
  65. */
  66. public function setPosition($position);
  67. /**
  68. * Get customer tax class id
  69. *
  70. * @return int[]
  71. */
  72. public function getCustomerTaxClassIds();
  73. /**
  74. * Set customer tax class id
  75. *
  76. * @param int[] $customerTaxClassIds
  77. * @return $this
  78. */
  79. public function setCustomerTaxClassIds(array $customerTaxClassIds = null);
  80. /**
  81. * Get product tax class id
  82. *
  83. * @return int[]
  84. */
  85. public function getProductTaxClassIds();
  86. /**
  87. * Set product tax class id
  88. *
  89. * @param int[] $productTaxClassIds
  90. * @return $this
  91. */
  92. public function setProductTaxClassIds(array $productTaxClassIds = null);
  93. /**
  94. * Get tax rate ids
  95. *
  96. * @return int[]
  97. */
  98. public function getTaxRateIds();
  99. /**
  100. * Set tax rate ids
  101. *
  102. * @param int[] $taxRateIds
  103. * @return $this
  104. */
  105. public function setTaxRateIds(array $taxRateIds = null);
  106. /**
  107. * Get calculate subtotal.
  108. *
  109. * @return bool|null
  110. */
  111. public function getCalculateSubtotal();
  112. /**
  113. * Set calculate subtotal.
  114. *
  115. * @param bool $calculateSubtotal
  116. * @return $this
  117. */
  118. public function setCalculateSubtotal($calculateSubtotal);
  119. /**
  120. * Retrieve existing extension attributes object or create a new one.
  121. *
  122. * @return \Magento\Tax\Api\Data\TaxRuleExtensionInterface|null
  123. */
  124. public function getExtensionAttributes();
  125. /**
  126. * Set an extension attributes object.
  127. *
  128. * @param \Magento\Tax\Api\Data\TaxRuleExtensionInterface $extensionAttributes
  129. * @return $this
  130. */
  131. public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxRuleExtensionInterface $extensionAttributes);
  132. }