You are here

public function AvataxLibInterface::transactionsCreate in Drupal Commerce Connector for AvaTax 8

Creates a new transaction (/api/v2/transactions/create).

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

string $type: The transactions type (e.g SalesOrder|SalesInvoice).

Return value

array The response array.

1 method overrides AvataxLibInterface::transactionsCreate()
AvataxLib::transactionsCreate in src/AvataxLib.php
Creates a new transaction (/api/v2/transactions/create).

File

src/AvataxLibInterface.php, line 23

Class

AvataxLibInterface
Provides an interface for the AvaTax library.

Namespace

Drupal\commerce_avatax

Code

public function transactionsCreate(OrderInterface $order, $type = 'SalesOrder');