TaxDetailsItemInterface.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. * Tax details items interface.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface TaxDetailsItemInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get code (sku or shipping code)
  16. *
  17. * @return string|null
  18. */
  19. public function getCode();
  20. /**
  21. * Set code (sku or shipping code)
  22. *
  23. * @param string $code
  24. * @return $this
  25. */
  26. public function setCode($code);
  27. /**
  28. * Get type (shipping, product, weee, gift wrapping, etc
  29. *
  30. * @return string|null
  31. */
  32. public function getType();
  33. /**
  34. * Set type (shipping, product, weee, gift wrapping, etc
  35. *
  36. * @param string $type
  37. * @return $this
  38. */
  39. public function setType($type);
  40. /**
  41. * Get tax_percent
  42. *
  43. * @return float
  44. */
  45. public function getTaxPercent();
  46. /**
  47. * Set tax_percent
  48. *
  49. * @param float $taxPercent
  50. * @return $this
  51. */
  52. public function setTaxPercent($taxPercent);
  53. /**
  54. * Get price
  55. *
  56. * @return float
  57. */
  58. public function getPrice();
  59. /**
  60. * Set price
  61. *
  62. * @param float $price
  63. * @return $this
  64. */
  65. public function setPrice($price);
  66. /**
  67. * Get price including tax
  68. *
  69. * @return float
  70. */
  71. public function getPriceInclTax();
  72. /**
  73. * Set price including tax
  74. *
  75. * @param float $priceInclTax
  76. * @return $this
  77. */
  78. public function setPriceInclTax($priceInclTax);
  79. /**
  80. * Get row total
  81. *
  82. * @return float
  83. */
  84. public function getRowTotal();
  85. /**
  86. * Set row total
  87. *
  88. * @param float $rowTotal
  89. * @return $this
  90. */
  91. public function setRowTotal($rowTotal);
  92. /**
  93. * Get row total including tax
  94. *
  95. * @return float
  96. */
  97. public function getRowTotalInclTax();
  98. /**
  99. * Set row total including tax
  100. *
  101. * @param float $rowTotalInclTax
  102. * @return $this
  103. */
  104. public function setRowTotalInclTax($rowTotalInclTax);
  105. /**
  106. * Get row tax amount
  107. *
  108. * @return float
  109. */
  110. public function getRowTax();
  111. /**
  112. * Set row tax amount
  113. *
  114. * @param float $rowTax
  115. * @return $this
  116. */
  117. public function setRowTax($rowTax);
  118. /**
  119. * Get taxable amount
  120. *
  121. * @return float
  122. */
  123. public function getTaxableAmount();
  124. /**
  125. * Set taxable amount
  126. *
  127. * @param float $taxableAmount
  128. * @return $this
  129. */
  130. public function setTaxableAmount($taxableAmount);
  131. /**
  132. * Get discount amount
  133. *
  134. * @return float
  135. */
  136. public function getDiscountAmount();
  137. /**
  138. * Set discount amount
  139. *
  140. * @param float $discountAmount
  141. * @return $this
  142. */
  143. public function setDiscountAmount($discountAmount);
  144. /**
  145. * Get discount tax compensation amount
  146. *
  147. * @return float
  148. */
  149. public function getDiscountTaxCompensationAmount();
  150. /**
  151. * Set discount tax compensation amount
  152. *
  153. * @param float $discountTaxCompensationAmount
  154. * @return $this
  155. */
  156. public function setDiscountTaxCompensationAmount($discountTaxCompensationAmount);
  157. /**
  158. * Get applied taxes
  159. *
  160. * @return \Magento\Tax\Api\Data\AppliedTaxInterface[] | null
  161. */
  162. public function getAppliedTaxes();
  163. /**
  164. * Set applied taxes
  165. *
  166. * @param \Magento\Tax\Api\Data\AppliedTaxInterface[] $appliedTaxes
  167. * @return $this
  168. */
  169. public function setAppliedTaxes(array $appliedTaxes = null);
  170. /**
  171. * Return associated item code if this item is associated with another item, null otherwise
  172. *
  173. * @return int|null
  174. */
  175. public function getAssociatedItemCode();
  176. /**
  177. * Set associated item code
  178. *
  179. * @param int $associatedItemCode
  180. * @return $this
  181. */
  182. public function setAssociatedItemCode($associatedItemCode);
  183. /**
  184. * Retrieve existing extension attributes object or create a new one.
  185. *
  186. * @return \Magento\Tax\Api\Data\TaxDetailsItemExtensionInterface|null
  187. */
  188. public function getExtensionAttributes();
  189. /**
  190. * Set an extension attributes object.
  191. *
  192. * @param \Magento\Tax\Api\Data\TaxDetailsItemExtensionInterface $extensionAttributes
  193. * @return $this
  194. */
  195. public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxDetailsItemExtensionInterface $extensionAttributes);
  196. }