TaxAreaLookupInterface.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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\Api;
  7. use Magento\Store\Model\ScopeInterface;
  8. use Vertex\Exception\ApiException;
  9. use Vertex\Exception\ConfigurationException;
  10. use Vertex\Exception\ValidationException;
  11. use Vertex\Services\TaxAreaLookup\RequestInterface;
  12. use Vertex\Services\TaxAreaLookup\ResponseInterface;
  13. /**
  14. * Tax Area Lookup Service
  15. *
  16. * This message initiates a single Tax Area lookup requested by an external system. Use the Tax Area Request message to
  17. * send a query to retrieve a single tax jurisdiction lookup. For example, you could use this event to retrieve the Tax
  18. * Area IDs for a single postal address.
  19. *
  20. * Please see {@see RequestInterface} for more information on the fields available.
  21. *
  22. * @api
  23. */
  24. interface TaxAreaLookupInterface
  25. {
  26. /**
  27. * Look up the tax areas for an address
  28. *
  29. * @param RequestInterface $request
  30. * @param string|null $scopeCode Scope ID
  31. * @param string $scopeType
  32. * @return ResponseInterface
  33. * @throws ApiException
  34. * @throws ConfigurationException
  35. * @throws ValidationException
  36. */
  37. public function lookup(RequestInterface $request, $scopeCode = null, $scopeType = ScopeInterface::SCOPE_STORE);
  38. }