Enums
digitz.enums.CountryCodeSource
Bases: IntEnum
Enum for phone number country code sources.
Attributes:
| Name | Type | Description |
|---|---|---|
UNSPECIFIED |
Country code source is unspecified. |
|
FROM_NUMBER_WITH_PLUS_SIGN |
Country code was extracted from number with a leading '+' sign. |
|
FROM_NUMBER_WITH_IDD |
Country code was extracted from number with an IDD prefix. |
|
FROM_NUMBER_WITHOUT_PLUS_SIGN |
Country code was extracted from number without a leading '+' sign. |
|
FROM_DEFAULT_COUNTRY |
Country code was extracted from number with a default country code. |
digitz.enums.MatchType
Bases: IntEnum
Enum for phone number match types.
Attributes:
| Name | Type | Description |
|---|---|---|
EXACT_MATCH |
Exact match. |
|
NOT_A_NUMBER |
Number is not a number. |
|
NO_MATCH |
No match. |
|
NSN_MATCH |
National significant number match. |
|
SHORT_NSN_MATCH |
Short national significant number match. |
digitz.enums.NumberParseErrorType
Bases: IntEnum
Enum for phone number parsing error types.
Attributes:
| Name | Type | Description |
|---|---|---|
INVALID_COUNTRY_CODE |
Invalid country code. |
|
NOT_A_NUMBER |
Number is not a number. |
|
TOO_SHORT_AFTER_IDD |
Number is too short after IDD. |
|
TOO_SHORT_NSN |
Number is too short. |
|
TOO_LONG |
Number is too long. |
digitz.enums.PhoneNumberFormat
Bases: IntEnum
Enum for phone number formats.
Attributes:
| Name | Type | Description |
|---|---|---|
E164 |
E.164 format. |
|
INTERNATIONAL |
International format. |
|
NATIONAL |
National format. |
|
RFC3966 |
RFC 3966 format. |
digitz.enums.PhoneNumberType
Bases: IntEnum
Enum for phone number types.
Attributes:
| Name | Type | Description |
|---|---|---|
FIXED_LINE |
Fixed line. |
|
MOBILE |
Mobile. |
|
FIXED_LINE_OR_MOBILE |
Fixed line or mobile. |
|
TOLL_FREE |
Toll free. |
|
PREMIUM_RATE |
Premium rate. |
|
SHARED_COST |
Shared cost. |
|
VOIP |
Voice over IP. |
|
PERSONAL_NUMBER |
Personal number. |
|
PAGER |
Pager. |
|
UAN |
Universal access number. |
|
VOICEMAIL |
Voicemail. |
|
UNKNOWN |
Unknown. |