TaxDetailsInterface.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 interface.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface TaxDetailsInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get subtotal
  16. *
  17. * @return float
  18. */
  19. public function getSubtotal();
  20. /**
  21. * Set subtotal
  22. *
  23. * @param float $subtotal
  24. * @return $this
  25. */
  26. public function setSubtotal($subtotal);
  27. /**
  28. * Get tax amount
  29. *
  30. * @return float
  31. */
  32. public function getTaxAmount();
  33. /**
  34. * Set tax amount
  35. *
  36. * @param float $taxAmount
  37. * @return $this
  38. */
  39. public function setTaxAmount($taxAmount);
  40. /**
  41. * Get discount amount
  42. *
  43. * @return float
  44. */
  45. public function getDiscountTaxCompensationAmount();
  46. /**
  47. * Set discount amount
  48. *
  49. * @param float $discountTaxCompensationAmount
  50. * @return $this
  51. */
  52. public function setDiscountTaxCompensationAmount($discountTaxCompensationAmount);
  53. /**
  54. * Get applied taxes
  55. *
  56. * @return \Magento\Tax\Api\Data\AppliedTaxInterface[] | null
  57. */
  58. public function getAppliedTaxes();
  59. /**
  60. * Set applied taxes
  61. *
  62. * @param \Magento\Tax\Api\Data\AppliedTaxInterface[] $appliedTaxes
  63. * @return $this
  64. */
  65. public function setAppliedTaxes(array $appliedTaxes = null);
  66. /**
  67. * Get TaxDetails items
  68. *
  69. * @return \Magento\Tax\Api\Data\TaxDetailsItemInterface[] | null
  70. */
  71. public function getItems();
  72. /**
  73. * Set TaxDetails items
  74. *
  75. * @param \Magento\Tax\Api\Data\TaxDetailsItemInterface[] $items
  76. * @return $this
  77. */
  78. public function setItems(array $items = null);
  79. /**
  80. * Retrieve existing extension attributes object or create a new one.
  81. *
  82. * @return \Magento\Tax\Api\Data\TaxDetailsExtensionInterface|null
  83. */
  84. public function getExtensionAttributes();
  85. /**
  86. * Set an extension attributes object.
  87. *
  88. * @param \Magento\Tax\Api\Data\TaxDetailsExtensionInterface $extensionAttributes
  89. * @return $this
  90. */
  91. public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxDetailsExtensionInterface $extensionAttributes);
  92. }