PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/app/code/Magento/Tax/Api/Data/TaxDetailsItemInterface.php

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