You are here

public function TaxCodeResolverInterface::resolve in Drupal Commerce Connector for AvaTax 8

Resolves the tax code of a given order item..

Parameters

\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The purchaseable entity.

Return value

string The tax code.

2 methods override TaxCodeResolverInterface::resolve()
ChainTaxCodeResolver::resolve in src/Resolver/ChainTaxCodeResolver.php
Resolves the tax code of a given order item..
ProductVariationTaxCodeResolver::resolve in src/Resolver/ProductVariationTaxCodeResolver.php
Resolves the tax code of a given order item..

File

src/Resolver/TaxCodeResolverInterface.php, line 21

Class

TaxCodeResolverInterface
Defines interface for tax code resolvers.

Namespace

Drupal\commerce_avatax\Resolver

Code

public function resolve(OrderItemInterface $order_item);