abstract_api.phone_validation.phone_validation_response module#
- class abstract_api.phone_validation.phone_validation_response.Country(prefix: str, **kwargs)[source]#
Bases:
CountryCountry entity in phone validation response.
- property prefix: str | None#
The country’s calling code prefix.
- class abstract_api.phone_validation.phone_validation_response.Format(international: str, local: str)[source]#
Bases:
objectFormat entity in phone validation response.
- property international: str#
The international format of the submitted phone number.
This means appending the phone number’s country code and a “+” at the beginning.
- property local: str#
The local or national format of the submitted phone number.
For example, it removes any international formatting, such as “+1” in the case of the US.
- class abstract_api.phone_validation.phone_validation_response.PhoneValidationResponse(response: Response)[source]#
Bases:
NestedEntitiesMixin,JSONResponsePhone validation service response.
- property carrier: str | None#
The carrier that the number is registered with.
- property location: str | None#
As much location details as are available from AbstractAPI’s data.
This can include the region, state / province, and in some cases down to the city.
- property phone: str | None#
The phone number submitted for validation and verification.
- property type: str | None#
The type of phone number.
The possible values are: Landline, Mobile, Satellite, Premium, Paging, Special, Toll_Free, and Unknown.
- property valid: bool | None#
Is true if the phone number submitted is valid.