You are here

TaxCodeResolverInterface.php in Drupal Commerce Connector for AvaTax 8

File

src/Resolver/TaxCodeResolverInterface.php
View 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

Namesort descending Description
TaxCodeResolverInterface Defines interface for tax code resolvers.