o
    �¨Êhµ  ã                   @   st   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 G dd„ deƒZ
G d	d
„ d
e	ƒZG dd„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Údeserialize)Úvalues)ÚInstanceResource)ÚListResource)ÚPagec                       sF   e Zd ZdZ‡ fdd„Zejejejejejfdd„Zdd„ Z‡  Z	S )ÚValidationRequestListú  c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )a„  
        Initialize the ValidationRequestList

        :param Version version: Version that contains the resource
        :param account_sid: The unique ID of the Account responsible for this Caller Id.

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        Úaccount_sidz./Accounts/{account_sid}/OutgoingCallerIds.jsonN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr	   ©Ú	__class__r
   úb/var/www/html/env/lib/python3.10/site-packages/twilio/rest/api/v2010/account/validation_request.pyr      s   

zValidationRequestList.__init__c           	   	   C   sB   t  ||||||dœ¡}| jjd| j|d�}t| j|| jd d�S )a€  
        Create a new ValidationRequestInstance

        :param unicode phone_number: The phone number to verify.
        :param unicode friendly_name: A human readable description for the new caller ID with maximum length 64 characters.
        :param unicode call_delay: The number of seconds, between 0 and 60, to delay before initiating the verification call.
        :param unicode extension: Digits to dial after connecting the verification call.
        :param unicode status_callback: A URL that Twilio will request when the verification call ends to notify your app if the verification process was successful or not.
        :param unicode status_callback_method: The HTTP method Twilio should use when requesting the above URL.

        :returns: Newly created ValidationRequestInstance
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        )ÚPhoneNumberÚFriendlyNameÚ	CallDelayÚ	ExtensionÚStatusCallbackÚStatusCallbackMethodÚPOST)Údatar	   ©r	   )r   ÚofÚ_versionÚcreater   ÚValidationRequestInstancer   )	r   Úphone_numberÚfriendly_nameÚ
call_delayÚ	extensionÚstatus_callbackÚstatus_callback_methodr   Úpayloadr
   r
   r   r    #   s   ú	ýzValidationRequestList.createc                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Api.V2010.ValidationRequestList>r
   ©r   r
   r
   r   Ú__repr__D   ó   zValidationRequestList.__repr__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úunsetr    r,   Ú__classcell__r
   r
   r   r   r      s    
þ!r   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚValidationRequestPager   c                    s   t t| ƒ ||¡ || _dS )a¼  
        Initialize the ValidationRequestPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: The unique ID of the Account responsible for this Caller Id.

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestPage
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestPage
        N)r   r4   r   r   )r   r   ÚresponseÚsolutionr   r
   r   r   Q   s   
zValidationRequestPage.__init__c                 C   s   t | j|| jd d�S )a5  
        Build an instance of ValidationRequestInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        r	   r   )r!   r   r   )r   r(   r
   r
   r   Úget_instancea   s   	z"ValidationRequestPage.get_instancec                 C   r)   )r*   z(<Twilio.Api.V2010.ValidationRequestPage>r
   r+   r
   r
   r   r,   l   r-   zValidationRequestPage.__repr__)r.   r/   r0   r1   r   r7   r,   r3   r
   r
   r   r   r4   N   s
    r4   c                       sd   e Zd ZdZ‡ fdd„Zedd„ ƒZedd„ ƒZedd	„ ƒZed
d„ ƒZ	edd„ ƒZ
dd„ Z‡  ZS )r!   r   c                    sP   t t| ƒ |¡ |d |d |d t |d ¡|d dœ| _d| _d|i| _dS )zó
        Initialize the ValidationRequestInstance

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        r	   r"   r#   Úvalidation_codeÚcall_sid)r	   r"   r#   r8   r9   N)r   r!   r   r   ÚintegerÚ_propertiesÚ_contextr   )r   r   r(   r	   r   r
   r   r   y   s   û	z"ValidationRequestInstance.__init__c                 C   ó
   | j d S )zp
        :returns: The unique ID of the Account responsible for this Caller Id.
        :rtype: unicode
        r	   ©r;   r+   r
   r
   r   r	   �   ó   
z%ValidationRequestInstance.account_sidc                 C   r=   )zN
        :returns: The incoming phone number.
        :rtype: unicode
        r"   r>   r+   r
   r
   r   r"   —   r?   z&ValidationRequestInstance.phone_numberc                 C   r=   )z‚
        :returns: A human readable descriptive text for this resource, up to 64 characters long.
        :rtype: unicode
        r#   r>   r+   r
   r
   r   r#   Ÿ   r?   z'ValidationRequestInstance.friendly_namec                 C   r=   )zŸ
        :returns: The 6 digit validation code that must be entered via the phone to validate this phone number for Caller ID.
        :rtype: unicode
        r8   r>   r+   r
   r
   r   r8   §   r?   z)ValidationRequestInstance.validation_codec                 C   r=   )zr
        :returns: The unique id of the Call created for this validation attempt.
        :rtype: unicode
        r9   r>   r+   r
   r
   r   r9   ¯   r?   z"ValidationRequestInstance.call_sidc                 C   r)   )r*   z,<Twilio.Api.V2010.ValidationRequestInstance>r
   r+   r
   r
   r   r,   ·   r-   z"ValidationRequestInstance.__repr__)r.   r/   r0   r1   r   Úpropertyr	   r"   r#   r8   r9   r,   r3   r
   r
   r   r   r!   v   s    




r!   N)r1   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r4   r!   r
   r
   r
   r   Ú<module>   s   >(