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                       s6   e Zd ZdZ‡ fdd„Zejfdd„Zdd„ Z‡  Z	S )ÚVerificationCheckListúk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )aT  
        Initialize the VerificationCheckList

        :param Version version: Version that contains the resource
        :param service_sid: Service Sid.

        :returns: twilio.rest.verify.v1.service.verification_check.VerificationCheckList
        :rtype: twilio.rest.verify.v1.service.verification_check.VerificationCheckList
        Úservice_sidz)/Services/{service_sid}/VerificationCheckN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr	   ©Ú	__class__r
   úb/var/www/html/env/lib/python3.10/site-packages/twilio/rest/verify/v1/service/verification_check.pyr      s   

zVerificationCheckList.__init__c                 C   s:   t  ||dœ¡}| jjd| j|d�}t| j|| jd d�S )a.  
        Create a new VerificationCheckInstance

        :param unicode code: The verification string
        :param unicode to: To phonenumber

        :returns: Newly created VerificationCheckInstance
        :rtype: twilio.rest.verify.v1.service.verification_check.VerificationCheckInstance
        )ÚCodeÚToÚPOST)Údatar	   ©r	   )r   ÚofÚ_versionÚcreater   ÚVerificationCheckInstancer   )r   ÚcodeÚtor   Úpayloadr
   r
   r   r   $   s   
ýzVerificationCheckList.createc                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Verify.V1.VerificationCheckList>r
   ©r   r
   r
   r   Ú__repr__8   ó   zVerificationCheckList.__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 )ÚVerificationCheckPager   c                    s   t t| ƒ ||¡ || _dS )aŒ  
        Initialize the VerificationCheckPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param service_sid: Service Sid.

        :returns: twilio.rest.verify.v1.service.verification_check.VerificationCheckPage
        :rtype: twilio.rest.verify.v1.service.verification_check.VerificationCheckPage
        N)r   r,   r   r   )r   r   ÚresponseÚsolutionr   r
   r   r   F   s   
zVerificationCheckPage.__init__c                 C   s   t | j|| jd d�S )a5  
        Build an instance of VerificationCheckInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.verify.v1.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v1.service.verification_check.VerificationCheckInstance
        r	   r   )r   r   r   )r   r    r
   r
   r   Úget_instanceV   s   	z"VerificationCheckPage.get_instancec                 C   r!   )r"   z(<Twilio.Verify.V1.VerificationCheckPage>r
   r#   r
   r
   r   r$   a   r%   zVerificationCheckPage.__repr__)r&   r'   r(   r)   r   r/   r$   r+   r
   r
   r   r   r,   B   s
    r,   c                       s¤   e Zd ZdZG dd„ deƒ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edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZdd„ Z‡  ZS )r   r   c                   @   s   e Zd ZdZdZdS )z!VerificationCheckInstance.ChannelÚsmsÚcallN)r&   r'   r(   ÚSMSÚCALLr
   r
   r
   r   ÚChannelo   s    r4   c                    sn   t t| ƒ |¡ |d |d |d |d |d |d |d t |d ¡t |d	 ¡d
œ	| _d| _d|i| _dS )zó
        Initialize the VerificationCheckInstance

        :returns: twilio.rest.verify.v1.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v1.service.verification_check.VerificationCheckInstance
        Úsidr	   Úaccount_sidr   ÚchannelÚstatusÚvalidÚdate_createdÚdate_updated)	r5   r	   r6   r   r7   r8   r9   r:   r;   N)r   r   r   r   Úiso8601_datetimeÚ_propertiesÚ_contextr   )r   r   r    r	   r   r
   r   r   s   s   ÷z"VerificationCheckInstance.__init__c                 C   ó
   | j d S )zn
        :returns: A string that uniquely identifies this Verification Check.
        :rtype: unicode
        r5   ©r=   r#   r
   r
   r   r5   �   ó   
zVerificationCheckInstance.sidc                 C   r?   )z@
        :returns: Service Sid.
        :rtype: unicode
        r	   r@   r#   r
   r
   r   r	   •   rA   z%VerificationCheckInstance.service_sidc                 C   r?   )z@
        :returns: Account Sid.
        :rtype: unicode
        r6   r@   r#   r
   r
   r   r6   �   rA   z%VerificationCheckInstance.account_sidc                 C   r?   )zB
        :returns: To phonenumber
        :rtype: unicode
        r   r@   r#   r
   r
   r   r   ¥   rA   zVerificationCheckInstance.toc                 C   r?   )zY
        :returns: sms or call
        :rtype: VerificationCheckInstance.Channel
        r7   r@   r#   r
   r
   r   r7   ­   rA   z!VerificationCheckInstance.channelc                 C   r?   )zX
        :returns: pending, approved, denied or expired
        :rtype: unicode
        r8   r@   r#   r
   r
   r   r8   µ   rA   z VerificationCheckInstance.statusc                 C   r?   )zH
        :returns: successful verification
        :rtype: bool
        r9   r@   r#   r
   r
   r   r9   ½   rA   zVerificationCheckInstance.validc                 C   r?   )za
        :returns: The date this Verification Check was created
        :rtype: datetime
        r:   r@   r#   r
   r
   r   r:   Å   rA   z&VerificationCheckInstance.date_createdc                 C   r?   )za
        :returns: The date this Verification Check was updated
        :rtype: datetime
        r;   r@   r#   r
   r
   r   r;   Í   rA   z&VerificationCheckInstance.date_updatedc                 C   r!   )r"   z,<Twilio.Verify.V1.VerificationCheckInstance>r
   r#   r
   r
   r   r$   Õ   r%   z"VerificationCheckInstance.__repr__)r&   r'   r(   r)   Úobjectr4   r   Úpropertyr5   r	   r6   r   r7   r8   r9   r:   r;   r$   r+   r
   r
   r   r   r   k   s.    








r   N)r)   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r,   r   r
   r
   r
   r   Ú<module>   s   2)