Method |
Description |
|
filterVat ( string $vatNumber ) : string |
Filters a VAT number and normalizes it to an alfanumeric string |
|
getHeartBeat ( ) : HeartBeat |
Retrieves the heartbeat class that offers the option to check if the VIES
service is up-and-running. |
|
getOptions ( ) : array |
Retrieves the options for the PHP SOAP service |
|
getSoapClient ( ) : SoapClient |
Retrieves the SOAP client that will be used to communicate with the VIES
SOAP service. |
|
getWsdl ( ) : string |
Retrieves the location of the WSDL for the VIES SOAP service |
|
listEuropeanCountries ( ) : array |
A list of European Union countries as of January 2015 |
|
setHeartBeat ( HeartBeat $heartBeat ) |
Sets the heartbeat functionality to verify if the VIES service is alive or not,
especially since this service tends to have a bad reputation of its availability. |
|
setOptions ( array $options ) : Vies |
Set options for the native PHP Soap Client |
|
setSoapClient ( SoapClient $soapClient ) : Vies |
Sets the PHP SOAP Client and allows you to override the use of the native
PHP SoapClient for testing purposes or for better integration in your own
application. |
|
setWsdl ( string $wsdl ) : Vies |
Sets the location of the WSDL for the VIES SOAP Service |
|
validateVat ( string $countryCode, string $vatNumber, string $requesterCountryCode = null, string $requesterVatNumber = null ) : CheckVatResponse |
Validates a given country code and VAT number and returns a
\DragonBe\Vies\CheckVatResponse object |
|
validateVatSum ( string $countryCode, string $vatNumber ) : boolean |
Validate a VAT number control sum |
|