Vies
extends Vies
in package
Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- EU_COUNTRIES = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK']
- VIES_URL = "https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"
- $lastError : mixed
- check() : int
- getLastError() : string
- getViesInfo() : int
- setMessage() : void
Constants
EU_COUNTRIES
public
mixed
EU_COUNTRIES
= ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK']
VIES_URL
public
mixed
VIES_URL
= "https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"
Properties
$lastError
private
static mixed
$lastError
= ''
Methods
check()
public
static check(string $cifnif, string $codiso[, bool $msg = true ]) : int
Parameters
- $cifnif : string
- $codiso : string
- $msg : bool = true
Return values
int —getLastError()
public
static getLastError() : string
Return values
string —getViesInfo()
private
static getViesInfo(string $vatNumber, string $codiso, bool $msg) : int
Parameters
- $vatNumber : string
- $codiso : string
- $msg : bool
Return values
int —setMessage()
private
static setMessage(bool $msg, string $txt[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $msg : bool
- $txt : string
- $context : array<string|int, mixed> = []