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)
$base
public
numeric-string
$base
$chargeVat
public
bool
$chargeVat
$code
public
TaxTreatmentCode
$code
$vat
public
numeric-string|null
$vat
VAT of a gross share; null for a base share (consumer computes)
$vatPercents
public
string
$vatPercents
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>