CoolCMS API

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

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}
Return values
array{countryCode: string|null, isBusiness: bool, vatId: string|null, regNo: string|null}
On this page

Search results