U
    ^g%i4                     @   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eeeef d fddZ	e
dddd	Zejejejejejejfeeef eeef eeef eeef ed
ef eeef d dddZejejejejejejfeeef eeef eeef eeef ed
ef eeef d dddZedddZ  ZS )#VerificationAttemptsSummaryInstancec                   @   s    e Zd ZdZdZdZdZdZdS ),VerificationAttemptsSummaryInstance.ChannelsZsmscallemailZwhatsappZrbmN)__name__
__module____qualname__ZSMSCALLZEMAILZWHATSAPPZRBM r   r   r/var/www/html/api-medvista/venv/lib/python3.8/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__"VerificationAttemptsSummaryContextreturnc                 C   s   | j dk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._proxyr   verify_service_siddate_created_afterdate_created_beforecountrychanneldestination_prefixr*   c                 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.
        :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
        r/   r0   r1   r2   r3   r4   )r-   fetchr%   r/   r0   r1   r2   r3   r4   r   r   r   r7   J   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.
        :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
        r6   N)r-   fetch_asyncr8   r   r   r   r:   j   s    z/VerificationAttemptsSummaryInstance.fetch_asyncc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z6<Twilio.Verify.V2.VerificationAttemptsSummaryInstance>r   r,   r   r   r   __repr__   s    z,VerificationAttemptsSummaryInstance.__repr__)r   r   r   objectr   r   r   strr   r!   propertyr-   r	   unsetr   r   r7   r:   r<   __classcell__r   r   r&   r   r      sN   




"




 r   c                	       s   e Zd Zed fddZejejejejejejfeee	f ee
e	f ee
e	f eee	f ede	f eee	f edddZejejejejejejfeee	f ee
e	f ee
e	f eee	f ede	f eee	f eddd	Zed
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__r   r.   c           
   	   C   sX   t |t|t||||d}t i }d|d< | jjd| j||d}	t| j|	S )r5   ZVerifyServiceSidZDateCreatedAfterZDateCreatedBeforeZCountryZChannelZDestinationPrefixapplication/jsonAcceptGETmethoduriparamsheaders)r	   ofr   iso8601_datetimer+   r7   rC   r   
r%   r/   r0   r1   r2   r3   r4   rL   rM   r   r   r   r   r7      s*    
   z(VerificationAttemptsSummaryContext.fetchc           
   	      s^   t |t|t||||d}t i }d|d< | jjd| j||dI dH }	t| j|	S )r9   rE   rF   rG   rH   rI   N)r	   rN   r   rO   r+   r:   rC   r   rP   r   r   r   r:      s*    
   z.VerificationAttemptsSummaryContext.fetch_asyncr)   c                 C   s   dS )r;   z5<Twilio.Verify.V2.VerificationAttemptsSummaryContext>r   r,   r   r   r   r<      s    z+VerificationAttemptsSummaryContext.__repr__)r   r   r   r   r!   r	   r@   r   r>   r=   r   r   r7   r:   r<   rA   r   r   r&   r   r(      sH   




2




0r(   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )VerificationAttemptsSummaryListrB   c                    s   t  | dS )z}
        Initialize the VerificationAttemptsSummaryList

        :param version: Version that contains the resource

        N)r    r!   rD   r&   r   r   r!     s    z(VerificationAttemptsSummaryList.__init__r)   c                 C   s
   t | jS zB
        Constructs a VerificationAttemptsSummaryContext

        r(   r+   r,   r   r   r   r#     s    z#VerificationAttemptsSummaryList.getc                 C   s
   t | jS rR   rS   r,   r   r   r   __call__  s    z(VerificationAttemptsSummaryList.__call__c                 C   s   dS )r;   z2<Twilio.Verify.V2.VerificationAttemptsSummaryList>r   r,   r   r   r   r<   #  s    z(VerificationAttemptsSummaryList.__repr__)r   r   r   r   r!   r(   r#   rT   r>   r<   rA   r   r   r&   r   rQ   
  s   	rQ   N)__doc__r   typingr   r   r   r   Ztwilio.baser   r   r	   Ztwilio.base.instance_contextr
   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   r   r(   rQ   r   r   r   r   <module>   s   |v