Initialize with country name and their codes.
Initialize with country name and their codes. The strings are upper cased when set.
By default this transformer will validate against the regional codes provided by Google's PhoneNumber library.
If the user would like to use country names as the second argument to this transformer, a mapping between the names and their code must be provided here.
country Code -> country Name eg "US" -> "United States of America"
reference to self
Sets the default country code to use when a valid code cannot be determined
Sets the default country code to use when a valid code cannot be determined
Country code to check phone number validity against by default
If set to true, phone number will be compared strictly checked.
If set to true, phone number will be compared strictly checked. If set to false, an input, that is too long, will be considered valid if a substring can be found to be valid
Determine whether a phone number is valid given the country's regional code. By default the regional code will be checked against those provided in Google's PhoneNumber library. If the input regional code is not found, the default locale will be used for validation.
If the User provided a Country name to code mapping, the phone number can only be validated against the input mapping. This transformer will first match on regional code, failing that, it will select the country with the closest Q-Distance.
All phone numbers with less than 2 characters will be categorized as invalid
All phone numbers that starts with "+" will be evaluated with international formatting
Returns binary feature true if phone is valid false if invalid and none if phone number is none