
    pi4                         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
e      Z G d de      Z G d de      Zy)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                   4    e Zd Z G d de      Z	 dedeeef   f fdZ	e
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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ZdefdZ xZS )#VerificationAttemptsSummaryInstancec                        e Zd ZdZdZdZdZdZy),VerificationAttemptsSummaryInstance.ChannelssmscallemailwhatsapprbmN)__name__
__module____qualname__SMSCALLEMAILWHATSAPPRBM     u/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/verify/v2/verification_attempts_summary.pyChannelsr      s    r!   r#   versionpayloadc                    t         |   |       t        j                  |j	                  d            | _        t        j                  |j	                  d            | _        t        j                  |j	                  d            | _        |j	                  d      | _        |j	                  d      | _	        d | _
        y )Ntotal_attemptstotal_convertedtotal_unconvertedconversion_rate_percentageurl)super__init__r   integergetr'   r(   r)   r*   r+   _context)selfr$   r%   	__class__s      r"   r-   z,VerificationAttemptsSummaryInstance.__init__)   s    !-8-@-@KK().
 /:.A.AKK)*/
 1<0C0CKK+,1
 :A(:
' #*++e"4FJr!   returnc                 f    | j                   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
        )r0   "VerificationAttemptsSummaryContext_versionr1   s    r"   _proxyz*VerificationAttemptsSummaryInstance._proxy<   s-     == >DM }}r!   verify_service_siddate_created_afterdate_created_beforecountrychannelr   destination_prefixc                 D    | j                   j                  ||||||      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
        r9   r:   r;   r<   r=   r>   )r8   fetchr1   r9   r:   r;   r<   r=   r>   s          r"   rB   z)VerificationAttemptsSummaryInstance.fetchJ   s2    . {{  11 31 ! 
 	
r!   c                 `   K   | j                   j                  ||||||       d{   S 7 w)  
        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
        rA   N)r8   fetch_asyncrC   s          r"   rF   z/VerificationAttemptsSummaryInstance.fetch_asyncj   s@     . [[,,11 31 - 
 
 	
 
s   %.,.c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z6<Twilio.Verify.V2.VerificationAttemptsSummaryInstance>r    r7   s    r"   __repr__z,VerificationAttemptsSummaryInstance.__repr__   s     Hr!   )r3   r5   )r   r   r   objectr#   r   r   strr   r-   propertyr8   r
   unsetr   r   rB   rF   rI   __classcell__r2   s   @r"   r   r      s   6 K K$sCx. K&   286<ll7=||&,ll LL17
!#v+.
 "(F"23
 #8V#34	

 sF{#
 :FB

 "#v+.
 
/
D 286<ll7=||&,ll LL17
!#v+.
 "(F"23
 #8V#34	

 sF{#
 :FB

 "#v+.
 
/
@H# Hr!   r   c                       e Zd Zdef f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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Zd
efdZ xZS )r5   r$   c                 2    t         |   |       d| _        y)z
        Initialize the VerificationAttemptsSummaryContext

        :param version: Version that contains the resource
        z/Attempts/SummaryN)r,   r-   _urir1   r$   r2   s     r"   r-   z+VerificationAttemptsSummaryContext.__init__   s     	!'	r!   r9   r:   r;   r<   r=   r   r>   r3   c           	      8   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }	t        | j                  |	      S )r@   VerifyServiceSidDateCreatedAfterDateCreatedBeforeCountryChannelDestinationPrefixapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr	   iso8601_datetimer6   rB   rR   r   
r1   r9   r:   r;   r<   r=   r>   rb   rc   r%   s
             r"   rB   z(VerificationAttemptsSummaryContext.fetch   s    0 $6$-$>$>?Q$R%.%?%?@S%T""%7	
 ))B-.--%%dii & 
 3MM
 	
r!   c           	      T  K   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }	t        | j                  |	      S 7 w)rE   rU   r\   r]   r^   r_   N)r
   rd   r	   re   r6   rF   rR   r   rf   s
             r"   rF   z.VerificationAttemptsSummaryContext.fetch_async   s     0 $6$-$>$>?Q$R%.%?%?@S%T""%7	
 ))B-.11dii 2 
 
 3MM
 	
	
s   B	B(B&B(c                      y)rH   z5<Twilio.Verify.V2.VerificationAttemptsSummaryContext>r    r7   s    r"   rI   z+VerificationAttemptsSummaryContext.__repr__   s     Gr!   )r   r   r   r   r-   r
   rM   r   rK   rJ   r   r   rB   rF   rI   rN   rO   s   @r"   r5   r5      s   ( ( 286<ll7=||&,ll LL17.
!#v+..
 "(F"23.
 #8V#34	.

 sF{#.
 :FB
.
 "#v+..
 
-.
d 286<ll7=||&,ll LL17.
!#v+..
 "(F"23.
 #8V#34	.

 sF{#.
 :FB
.
 "#v+..
 
-.
`G# Gr!   r5   c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )VerificationAttemptsSummaryListr$   c                 $    t         |   |       y)z}
        Initialize the VerificationAttemptsSummaryList

        :param version: Version that contains the resource

        N)r,   r-   rS   s     r"   r-   z(VerificationAttemptsSummaryList.__init__  s     	!r!   r3   c                 ,    t        | j                        S zB
        Constructs a VerificationAttemptsSummaryContext

        r5   r6   r7   s    r"   r/   z#VerificationAttemptsSummaryList.get      
 2$--@@r!   c                 ,    t        | j                        S rm   rn   r7   s    r"   __call__z(VerificationAttemptsSummaryList.__call__  ro   r!   c                      y)rH   z2<Twilio.Verify.V2.VerificationAttemptsSummaryList>r    r7   s    r"   rI   z(VerificationAttemptsSummaryList.__repr__#  s     Dr!   )r   r   r   r   r-   r5   r/   rq   rK   rI   rN   rO   s   @r"   rj   rj   
  s;    " "A7 AA< AD# Dr!   rj   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   r5   rj   r    r!   r"   <module>rz      sX     - - 6 6 8 : 2 'yH*: yHxsG sGlDl Dr!   