OrderTaxDetailsItemInterface.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 OrderTaxDetailsItemInterface
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface OrderTaxDetailsItemInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * Get type (shipping, product, weee, gift wrapping, etc)
  17. *
  18. * @return string|null
  19. */
  20. public function getType();
  21. /**
  22. * Set type (shipping, product, weee, gift wrapping, etc)
  23. *
  24. * @param string $type
  25. * @return $this
  26. */
  27. public function setType($type);
  28. /**
  29. * Return item id if this item is a product
  30. *
  31. * @return int|null
  32. */
  33. public function getItemId();
  34. /**
  35. * Set item id
  36. *
  37. * @param int $itemId
  38. * @return $this
  39. */
  40. public function setItemId($itemId);
  41. /**
  42. * Return associated item id if this item is associated with another item, null otherwise
  43. *
  44. * @return int|null
  45. */
  46. public function getAssociatedItemId();
  47. /**
  48. * Set associated item id
  49. *
  50. * @param int $associatedItemId
  51. * @return $this
  52. */
  53. public function setAssociatedItemId($associatedItemId);
  54. /**
  55. * Get applied taxes
  56. *
  57. * @return \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxInterface[]|null
  58. */
  59. public function getAppliedTaxes();
  60. /**
  61. * Set applied taxes
  62. *
  63. * @param \Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxInterface[] $appliedTaxes
  64. * @return $this
  65. */
  66. public function setAppliedTaxes(array $appliedTaxes = null);
  67. /**
  68. * Retrieve existing extension attributes object or create a new one.
  69. *
  70. * @return \Magento\Tax\Api\Data\OrderTaxDetailsItemExtensionInterface|null
  71. */
  72. public function getExtensionAttributes();
  73. /**
  74. * Set an extension attributes object.
  75. *
  76. * @param \Magento\Tax\Api\Data\OrderTaxDetailsItemExtensionInterface $extensionAttributes
  77. * @return $this
  78. */
  79. public function setExtensionAttributes(
  80. \Magento\Tax\Api\Data\OrderTaxDetailsItemExtensionInterface $extensionAttributes
  81. );
  82. }