o
    e)                     @   s   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 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G dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )deserialize)	serialize)values)InstanceContext)InstanceResource)ListResource)Pagec                       s4   e Zd Z fddZdd Zdd Zdd Z  ZS )	VerificationAttemptsSummaryListc                    s   t t| | i | _dS )aO  
        Initialize the VerificationAttemptsSummaryList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryList
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryList
        N)superr	   __init__	_solutionselfversion	__class__ f/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/verify/v2/verification_attempts_summary.pyr      s   	
z(VerificationAttemptsSummaryList.__init__c                 C   
   t | jS a  
        Constructs a VerificationAttemptsSummaryContext

        :returns: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryContext
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryContext
        "VerificationAttemptsSummaryContext_versionr   r   r   r   get"      
z#VerificationAttemptsSummaryList.getc                 C   r   r   r   r   r   r   r   __call__+   r   z(VerificationAttemptsSummaryList.__call__c                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z2<Twilio.Verify.V2.VerificationAttemptsSummaryList>r   r   r   r   r   __repr__4      z(VerificationAttemptsSummaryList.__repr__)__name__
__module____qualname__r   r   r   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 )VerificationAttemptsSummaryPagec                    s   t t| || || _dS )a  
        Initialize the VerificationAttemptsSummaryPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryPage
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryPage
        N)r
   r%   r   r   )r   r   responsesolutionr   r   r   r   @   s   

z(VerificationAttemptsSummaryPage.__init__c                 C   s   t | j|S )aY  
        Build an instance of VerificationAttemptsSummaryInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryInstance
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryInstance
        )#VerificationAttemptsSummaryInstancer   )r   payloadr   r   r   get_instanceO   s   	z,VerificationAttemptsSummaryPage.get_instancec                 C   r   )r   z2<Twilio.Verify.V2.VerificationAttemptsSummaryPage>r   r   r   r   r   r   Z   r    z(VerificationAttemptsSummaryPage.__repr__)r!   r"   r#   r   r*   r   r$   r   r   r   r   r%   >   s    r%   c                       sF   e Zd Z fddZejejejejejejfddZdd Z  ZS )r   c                    s.   t t| | i | _djdi | j| _dS )aX  
        Initialize the VerificationAttemptsSummaryContext

        :param Version version: Version that contains the resource

        :returns: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryContext
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryContext
        z/Attempts/SummaryNr   )r
   r   r   r   format_urir   r   r   r   r   f   s   	z+VerificationAttemptsSummaryContext.__init__c           	   	   C   sD   t |t|t||||d}| jjd| j|d}t| j|S )  
        Fetch the VerificationAttemptsSummaryInstance

        :param unicode verify_service_sid: Filter the verification attempts considered on the summary by verify service.
        :param datetime date_created_after: Consider verification attempts create after this date on the summary.
        :param datetime date_created_before: Consider verification attempts created before this date on the summary.
        :param unicode country: Filter verification attempts considered on the summary by destination country.
        :param VerificationAttemptsSummaryInstance.Channels channel: Filter verification attempts considered on the summary by communication channel.
        :param unicode destination_prefix: Filters the attempts considered on the summary by destination prefix.

        :returns: The fetched VerificationAttemptsSummaryInstance
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryInstance
        )VerifyServiceSidDateCreatedAfterDateCreatedBeforeCountryChannelDestinationPrefixGET)methoduriparams)r   ofr   iso8601_datetimer   fetchr,   r(   )	r   verify_service_siddate_created_afterdate_created_beforecountrychanneldestination_prefixdatar)   r   r   r   r:   u   s   	z(VerificationAttemptsSummaryContext.fetchc                 C   $   d dd | j D }d|S )r    c                 s        | ]\}}d  ||V  qdS z{}={}Nr+   .0kvr   r   r   	<genexpr>       z>VerificationAttemptsSummaryContext.__repr__.<locals>.<genexpr>z8<Twilio.Verify.V2.VerificationAttemptsSummaryContext {}>joinr   itemsr+   r   contextr   r   r   r         
z+VerificationAttemptsSummaryContext.__repr__)	r!   r"   r#   r   r   unsetr:   r   r$   r   r   r   r   r   d   s    
r   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jejejejejejf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,VerificationAttemptsSummaryInstance.ChannelssmscallemailwhatsappN)r!   r"   r#   SMSCALLEMAILWHATSAPPr   r   r   r   Channels   s
    r\   c                    sh   t t| | t|dt|dt|dt|d|dd| _d| _i | _	dS )a  
        Initialize the VerificationAttemptsSummaryInstance

        :returns: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryInstance
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryInstance
        total_attemptstotal_convertedtotal_unconvertedconversion_rate_percentageurl)r]   r^   r_   r`   ra   N)
r
   r(   r   r   integerr   decimal_properties_contextr   )r   r   r)   r   r   r   r      s   	
z,VerificationAttemptsSummaryInstance.__init__c                 C   s   | j du rt| j| _ | j S )ay  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: VerificationAttemptsSummaryContext for this VerificationAttemptsSummaryInstance
        :rtype: twilio.rest.verify.v2.verification_attempts_summary.VerificationAttemptsSummaryContext
        N)re   r   r   r   r   r   r   _proxy   s   
	z*VerificationAttemptsSummaryInstance._proxyc                 C   
   | j d S )zK
        :returns: Total of attempts made.
        :rtype: unicode
        r]   rd   r   r   r   r   r]         
z2VerificationAttemptsSummaryInstance.total_attemptsc                 C   rg   )z`
        :returns: Total of attempts confirmed by the end user.
        :rtype: unicode
        r^   rh   r   r   r   r   r^      ri   z3VerificationAttemptsSummaryInstance.total_convertedc                 C   rg   )zs
        :returns: Total of attempts made that were not confirmed by the end user.
        :rtype: unicode
        r_   rh   r   r   r   r   r_      ri   z5VerificationAttemptsSummaryInstance.total_unconvertedc                 C   rg   )zh
        :returns: Percentage of the confirmed messages over the total.
        :rtype: unicode
        r`   rh   r   r   r   r   r`      ri   z>VerificationAttemptsSummaryInstance.conversion_rate_percentagec                 C   rg   )z;
        :returns: The url
        :rtype: unicode
        ra   rh   r   r   r   r   ra      ri   z'VerificationAttemptsSummaryInstance.urlc                 C   s   | j j||||||dS )r-   )r;   r<   r=   r>   r?   r@   )rf   r:   )r   r;   r<   r=   r>   r?   r@   r   r   r   r:      s   z)VerificationAttemptsSummaryInstance.fetchc                 C   rB   )r   rC   c                 s   rD   rE   rF   rG   r   r   r   rK     rL   z?VerificationAttemptsSummaryInstance.__repr__.<locals>.<genexpr>z9<Twilio.Verify.V2.VerificationAttemptsSummaryInstance {}>rM   rP   r   r   r   r     rR   z,VerificationAttemptsSummaryInstance.__repr__)r!   r"   r#   objectr\   r   propertyrf   r]   r^   r_   r`   ra   r   rS   r:   r   r$   r   r   r   r   r(      s*    






r(   N)__doc__twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r	   r%   r   r(   r   r   r   r   <module>   s   ,&: