Class VatNumberValidator
This class provides methods for validating VAT numbers
category |
System |
---|---|
package |
Customer |
subpackage |
Validation |
implements |
VatNumberValidatorInterface |
__construct(\vat_validation_ORIGIN $vatValidation = null)
\vat_validation_ORIGIN
VAT validation.
_putValidationCache(string $p_vatNumber, integer $p_countryId, boolean $p_isGuest)
string
VAT number.
integer
Country ID.
boolean
Is customer a guest?
TODO Write validation results to cache.
getCustomerStatusId(string $p_vatNumber, integer $p_countryId, boolean $p_isGuest) : integer
string
VAT number.
integer
Country ID.
boolean
Is customer a guest?
integer
Customer status ID.
getErrorStatus(string $p_vatNumber, integer $p_countryId, boolean $p_isGuest) : boolean
string
VAT number.
integer
Country ID.
boolean
Is customer a guest?
boolean
Error status.
getVatNumberStatusCodeId(string $p_vatNumber, integer $p_countryId, boolean $p_isGuest) : integer
string
VAT number.
integer
Country ID.
boolean
Is customer a guest?
integer
VAT number status code ID.
vatValidation : \vat_validation_ORIGIN
var |
---|
\vat_validation_ORIGIN