o
    f>h&5                     @   s   d Z ddlmZ ddlmZmZmZmZ ddlmZm	Z	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 )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Verify
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictOptionalUnion)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                       s<  e Zd ZG dd deZ	 dedeeef f fddZ	e
dd	d
Zejejejejejejfdeeef deeef deeef deeef dedef deeef dd fddZejejejejejejfdeeef deeef deeef deeef dedef deeef dd fddZdefddZ  ZS )#VerificationAttemptsSummaryInstancec                   @   s   e Zd ZdZdZdZdZdS ),VerificationAttemptsSummaryInstance.ChannelssmscallemailwhatsappN)__name__
__module____qualname__SMSCALLEMAILWHATSAPP r   r   f/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/verify/v2/verification_attempts_summary.pyChannels   s
    r   versionpayloadc                    sd   t  | t|d| _t|d| _t|d| _|d| _|d| _	d | _
d S )Ntotal_attemptstotal_convertedtotal_unconvertedconversion_rate_percentageurl)super__init__r   integergetr    r!   r"   r#   r$   _context)selfr   r   	__class__r   r   r&   (   s   
z,VerificationAttemptsSummaryInstance.__init__return"VerificationAttemptsSummaryContextc                 C   s   | j du rt| j| _ | j S )a  
        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
        N)r)   r.   _versionr*   r   r   r   _proxy;   s
   
z*VerificationAttemptsSummaryInstance._proxyverify_service_siddate_created_afterdate_created_beforecountrychannelr   destination_prefixc                 C   s   | j j||||||dS )  
        Fetch the VerificationAttemptsSummaryInstance

        :param verify_service_sid: Filter used to consider only Verification Attempts of the given verify service on the summary aggregation.
        :param date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param country: Filter used to consider only Verification Attempts sent to the specified destination country on the summary aggregation.
        :param channel: Filter Verification Attempts considered on the summary aggregation by communication channel. Valid values are `SMS`, `CALL` and `WHATSAPP`
        :param destination_prefix: Filter the Verification Attempts considered on the summary aggregation by Destination prefix. It is the prefix of a phone number in E.164 format.

        :returns: The fetched VerificationAttemptsSummaryInstance
        r2   r3   r4   r5   r6   r7   )r1   fetchr*   r2   r3   r4   r5   r6   r7   r   r   r   r:   I   s   z)VerificationAttemptsSummaryInstance.fetchc                    s    | j j||||||dI dH S )  
        Asynchronous coroutine to fetch the VerificationAttemptsSummaryInstance

        :param verify_service_sid: Filter used to consider only Verification Attempts of the given verify service on the summary aggregation.
        :param date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param country: Filter used to consider only Verification Attempts sent to the specified destination country on the summary aggregation.
        :param channel: Filter Verification Attempts considered on the summary aggregation by communication channel. Valid values are `SMS`, `CALL` and `WHATSAPP`
        :param destination_prefix: Filter the Verification Attempts considered on the summary aggregation by Destination prefix. It is the prefix of a phone number in E.164 format.

        :returns: The fetched VerificationAttemptsSummaryInstance
        r9   N)r1   fetch_asyncr;   r   r   r   r=   i   s   z/VerificationAttemptsSummaryInstance.fetch_asyncc                 C      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z6<Twilio.Verify.V2.VerificationAttemptsSummaryInstance>r   r0   r   r   r   __repr__      z,VerificationAttemptsSummaryInstance.__repr__)r-   r.   )r   r   r   objectr   r   r   strr   r&   propertyr1   r	   unsetr   r   r:   r=   r@   __classcell__r   r   r+   r   r      sj    




	

"




	

 r   c                       s  e Zd Zdef fddZejejejejejejfdeee	f dee
e	f dee
e	f deee	f ded	e	f d
eee	f defddZejejejejejejfdeee	f dee
e	f dee
e	f deee	f ded	e	f d
eee	f defddZdefddZ  ZS )r.   r   c                    s   t  | d| _dS )z
        Initialize the VerificationAttemptsSummaryContext

        :param version: Version that contains the resource
        z/Attempts/SummaryN)r%   r&   _urir*   r   r+   r   r   r&      s   
z+VerificationAttemptsSummaryContext.__init__r2   r3   r4   r5   r6   r   r7   r-   c           
   	   C   sX   t |t|t||||d}t i }d|d< | jjd| j||d}	t| j|	S )r8   VerifyServiceSidDateCreatedAfterDateCreatedBeforeCountryChannelDestinationPrefixapplication/jsonAcceptGETmethoduriparamsheaders)r	   ofr   iso8601_datetimer/   r:   rG   r   
r*   r2   r3   r4   r5   r6   r7   datarW   r   r   r   r   r:      s$   

z(VerificationAttemptsSummaryContext.fetchc           
   	      s`   t |t|t||||d}t i }d|d< | jjd| j||dI dH }	t| j|	S )r<   rI   rP   rQ   rR   rS   N)r	   rX   r   rY   r/   r=   rG   r   rZ   r   r   r   r=      s&   

z.VerificationAttemptsSummaryContext.fetch_asyncc                 C   r>   )r?   z5<Twilio.Verify.V2.VerificationAttemptsSummaryContext>r   r0   r   r   r   r@      rA   z+VerificationAttemptsSummaryContext.__repr__)r   r   r   r   r&   r	   rE   r   rC   rB   r   r   r:   r=   r@   rF   r   r   r+   r   r.      sb    




	

2




	

0r.   c                       sL   e Zd Zdef fddZdefddZdefddZdefd	d
Z	  Z
S )VerificationAttemptsSummaryListr   c                    s   t  | dS )z}
        Initialize the VerificationAttemptsSummaryList

        :param version: Version that contains the resource

        N)r%   r&   rH   r+   r   r   r&     s   z(VerificationAttemptsSummaryList.__init__r-   c                 C   
   t | jS zB
        Constructs a VerificationAttemptsSummaryContext

        r.   r/   r0   r   r   r   r(        
z#VerificationAttemptsSummaryList.getc                 C   r]   r^   r_   r0   r   r   r   __call__  r`   z(VerificationAttemptsSummaryList.__call__c                 C   r>   )r?   z2<Twilio.Verify.V2.VerificationAttemptsSummaryList>r   r0   r   r   r   r@   "  s   z(VerificationAttemptsSummaryList.__repr__)r   r   r   r   r&   r.   r(   ra   rC   r@   rF   r   r   r+   r   r\   	  s
    	r\   N)__doc__r   typingr   r   r   r   twilio.baser   r   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r.   r\   r   r   r   r   <module>   s    {v