CoolCMS API

VatIdCheckAllowance
in package

Read onlyYes
FinalYes

How many online VIES checks the caller has left. The UI hides the VAT id verification button when {@see canCheckOnline()} is false and may show {@see $resetsAt}.

limit / remaining are null for an unlimited caller. resetsAt is set only when the limit is exhausted.

Table of Contents

Properties

$limit  : int|null
$remaining  : int|null
$resetsAt  : DateTimeImmutable|null
$unlimited  : bool

Methods

__construct()  : mixed
canCheckOnline()  : bool
createUnlimited()  : self
toArray()  : array{unlimited: bool, canCheckOnline: bool, limit: int|null, remaining: int|null, resetsAt: string|null}

Properties

Methods

__construct()

public __construct(bool $unlimited[, int|null $limit = null ][, int|null $remaining = null ][, DateTimeImmutable|null $resetsAt = null ]) : mixed
Parameters
$unlimited : bool
$limit : int|null = null
$remaining : int|null = null
$resetsAt : DateTimeImmutable|null = null

toArray()

public toArray() : array{unlimited: bool, canCheckOnline: bool, limit: int|null, remaining: int|null, resetsAt: string|null}
Return values
array{unlimited: bool, canCheckOnline: bool, limit: int|null, remaining: int|null, resetsAt: string|null}
On this page

Search results