You are here

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

Prepares the transaction request body. (This method should not be public but that makes the tests easier).

Parameters

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

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

Return value

array The request parameters array.

1 method overrides AvataxLibInterface::prepareTransactionsCreate()
AvataxLib::prepareTransactionsCreate in src/AvataxLib.php
Prepares the transaction request body. (This method should not be public but that makes the tests easier).

File

src/AvataxLibInterface.php, line 45

Class

AvataxLibInterface
Provides an interface for the AvaTax library.

Namespace

Drupal\commerce_avatax

Code

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