TotalInterface.php 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. use Magento\Framework\Api\ExtensibleDataInterface;
  8. /**
  9. * Interface TotalInterface
  10. * @api
  11. * @since 100.0.4
  12. */
  13. interface TotalInterface extends ExtensibleDataInterface
  14. {
  15. /**#@+
  16. * Constants for keys of data array. Identical to the name of the getter in snake case.
  17. */
  18. /*
  19. * Base shipping amount.
  20. */
  21. const BASE_SHIPPING_AMOUNT = 'base_shipping_amount';
  22. /*
  23. * Base shipping canceled.
  24. */
  25. const BASE_SHIPPING_CANCELED = 'base_shipping_canceled';
  26. /*
  27. * Base shipping invoiced.
  28. */
  29. const BASE_SHIPPING_INVOICED = 'base_shipping_invoiced';
  30. /*
  31. * Base shipping refunded.
  32. */
  33. const BASE_SHIPPING_REFUNDED = 'base_shipping_refunded';
  34. /*
  35. * Base shipping tax amount.
  36. */
  37. const BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount';
  38. /*
  39. * Base shipping tax refunded.
  40. */
  41. const BASE_SHIPPING_TAX_REFUNDED = 'base_shipping_tax_refunded';
  42. /*
  43. * Shipping amount.
  44. */
  45. const SHIPPING_AMOUNT = 'shipping_amount';
  46. /*
  47. * Shipping canceled.
  48. */
  49. const SHIPPING_CANCELED = 'shipping_canceled';
  50. /*
  51. * Shipping invoiced.
  52. */
  53. const SHIPPING_INVOICED = 'shipping_invoiced';
  54. /*
  55. * Shipping refunded.
  56. */
  57. const SHIPPING_REFUNDED = 'shipping_refunded';
  58. /*
  59. * Shipping tax amount.
  60. */
  61. const SHIPPING_TAX_AMOUNT = 'shipping_tax_amount';
  62. /*
  63. * Shipping tax refunded.
  64. */
  65. const SHIPPING_TAX_REFUNDED = 'shipping_tax_refunded';
  66. /*
  67. * Base shipping discount amount.
  68. */
  69. const BASE_SHIPPING_DISCOUNT_AMOUNT = 'base_shipping_discount_amount';
  70. /*
  71. * Shipping discount amount.
  72. */
  73. const SHIPPING_DISCOUNT_AMOUNT = 'shipping_discount_amount';
  74. /*
  75. * Shipping discount tax compensation amount.
  76. */
  77. const SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'shipping_discount_tax_compensation_amount';
  78. /*
  79. * Base shipping discount tax compensation amount.
  80. */
  81. const BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT = 'base_shipping_discount_tax_compensation_amnt';
  82. /*
  83. * Shipping including tax.
  84. */
  85. const SHIPPING_INCL_TAX = 'shipping_incl_tax';
  86. /*
  87. * Base shipping including tax.
  88. */
  89. const BASE_SHIPPING_INCL_TAX = 'base_shipping_incl_tax';
  90. /**#@-*/
  91. /**
  92. * Gets the base shipping amount.
  93. *
  94. * @return float|null Base shipping amount.
  95. * @since 100.0.4
  96. */
  97. public function getBaseShippingAmount();
  98. /**
  99. * Gets the base shipping canceled.
  100. *
  101. * @return float|null Base shipping canceled.
  102. * @since 100.0.4
  103. */
  104. public function getBaseShippingCanceled();
  105. /**
  106. * Gets the base shipping discount amount.
  107. *
  108. * @return float|null Base shipping discount amount.
  109. * @since 100.0.4
  110. */
  111. public function getBaseShippingDiscountAmount();
  112. /**
  113. * Gets the base shipping discount tax compensation amount.
  114. *
  115. * @return float|null Base shipping discount tax compensation amount.
  116. * @since 100.0.4
  117. */
  118. public function getBaseShippingDiscountTaxCompensationAmnt();
  119. /**
  120. * Gets the base shipping including tax.
  121. *
  122. * @return float|null Base shipping including tax.
  123. * @since 100.0.4
  124. */
  125. public function getBaseShippingInclTax();
  126. /**
  127. * Gets the base shipping invoiced amount.
  128. *
  129. * @return float|null Base shipping invoiced.
  130. * @since 100.0.4
  131. */
  132. public function getBaseShippingInvoiced();
  133. /**
  134. * Gets the base shipping refunded amount.
  135. *
  136. * @return float|null Base shipping refunded.
  137. * @since 100.0.4
  138. */
  139. public function getBaseShippingRefunded();
  140. /**
  141. * Gets the base shipping tax amount.
  142. *
  143. * @return float|null Base shipping tax amount.
  144. * @since 100.0.4
  145. */
  146. public function getBaseShippingTaxAmount();
  147. /**
  148. * Gets the base shipping tax refunded amount.
  149. *
  150. * @return float|null Base shipping tax refunded.
  151. * @since 100.0.4
  152. */
  153. public function getBaseShippingTaxRefunded();
  154. /**
  155. * Gets the shipping amount.
  156. *
  157. * @return float|null Shipping amount.
  158. * @since 100.0.4
  159. */
  160. public function getShippingAmount();
  161. /**
  162. * Gets the shipping canceled amount.
  163. *
  164. * @return float|null Shipping canceled amount.
  165. * @since 100.0.4
  166. */
  167. public function getShippingCanceled();
  168. /**
  169. * Gets the shipping discount amount.
  170. *
  171. * @return float|null Shipping discount amount.
  172. * @since 100.0.4
  173. */
  174. public function getShippingDiscountAmount();
  175. /**
  176. * Gets the shipping discount tax compensation amount.
  177. *
  178. * @return float|null Shipping discount tax compensation amount.
  179. * @since 100.0.4
  180. */
  181. public function getShippingDiscountTaxCompensationAmount();
  182. /**
  183. * Gets the shipping including tax amount.
  184. *
  185. * @return float|null Shipping including tax amount.
  186. * @since 100.0.4
  187. */
  188. public function getShippingInclTax();
  189. /**
  190. * Gets the shipping invoiced amount.
  191. *
  192. * @return float|null Shipping invoiced amount.
  193. * @since 100.0.4
  194. */
  195. public function getShippingInvoiced();
  196. /**
  197. * Gets the shipping refunded amount.
  198. *
  199. * @return float|null Shipping refunded amount.
  200. * @since 100.0.4
  201. */
  202. public function getShippingRefunded();
  203. /**
  204. * Gets the shipping tax amount.
  205. *
  206. * @return float|null Shipping tax amount.
  207. * @since 100.0.4
  208. */
  209. public function getShippingTaxAmount();
  210. /**
  211. * Gets the shipping tax refunded amount.
  212. *
  213. * @return float|null Shipping tax refunded amount.
  214. * @since 100.0.4
  215. */
  216. public function getShippingTaxRefunded();
  217. /**
  218. * Sets the base shipping amount.
  219. *
  220. * @param float $amount
  221. * @return $this
  222. * @since 100.0.4
  223. */
  224. public function setBaseShippingAmount($amount);
  225. /**
  226. * Sets the base shipping canceled.
  227. *
  228. * @param float $baseShippingCanceled
  229. * @return $this
  230. * @since 100.0.4
  231. */
  232. public function setBaseShippingCanceled($baseShippingCanceled);
  233. /**
  234. * Sets the base shipping discount amount.
  235. *
  236. * @param float $amount
  237. * @return $this
  238. * @since 100.0.4
  239. */
  240. public function setBaseShippingDiscountAmount($amount);
  241. /**
  242. * Sets the base shipping discount tax compensation amount.
  243. *
  244. * @param float $amnt
  245. * @return $this
  246. * @since 100.0.4
  247. */
  248. public function setBaseShippingDiscountTaxCompensationAmnt($amnt);
  249. /**
  250. * Sets the base shipping including tax.
  251. *
  252. * @param float $amount
  253. * @return $this
  254. * @since 100.0.4
  255. */
  256. public function setBaseShippingInclTax($amount);
  257. /**
  258. * Sets the base shipping invoiced amount.
  259. *
  260. * @param float $baseShippingInvoiced
  261. * @return $this
  262. * @since 100.0.4
  263. */
  264. public function setBaseShippingInvoiced($baseShippingInvoiced);
  265. /**
  266. * Sets the base shipping refunded amount.
  267. *
  268. * @param float $baseShippingRefunded
  269. * @return $this
  270. * @since 100.0.4
  271. */
  272. public function setBaseShippingRefunded($baseShippingRefunded);
  273. /**
  274. * Sets the base shipping tax amount.
  275. *
  276. * @param float $amount
  277. * @return $this
  278. * @since 100.0.4
  279. */
  280. public function setBaseShippingTaxAmount($amount);
  281. /**
  282. * Sets the base shipping tax refunded amount.
  283. *
  284. * @param float $baseShippingTaxRefunded
  285. * @return $this
  286. * @since 100.0.4
  287. */
  288. public function setBaseShippingTaxRefunded($baseShippingTaxRefunded);
  289. /**
  290. * Sets the shipping amount.
  291. *
  292. * @param float $amount
  293. * @return $this
  294. * @since 100.0.4
  295. */
  296. public function setShippingAmount($amount);
  297. /**
  298. * Sets the shipping canceled amount.
  299. *
  300. * @param float $shippingCanceled
  301. * @return $this
  302. * @since 100.0.4
  303. */
  304. public function setShippingCanceled($shippingCanceled);
  305. /**
  306. * Sets the shipping discount amount.
  307. *
  308. * @param float $amount
  309. * @return $this
  310. * @since 100.0.4
  311. */
  312. public function setShippingDiscountAmount($amount);
  313. /**
  314. * Sets the shipping discount tax compensation amount.
  315. *
  316. * @param float $amount
  317. * @return $this
  318. * @since 100.0.4
  319. */
  320. public function setShippingDiscountTaxCompensationAmount($amount);
  321. /**
  322. * Sets the shipping including tax amount.
  323. *
  324. * @param float $amount
  325. * @return $this
  326. * @since 100.0.4
  327. */
  328. public function setShippingInclTax($amount);
  329. /**
  330. * Sets the shipping invoiced amount.
  331. *
  332. * @param float $shippingInvoiced
  333. * @return $this
  334. * @since 100.0.4
  335. */
  336. public function setShippingInvoiced($shippingInvoiced);
  337. /**
  338. * Sets the shipping refunded amount.
  339. *
  340. * @param float $shippingRefunded
  341. * @return $this
  342. * @since 100.0.4
  343. */
  344. public function setShippingRefunded($shippingRefunded);
  345. /**
  346. * Sets the shipping tax amount.
  347. *
  348. * @param float $amount
  349. * @return $this
  350. * @since 100.0.4
  351. */
  352. public function setShippingTaxAmount($amount);
  353. /**
  354. * Sets the shipping tax refunded amount.
  355. *
  356. * @param float $shippingTaxRefunded
  357. * @return $this
  358. * @since 100.0.4
  359. */
  360. public function setShippingTaxRefunded($shippingTaxRefunded);
  361. /**
  362. * Retrieve existing extension attributes object or create a new one.
  363. *
  364. * @return \Magento\Sales\Api\Data\TotalExtensionInterface|null
  365. * @since 100.0.4
  366. */
  367. public function getExtensionAttributes();
  368. /**
  369. * Set an extension attributes object.
  370. *
  371. * @param \Magento\Sales\Api\Data\TotalExtensionInterface $extensionAttributes
  372. * @return $this
  373. * @since 100.0.4
  374. */
  375. public function setExtensionAttributes(
  376. \Magento\Sales\Api\Data\TotalExtensionInterface $extensionAttributes
  377. );
  378. }