package model
- Alphabetic
- Public
- All
Type Members
-
case class
RegionMetadata(region: Region, countryCodeToTypePatterns: Map[Int, Map[PhoneNumberType, String]]) extends Product with Serializable
This class stores a metadata for region.
This class stores a metadata for region.
The metadata consists of mapping of phone number type to regex for each country code represented in that region.
Each regular expression in combination with the associated country code can be used to generate valid phone numbers. Generated phone numbers can be parsed by libphonenumber BUT make sure you are using a comparable version of this library, otherwise, valid phone numbers may be recognized as invalid.
- region
the region for which metadata is provided.
- countryCodeToTypePatterns
the mapping of phone number type to regex pattern for each country code represented in that region.
Value Members
-
object
PhoneNumberTypes extends Enumeration
An enumeration representing the set of supported phone number types.
- object RegionMetadata extends Serializable
-
object
Regions extends Enumeration
An enumeration representing the set of supported regions as represented by CLDR two-letter region codes, with the exception of the non-geographical region which is represented by the Regions.NonGeo value.