OrderTaxDetailsInterface.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Tax\Api\Data;
  8. /**
  9. * Interface OrderTaxDetailsInterface
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface OrderTaxDetailsInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * Get applied taxes at order level
  17. *
  18. * @return \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxInterface[] | null
  19. */
  20. public function getAppliedTaxes();
  21. /**
  22. * Set applied taxes at order level
  23. *
  24. * @param \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxInterface[] $appliedTaxes
  25. * @return $this
  26. */
  27. public function setAppliedTaxes(array $appliedTaxes = null);
  28. /**
  29. * Get order item tax details
  30. *
  31. * @return \Magento\Tax\Api\Data\OrderTaxDetailsItemInterface[] | null
  32. */
  33. public function getItems();
  34. /**
  35. * Set order item tax details
  36. *
  37. * @param \Magento\Tax\Api\Data\OrderTaxDetailsItemInterface[] $items
  38. * @return $this
  39. */
  40. public function setItems(array $items = null);
  41. /**
  42. * Retrieve existing extension attributes object or create a new one.
  43. *
  44. * @return \Magento\Tax\Api\Data\OrderTaxDetailsExtensionInterface|null
  45. */
  46. public function getExtensionAttributes();
  47. /**
  48. * Set an extension attributes object.
  49. *
  50. * @param \Magento\Tax\Api\Data\OrderTaxDetailsExtensionInterface $extensionAttributes
  51. * @return $this
  52. */
  53. public function setExtensionAttributes(
  54. \Magento\Tax\Api\Data\OrderTaxDetailsExtensionInterface $extensionAttributes
  55. );
  56. }