TaxCodeResolverInterface.php in Drupal Commerce Connector for AvaTax 8
Namespace
Drupal\commerce_avatax\ResolverFile
src/Resolver/TaxCodeResolverInterface.phpView source
<?php
namespace Drupal\commerce_avatax\Resolver;
use Drupal\commerce_order\Entity\OrderItemInterface;
/**
* Defines interface for tax code resolvers.
*/
interface TaxCodeResolverInterface {
/**
* Resolves the tax code of a given order item..
*
* @param \Drupal\commerce_order\Entity\OrderItemInterface $order_item
* The purchaseable entity.
*
* @return string
* The tax code.
*/
public function resolve(OrderItemInterface $order_item);
}
Interfaces
Name | Description |
---|---|
TaxCodeResolverInterface | Defines interface for tax code resolvers. |