VAT_Check_Result
Stores the result of a VAT number check.
Tags
Table of Contents
- API_ERROR = 7
- INVALID_COUNTRY_CODE = 4
- INVALID_INPUT = 6
- INVALID_VAT_NUMBER = 3
- MS_MAX_CONCURRENT_REQ = 8
- NO_COUNTRY_CODE = 2
- NO_VAT_NUMBER = 1
- VAT_NUMBER_INVALID_FOR_COUNTRY = 5
- $address : string
- The company address, if VAT number is valid.
- $consultation_number : string
- Request Identifier parameter returned by the api if store VAT details are correct.
- $country_code : string
- The two letter country code (e.g. US).
- $error : string
- The error code if there was an error.
- $name : string
- The company name, if VAT number is valid.
- $valid : bool
- If the VAT number is valid.
- $vat_number : string
- The VAT number.
- __construct() : mixed
- Constructs a new result object for the supplied VAT number and country code.
- __toString() : mixed
- Convert result to string.
- is_valid() : mixed
- Is the VAT number valid?
- reset() : self
- Reset the status of the result.
Constants
API_ERROR
public
mixed
API_ERROR
= 7
INVALID_COUNTRY_CODE
public
mixed
INVALID_COUNTRY_CODE
= 4
INVALID_INPUT
public
mixed
INVALID_INPUT
= 6
INVALID_VAT_NUMBER
public
mixed
INVALID_VAT_NUMBER
= 3
MS_MAX_CONCURRENT_REQ
public
mixed
MS_MAX_CONCURRENT_REQ
= 8
NO_COUNTRY_CODE
public
mixed
NO_COUNTRY_CODE
= 2
NO_VAT_NUMBER
public
mixed
NO_VAT_NUMBER
= 1
VAT_NUMBER_INVALID_FOR_COUNTRY
public
mixed
VAT_NUMBER_INVALID_FOR_COUNTRY
= 5
Properties
$address
The company address, if VAT number is valid.
public
string
$address
= ''
$consultation_number
Request Identifier parameter returned by the api if store VAT details are correct.
public
string
$consultation_number
= ''
$country_code
The two letter country code (e.g. US).
public
string
$country_code
= ''
$error
The error code if there was an error.
public
string
$error
$name
The company name, if VAT number is valid.
public
string
$name
= ''
$valid
If the VAT number is valid.
public
bool
$valid
= false
true
$vat_number
The VAT number.
public
string
$vat_number
= ''
Methods
__construct()
Constructs a new result object for the supplied VAT number and country code.
public
__construct(string $vat_number, string $country_code) : mixed
Parameters
- $vat_number : string
-
The VAT number the result applies to.
- $country_code : string
-
The two letter country code.
Return values
mixed —__toString()
Convert result to string.
public
__toString() : mixed
Return values
mixed —is_valid()
Is the VAT number valid?
public
is_valid() : mixed
Return values
mixed —reset()
Reset the status of the result.
public
reset() : self