InvoiceProcessorInterface.php 727 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @copyright Vertex. All rights reserved. https://www.vertexinc.com/
  4. * @author Mediotype https://www.mediotype.com/
  5. */
  6. namespace Vertex\Tax\Model\Api\Data\InvoiceRequestBuilder;
  7. use Magento\Sales\Api\Data\InvoiceInterface;
  8. use Vertex\Services\Invoice\RequestInterface;
  9. /**
  10. * Processes a Magento Invoice and returns a Vertex Invoice
  11. *
  12. * @api
  13. * @since 2.2.1
  14. */
  15. interface InvoiceProcessorInterface
  16. {
  17. /**
  18. * Process an Invoice and returns a Vertex Invoice Request
  19. *
  20. * @param RequestInterface $request
  21. * @param InvoiceInterface $invoice
  22. * @return RequestInterface
  23. */
  24. public function process(RequestInterface $request, InvoiceInterface $invoice);
  25. }