CreditmemoProcessorInterface.php 749 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\CreditmemoInterface;
  8. use Vertex\Services\Invoice\RequestInterface;
  9. /**
  10. * Processes a Magento Creditmemo and returns a Vertex Invoice
  11. *
  12. * @api
  13. * @since 2.2.1
  14. */
  15. interface CreditmemoProcessorInterface
  16. {
  17. /**
  18. * Process a Creditmemo and return a Vertex Invoice Request
  19. *
  20. * @param RequestInterface $request
  21. * @param CreditmemoInterface $creditmemo
  22. * @return RequestInterface
  23. */
  24. public function process(RequestInterface $request, CreditmemoInterface $creditmemo);
  25. }