TaxRateInterface.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Tax\Api\Data;
  8. /**
  9. * Tax rate interface.
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TaxRateInterface extends \Magento\Framework\Api\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 country id
  30. *
  31. * @return string
  32. */
  33. public function getTaxCountryId();
  34. /**
  35. * Set country id
  36. *
  37. * @param string $taxCountryId
  38. * @return $this
  39. */
  40. public function setTaxCountryId($taxCountryId);
  41. /**
  42. * Get region id
  43. *
  44. * @return int|null
  45. */
  46. public function getTaxRegionId();
  47. /**
  48. * Set region id
  49. *
  50. * @param int $taxRegionId
  51. * @return $this
  52. */
  53. public function setTaxRegionId($taxRegionId);
  54. /**
  55. * Get region name
  56. *
  57. * @return string|null
  58. */
  59. public function getRegionName();
  60. /**
  61. * Set region name
  62. *
  63. * @param string $regionName
  64. * @return $this
  65. */
  66. public function setRegionName($regionName);
  67. /**
  68. * Get postcode
  69. *
  70. * @return string|null
  71. */
  72. public function getTaxPostcode();
  73. /**
  74. * Set postcode
  75. *
  76. * @param string $taxPostCode
  77. * @return $this
  78. */
  79. public function setTaxPostcode($taxPostCode);
  80. /**
  81. * Get zip is range
  82. *
  83. * @return int|null
  84. */
  85. public function getZipIsRange();
  86. /**
  87. * Set zip is range
  88. *
  89. * @param int $zipIsRange
  90. * @return $this
  91. */
  92. public function setZipIsRange($zipIsRange);
  93. /**
  94. * Get zip range from
  95. *
  96. * @return int|null
  97. */
  98. public function getZipFrom();
  99. /**
  100. * Set zip range from
  101. *
  102. * @param int $zipFrom
  103. * @return $this
  104. */
  105. public function setZipFrom($zipFrom);
  106. /**
  107. * Get zip range to
  108. *
  109. * @return int|null
  110. */
  111. public function getZipTo();
  112. /**
  113. * Set zip range to
  114. *
  115. * @param int $zipTo
  116. * @return $this
  117. */
  118. public function setZipTo($zipTo);
  119. /**
  120. * Get tax rate in percentage
  121. *
  122. * @return float
  123. */
  124. public function getRate();
  125. /**
  126. * Set tax rate in percentage
  127. *
  128. * @param float $rate
  129. * @return $this
  130. */
  131. public function setRate($rate);
  132. /**
  133. * Get tax rate code
  134. *
  135. * @return string
  136. */
  137. public function getCode();
  138. /**
  139. * Set tax rate code
  140. *
  141. * @param string $code
  142. * @return $this
  143. */
  144. public function setCode($code);
  145. /**
  146. * Get tax rate titles
  147. *
  148. * @return \Magento\Tax\Api\Data\TaxRateTitleInterface[]|null
  149. */
  150. public function getTitles();
  151. /**
  152. * Set tax rate titles
  153. *
  154. * @param \Magento\Tax\Api\Data\TaxRateTitleInterface[] $titles
  155. * @return $this
  156. */
  157. public function setTitles(array $titles = null);
  158. /**
  159. * Retrieve existing extension attributes object or create a new one.
  160. *
  161. * @return \Magento\Tax\Api\Data\TaxRateExtensionInterface|null
  162. */
  163. public function getExtensionAttributes();
  164. /**
  165. * Set an extension attributes object.
  166. *
  167. * @param \Magento\Tax\Api\Data\TaxRateExtensionInterface $extensionAttributes
  168. * @return $this
  169. */
  170. public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxRateExtensionInterface $extensionAttributes);
  171. }