CoolCMS API

TaxResolveTrait

VAT engine bridge calls ({@see \App\UI\Api\System\Presenters\Traits\Actions\TaxResolveTrait}).

Absolute endpoints — the trait is not tied to the endpoint of the repository that uses it.

Table of Contents

Constants

TAX_RESOLVE_KEYS  : array<string|int, mixed> = ['sellerId', 'paymentRegionId', 'taxDate', 'cus...
Keys the Api action accepts (named arguments — an unknown key would be a fatal error).

Methods

fetchTaxDisplay()  : array<int, array<string, mixed>>
fetchTaxResolution()  : array<string|int, mixed>

Constants

TAX_RESOLVE_KEYS

Keys the Api action accepts (named arguments — an unknown key would be a fatal error).

private array<string|int, mixed> TAX_RESOLVE_KEYS = ['sellerId', 'paymentRegionId', 'taxDate', 'customer', 'lines', 'ancillary', 'vatIdPolicy']

Methods

fetchTaxDisplay()

public fetchTaxDisplay(int|null $paymentRegionId, array<int, int> $supplyKindIds[, int|null $sellerId = null ][, string|null $taxDate = null ]) : array<int, array<string, mixed>>
Parameters
$paymentRegionId : int|null
$supplyKindIds : array<int, int>
$sellerId : int|null = null
$taxDate : string|null = null
Return values
array<int, array<string, mixed>>

fetchTaxResolution()

public fetchTaxResolution(array<string, mixed> $request) : array<string|int, mixed>
Parameters
$request : array<string, mixed>
Return values
array<string|int, mixed> —

empty on a bridge failure (RBAC deny, invalid input)

On this page

Search results