ePages 6.11.0 - DE_EPAGES/Address/API/Address.pm

Package DE_EPAGES::Address::API::Address

This module includes a function to update VATID

@EXPORT_OK
CheckZipcode

Functions

CheckZipcode

CheckZipcode

Returns true if zipcode is valid for the country and the country is one of the know countries incuded in $DE_EPAGES::Address::API::Constants::REGULAREXPRESSIONS_FOR_ZIPCODE. Returns true if $ZipCode or $CountryID is undefined or an empty string. Returns true if $CountryID is not included in $DE_EPAGES::Address::API::Constants::REGULAREXPRESSIONS_FOR_ZIPCODE.

Syntax
$check = CheckZipcode( $Zipcode, $CountryID );
Input
$Zipcode (string)
zipcode
$CountryID (int)
country id
Return
$check (boolean)
valid