InvoiceItemCreationInterface.php 1004 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. * Input argument for invoice creation
  10. *
  11. * Interface InvoiceItemCreationInterface
  12. *
  13. * @api
  14. * @since 100.1.2
  15. */
  16. interface InvoiceItemCreationInterface extends LineItemInterface, ExtensibleDataInterface
  17. {
  18. /**
  19. * Retrieve existing extension attributes object or create a new one.
  20. *
  21. * @return \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface|null
  22. * @since 100.1.2
  23. */
  24. public function getExtensionAttributes();
  25. /**
  26. * Set an extension attributes object.
  27. *
  28. * @param \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface $extensionAttributes
  29. * @return $this
  30. * @since 100.1.2
  31. */
  32. public function setExtensionAttributes(
  33. \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface $extensionAttributes
  34. );
  35. }