CoolCMS API

TaxAncillaryShare
in package

Read onlyYes
FinalYes

Part of an ancillary supply (gateway fee, shipping) allocated to one group code × rate.

Table of Contents

Properties

$amount  : numeric-string
$base  : numeric-string
$chargeVat  : bool
$code  : TaxTreatmentCode
$vat  : numeric-string|null
$vatPercents  : string

Methods

__construct()  : mixed
toArray()  : array<string, mixed>

Properties

$amount

public numeric-string $amount

allocated part of the ancillary amount (gross when the amount was gross)

$vat

public numeric-string|null $vat

VAT of a gross share; null for a base share (consumer computes)

Methods

__construct()

public __construct(TaxTreatmentCode $code, numeric-string $vatPercents, bool $chargeVat, string $amount, string $base, string|null $vat) : mixed
Parameters
$code : TaxTreatmentCode
$vatPercents : numeric-string
$chargeVat : bool
$amount : string
$base : string
$vat : string|null

toArray()

public toArray() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results