Class VatNumberValidator
Class VatNumberValidator
This class provides methods for validating VAT numbers
- VatNumberValidator implements VatNumberValidatorInterface
Package: Customer\Validation
Category: System
Implements: VatNumberValidatorInterface
Located at Services/Core/Customer/VatNumberValidator.inc.php
Category: System
Implements: VatNumberValidatorInterface
Located at Services/Core/Customer/VatNumberValidator.inc.php
Methods summary
public
__construct( vat_validation_ORIGIN $vatValidation = null )
Initialize the VAT number validator.
public
getVatNumberStatusCodeId( string $p_vatNumber, integer $p_countryId, boolean $p_isGuest )
: integer
Returns the VAT number status code ID.
public
getCustomerStatusId( string $p_vatNumber, integer $p_countryId, boolean $p_isGuest )
: integer
Returns the customer status ID.
public
getErrorStatus( string $p_vatNumber, integer $p_countryId, boolean $p_isGuest )
: boolean
Returns the error status
protected
_putValidationCache( string $p_vatNumber, integer $p_countryId, boolean $p_isGuest )
Writes the validation results to cache.