PaymentFormTaxCustomerDTO
in package
FinalYes
Customer of the payment form for the VAT engine: ISO country, company, VAT id and registration number of the logged-in user. An anonymous user has everything empty, so the engine treats them as a consumer in the country of the payment region (flag `COUNTRY_ASSUMED`).
Table of Contents
Properties
- $countryCode : string|null
- $isBusiness : bool
- $regNo : string|null
- $vatId : string|null
Methods
- __construct() : mixed
- toArray() : array{countryCode: string|null, isBusiness: bool, vatId: string|null, regNo: string|null}
Properties
$countryCode read-only
public
string|null
$countryCode
= null
$isBusiness read-only
public
bool
$isBusiness
= false
$regNo read-only
public
string|null
$regNo
= null
$vatId read-only
public
string|null
$vatId
= null
Methods
__construct()
public
__construct([string|null $countryCode = null ][, bool $isBusiness = false ][, string|null $vatId = null ][, string|null $regNo = null ]) : mixed
Parameters
- $countryCode : string|null = null
- $isBusiness : bool = false
- $vatId : string|null = null
- $regNo : string|null = null
toArray()
public
toArray() : array{countryCode: string|null, isBusiness: bool, vatId: string|null, regNo: string|null}