ShippingTotal.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order;
  7. use Magento\Sales\Api\Data\TotalInterface;
  8. use Magento\Framework\Model\AbstractExtensibleModel;
  9. class ShippingTotal extends AbstractExtensibleModel implements TotalInterface
  10. {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function getBaseShippingAmount()
  15. {
  16. return $this->_getData(self::BASE_SHIPPING_AMOUNT);
  17. }
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function getBaseShippingCanceled()
  22. {
  23. return $this->_getData(self::BASE_SHIPPING_CANCELED);
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function getBaseShippingDiscountAmount()
  29. {
  30. return $this->_getData(self::BASE_SHIPPING_DISCOUNT_AMOUNT);
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function getBaseShippingDiscountTaxCompensationAmnt()
  36. {
  37. return $this->_getData(self::BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT);
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function getBaseShippingInclTax()
  43. {
  44. return $this->_getData(self::BASE_SHIPPING_INCL_TAX);
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function getBaseShippingInvoiced()
  50. {
  51. return $this->_getData(self::BASE_SHIPPING_INVOICED);
  52. }
  53. /**
  54. * {@inheritdoc}
  55. */
  56. public function getBaseShippingRefunded()
  57. {
  58. return $this->_getData(self::BASE_SHIPPING_REFUNDED);
  59. }
  60. /**
  61. * {@inheritdoc}
  62. */
  63. public function getBaseShippingTaxAmount()
  64. {
  65. return $this->_getData(self::BASE_SHIPPING_TAX_AMOUNT);
  66. }
  67. /**
  68. * {@inheritdoc}
  69. */
  70. public function getBaseShippingTaxRefunded()
  71. {
  72. return $this->_getData(self::BASE_SHIPPING_TAX_REFUNDED);
  73. }
  74. /**
  75. * {@inheritdoc}
  76. */
  77. public function getShippingAmount()
  78. {
  79. return $this->_getData(self::SHIPPING_AMOUNT);
  80. }
  81. /**
  82. * {@inheritdoc}
  83. */
  84. public function getShippingCanceled()
  85. {
  86. return $this->_getData(self::SHIPPING_CANCELED);
  87. }
  88. /**
  89. * {@inheritdoc}
  90. */
  91. public function getShippingDiscountAmount()
  92. {
  93. return $this->_getData(self::SHIPPING_DISCOUNT_AMOUNT);
  94. }
  95. /**
  96. * {@inheritdoc}
  97. */
  98. public function getShippingDiscountTaxCompensationAmount()
  99. {
  100. return $this->_getData(self::SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT);
  101. }
  102. /**
  103. * {@inheritdoc}
  104. */
  105. public function getShippingInclTax()
  106. {
  107. return $this->_getData(self::SHIPPING_INCL_TAX);
  108. }
  109. /**
  110. * {@inheritdoc}
  111. */
  112. public function getShippingInvoiced()
  113. {
  114. return $this->_getData(self::SHIPPING_INVOICED);
  115. }
  116. /**
  117. * {@inheritdoc}
  118. */
  119. public function getShippingRefunded()
  120. {
  121. return $this->_getData(self::SHIPPING_REFUNDED);
  122. }
  123. /**
  124. * {@inheritdoc}
  125. */
  126. public function getShippingTaxAmount()
  127. {
  128. return $this->_getData(self::SHIPPING_TAX_AMOUNT);
  129. }
  130. /**
  131. * {@inheritdoc}
  132. */
  133. public function getShippingTaxRefunded()
  134. {
  135. return $this->_getData(self::SHIPPING_TAX_REFUNDED);
  136. }
  137. /**
  138. * {@inheritdoc}
  139. */
  140. public function setBaseShippingAmount($amount)
  141. {
  142. return $this->setData(self::BASE_SHIPPING_AMOUNT, $amount);
  143. }
  144. /**
  145. * {@inheritdoc}
  146. */
  147. public function setBaseShippingCanceled($baseShippingCanceled)
  148. {
  149. return $this->setData(self::BASE_SHIPPING_CANCELED, $baseShippingCanceled);
  150. }
  151. /**
  152. * {@inheritdoc}
  153. */
  154. public function setBaseShippingDiscountAmount($amount)
  155. {
  156. return $this->setData(self::BASE_SHIPPING_DISCOUNT_AMOUNT, $amount);
  157. }
  158. /**
  159. * {@inheritdoc}
  160. */
  161. public function setBaseShippingDiscountTaxCompensationAmnt($amnt)
  162. {
  163. return $this->setData(self::BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT, $amnt);
  164. }
  165. /**
  166. * {@inheritdoc}
  167. */
  168. public function setBaseShippingInclTax($amount)
  169. {
  170. return $this->setData(self::BASE_SHIPPING_INCL_TAX, $amount);
  171. }
  172. /**
  173. * {@inheritdoc}
  174. */
  175. public function setBaseShippingInvoiced($baseShippingInvoiced)
  176. {
  177. return $this->setData(self::BASE_SHIPPING_INVOICED, $baseShippingInvoiced);
  178. }
  179. /**
  180. * {@inheritdoc}
  181. */
  182. public function setBaseShippingRefunded($baseShippingRefunded)
  183. {
  184. return $this->setData(self::BASE_SHIPPING_REFUNDED, $baseShippingRefunded);
  185. }
  186. /**
  187. * {@inheritdoc}
  188. */
  189. public function setBaseShippingTaxAmount($amount)
  190. {
  191. return $this->setData(self::BASE_SHIPPING_TAX_AMOUNT, $amount);
  192. }
  193. /**
  194. * {@inheritdoc}
  195. */
  196. public function setBaseShippingTaxRefunded($baseShippingTaxRefunded)
  197. {
  198. return $this->setData(self::BASE_SHIPPING_TAX_REFUNDED, $baseShippingTaxRefunded);
  199. }
  200. /**
  201. * {@inheritdoc}
  202. */
  203. public function setShippingAmount($amount)
  204. {
  205. return $this->setData(self::SHIPPING_AMOUNT, $amount);
  206. }
  207. /**
  208. * {@inheritdoc}
  209. */
  210. public function setShippingCanceled($shippingCanceled)
  211. {
  212. return $this->setData(self::SHIPPING_CANCELED, $shippingCanceled);
  213. }
  214. /**
  215. * {@inheritdoc}
  216. */
  217. public function setShippingDiscountAmount($amount)
  218. {
  219. return $this->setData(self::SHIPPING_DISCOUNT_AMOUNT, $amount);
  220. }
  221. /**
  222. * {@inheritdoc}
  223. */
  224. public function setShippingDiscountTaxCompensationAmount($amount)
  225. {
  226. return $this->setData(self::SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT, $amount);
  227. }
  228. /**
  229. * {@inheritdoc}
  230. */
  231. public function setShippingInclTax($amount)
  232. {
  233. return $this->setData(self::SHIPPING_INCL_TAX, $amount);
  234. }
  235. /**
  236. * {@inheritdoc}
  237. */
  238. public function setShippingInvoiced($shippingInvoiced)
  239. {
  240. return $this->setData(self::SHIPPING_INVOICED, $shippingInvoiced);
  241. }
  242. /**
  243. * {@inheritdoc}
  244. */
  245. public function setShippingRefunded($shippingRefunded)
  246. {
  247. return $this->setData(self::SHIPPING_REFUNDED, $shippingRefunded);
  248. }
  249. /**
  250. * {@inheritdoc}
  251. */
  252. public function setShippingTaxAmount($amount)
  253. {
  254. return $this->setData(self::SHIPPING_TAX_AMOUNT, $amount);
  255. }
  256. /**
  257. * {@inheritdoc}
  258. */
  259. public function setShippingTaxRefunded($shippingTaxRefunded)
  260. {
  261. return $this->setData(self::SHIPPING_TAX_REFUNDED, $shippingTaxRefunded);
  262. }
  263. /**
  264. * {@inheritdoc}
  265. */
  266. public function getExtensionAttributes()
  267. {
  268. return $this->_getExtensionAttributes();
  269. }
  270. /**
  271. * {@inheritdoc}
  272. */
  273. public function setExtensionAttributes(
  274. \Magento\Sales\Api\Data\TotalExtensionInterface $extensionAttributes
  275. ) {
  276. return $this->_setExtensionAttributes($extensionAttributes);
  277. }
  278. }