o
    e{                     @   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                       s>   e Zd Z fddZejejejejfddZdd Z  ZS )VerificationCheckListc                    s2   t t| | d|i| _djdi | j| _dS )a  
        Initialize the VerificationCheckList

        :param Version version: Version that contains the resource
        :param service_sid: The SID of the Service that the resource is associated with

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

zVerificationCheckList.__init__c                 C   s@   t |||||d}| jjd| j|d}t| j|| jd dS )aK  
        Create the VerificationCheckInstance

        :param unicode code: The verification string
        :param unicode to: The phone number or email to verify
        :param unicode verification_sid: A SID that uniquely identifies the Verification Check
        :param unicode amount: The amount of the associated PSD2 compliant transaction.
        :param unicode payee: The payee of the associated PSD2 compliant transaction

        :returns: The created VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        )CodeToVerificationSidAmountPayeePOST)methoduridatar   r   )r   of_versioncreater   VerificationCheckInstancer   )r   codetoverification_sidamountpayeer   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.V2.VerificationCheckList>r	   r   r	   r	   r   __repr__<      zVerificationCheckList.__repr__)	__name__
__module____qualname__r   r   unsetr    r+   __classcell__r	   r	   r   r   r      s    
r   c                       s,   e Zd Z fddZdd Zdd Z  ZS )VerificationCheckPagec                    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: The SID of the Service that the resource is associated with

        :returns: twilio.rest.verify.v2.service.verification_check.VerificationCheckPage
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckPage
        N)r
   r2   r   r   )r   r   responsesolutionr   r	   r   r   H   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.v2.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        r   r   )r!   r   r   )r   r'   r	   r	   r   get_instanceX   s   	z"VerificationCheckPage.get_instancec                 C   r(   )r)   z(<Twilio.Verify.V2.VerificationCheckPage>r	   r*   r	   r	   r   r+   c   r,   zVerificationCheckPage.__repr__)r-   r.   r/   r   r5   r+   r1   r	   r	   r   r   r2   F   s    r2   c                       s   e 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edd Zedd Zdd Z  ZS )r!   c                   @   s   e Zd ZdZdZdZdZdS )z!VerificationCheckInstance.ChannelsmscallemailwhatsappN)r-   r.   r/   SMSCALLEMAILWHATSAPPr	   r	   r	   r   Channelo   s
    r>   c                    s   t t| | |d|d|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.v2.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        sidr   account_sidr#   channelstatusvalidr%   r&   date_createddate_updated)r?   r   r@   r#   rA   rB   rC   r%   r&   rD   rE   N)	r
   r!   r   getr   iso8601_datetime_properties_contextr   )r   r   r'   r   r   r	   r   r   u   s   z"VerificationCheckInstance.__init__c                 C   
   | j d S )zb
        :returns: The unique string that identifies the resource
        :rtype: unicode
        r?   rH   r*   r	   r	   r   r?         
zVerificationCheckInstance.sidc                 C   rJ   )zo
        :returns: The SID of the Service that the resource is associated with
        :rtype: unicode
        r   rK   r*   r	   r	   r   r      rL   z%VerificationCheckInstance.service_sidc                 C   rJ   )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r@   rK   r*   r	   r	   r   r@      rL   z%VerificationCheckInstance.account_sidc                 C   rJ   )z\
        :returns: The phone number or email being verified
        :rtype: unicode
        r#   rK   r*   r	   r	   r   r#      rL   zVerificationCheckInstance.toc                 C   rJ   )zl
        :returns: The verification method to use
        :rtype: VerificationCheckInstance.Channel
        rA   rK   r*   r	   r	   r   rA      rL   z!VerificationCheckInstance.channelc                 C   rJ   )z[
        :returns: The status of the verification resource
        :rtype: unicode
        rB   rK   r*   r	   r	   r   rB      rL   z VerificationCheckInstance.statusc                 C   rJ   )zX
        :returns: Whether the verification was successful
        :rtype: bool
        rC   rK   r*   r	   r	   r   rC      rL   zVerificationCheckInstance.validc                 C   rJ   )zl
        :returns: The amount of the associated PSD2 compliant transaction.
        :rtype: unicode
        r%   rK   r*   r	   r	   r   r%      rL   z VerificationCheckInstance.amountc                 C   rJ   )zj
        :returns: The payee of the associated PSD2 compliant transaction
        :rtype: unicode
        r&   rK   r*   r	   r	   r   r&      rL   zVerificationCheckInstance.payeec                 C   rJ   )z
        :returns: The ISO 8601 date and time in GMT when the Verification Check resource was created
        :rtype: datetime
        rD   rK   r*   r	   r	   r   rD      rL   z&VerificationCheckInstance.date_createdc                 C   rJ   )z
        :returns: The ISO 8601 date and time in GMT when the Verification Check resource was last updated
        :rtype: datetime
        rE   rK   r*   r	   r	   r   rE      rL   z&VerificationCheckInstance.date_updatedc                 C   r(   )r)   z,<Twilio.Verify.V2.VerificationCheckInstance>r	   r*   r	   r	   r   r+      r,   z"VerificationCheckInstance.__repr__)r-   r.   r/   objectr>   r   propertyr?   r   r@   r#   rA   rB   rC   r%   r&   rD   rE   r+   r1   r	   r	   r   r   r!   m   s4    










r!   N)__doc__twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r2   r!   r	   r	   r	   r   <module>   s   6'