VatIdVerification
in package
Read onlyYes
FinalYes
Outcome of the VAT id policy for one resolution / verify call.
verified is the only thing the rule table uses (EU_B2B requires it). valid is the raw answer
of the used check (null = VIES unavailable / no check), checkId references the evidence row.
onlineChecks = the caller's remaining online VIES checks after this call (set by VatIdCheckManager::verify()).
outageCheckId = the evidence row of a VIES outage during this call (OV5 K4.3) — the snapshot column
customer_vat_id_outage_check_id; checkId then points to the check that decided (if any).
Table of Contents
Properties
- $checkedAt : DateTimeImmutable|null
- $checkId : int|null
- $countryCode : string|null
- $flags : array<string|int, mixed>
- $name : string|null
- $onlineChecks : VatIdCheckAllowance|null
- $outageCheckId : int|null
- $requestIdentifier : string|null
- $source : VatIdCheckSource|null
- $valid : bool|null
- $vatNumber : string|null
- $verified : bool
Methods
- __construct() : mixed
- toArray() : array<string, mixed>
- withOnlineChecks() : self
- withOutageCheckId() : self
Properties
$checkedAt
public
DateTimeImmutable|null
$checkedAt
= null
$checkId
public
int|null
$checkId
= null
$countryCode
public
string|null
$countryCode
$flags
public
array<string|int, mixed>
$flags
= []
$name
public
string|null
$name
= null
$onlineChecks
public
VatIdCheckAllowance|null
$onlineChecks
= null
$outageCheckId
public
int|null
$outageCheckId
= null
$requestIdentifier
public
string|null
$requestIdentifier
= null
$source
public
VatIdCheckSource|null
$source
= null
$valid
public
bool|null
$valid
= null
$vatNumber
public
string|null
$vatNumber
$verified
public
bool
$verified
Methods
__construct()
public
__construct(string|null $countryCode, string|null $vatNumber, bool $verified[, bool|null $valid = null ][, VatIdCheckSource|null $source = null ][, int|null $checkId = null ][, DateTimeImmutable|null $checkedAt = null ][, array<int, TaxFlag> $flags = [] ][, string|null $name = null ][, string|null $requestIdentifier = null ][, VatIdCheckAllowance|null $onlineChecks = null ][, int|null $outageCheckId = null ]) : mixed
Parameters
- $countryCode : string|null
- $vatNumber : string|null
- $verified : bool
- $valid : bool|null = null
- $source : VatIdCheckSource|null = null
- $checkId : int|null = null
- $checkedAt : DateTimeImmutable|null = null
- $flags : array<int, TaxFlag> = []
- $name : string|null = null
- $requestIdentifier : string|null = null
- $onlineChecks : VatIdCheckAllowance|null = null
- $outageCheckId : int|null = null
toArray()
public
toArray() : array<string, mixed>
Return values
array<string, mixed>withOnlineChecks()
public
withOnlineChecks(VatIdCheckAllowance $onlineChecks) : self
Parameters
- $onlineChecks : VatIdCheckAllowance
Return values
selfwithOutageCheckId()
public
withOutageCheckId(int|null $outageCheckId) : self
Parameters
- $outageCheckId : int|null