PurchasedPhoneNumber Class

Represents a purchased phone number.

All required parameters must be populated in order to send to Azure.

Inheritance
PurchasedPhoneNumber

Constructor

PurchasedPhoneNumber(*, id: str, phone_number: str, country_code: str, phone_number_type: Union[str, azure.communication.phonenumbers._generated.models._phone_numbers_client_enums.PhoneNumberType], capabilities: azure.communication.phonenumbers._generated.models._models_py3.PhoneNumberCapabilities, assignment_type: Union[str, azure.communication.phonenumbers._generated.models._phone_numbers_client_enums.PhoneNumberAssignmentType], purchase_date: datetime.datetime, cost: azure.communication.phonenumbers._generated.models._models_py3.PhoneNumberCost, **kwargs)

Parameters

id
str
Required

Required. The id of the phone number, e.g. 11234567890.

phone_number
str
Required

Required. String of the E.164 format of the phone number, e.g. +11234567890.

country_code
str
Required

Required. The ISO 3166-2 code of the phone number's country, e.g. US.

phone_number_type
str or <xref:azure.communication.phonenumbers.models.PhoneNumberType>
Required

Required. The phone number's type, e.g. Geographic, TollFree. Possible values include: "geographic", "tollFree".

capabilities
<xref:azure.communication.phonenumbers.models.PhoneNumberCapabilities>
Required

Required. Capabilities of a phone number.

assignment_type
str or <xref:azure.communication.phonenumbers.models.PhoneNumberAssignmentType>
Required

Required. The assignment type of the phone number. A phone number can be assigned to a person, or to an application. Possible values include: "person", "application".

purchase_date
datetime
Required

Required. The date and time that the phone number was purchased.

cost
<xref:azure.communication.phonenumbers.models.PhoneNumberCost>
Required

Required. The incurred cost for a single phone number.