
    i?1ia4                         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y),VerificationAttemptsSummaryInstance.ChannelssmscallemailwhatsappN)__name__
__module____qualname__SMSCALLEMAILWHATSAPP     }/home/www/therecruiter.miabetepe.com/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            | _        t        j                  |j	                  d            | _	        |j	                  d      | _
        d | _        y )Ntotal_attemptstotal_convertedtotal_unconvertedconversion_rate_percentageurl)super__init__r   integergetr%   r&   r'   decimalr(   r)   _context)selfr"   r#   	__class__s      r    r+   z,VerificationAttemptsSummaryInstance.__init__(   s    !-8-@-@KK().
 /:.A.AKK)*/
 1<0C0CKK+,1
 <G;N;NKK45<
' #*++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
        )r/   "VerificationAttemptsSummaryContext_versionr0   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. 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
        r8   r9   r:   r;   r<   r=   )r7   fetchr0   r8   r9   r:   r;   r<   r=   s          r    rA   z)VerificationAttemptsSummaryInstance.fetchI   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. 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
        r@   N)r7   fetch_asyncrB   s          r    rE   z/VerificationAttemptsSummaryInstance.fetch_asynci   s@     . [[,,11 31 - 
 
 	
 
s   %.,.c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z6<Twilio.Verify.V2.VerificationAttemptsSummaryInstance>r   r6   s    r    __repr__z,VerificationAttemptsSummaryInstance.__repr__   s     Hr   )r2   r4   )r   r   r   objectr!   r   r   strr   r+   propertyr7   r
   unsetr   r   rA   rE   rH   __classcell__r1   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 )r4   r"   c                 2    t         |   |       d| _        y)z
        Initialize the VerificationAttemptsSummaryContext

        :param version: Version that contains the resource
        z/Attempts/SummaryN)r*   r+   _urir0   r"   r1   s     r    r+   z+VerificationAttemptsSummaryContext.__init__   s     	!'	r   r8   r9   r:   r;   r<   r   r=   r2   c           	         t        j                  |t        j                  |      t        j                  |      |||d      }| j                  j                  d| j                  |      }t        | j                  |      S )r?   VerifyServiceSidDateCreatedAfterDateCreatedBeforeCountryChannelDestinationPrefixGETmethoduriparams)r
   ofr	   iso8601_datetimer5   rA   rQ   r   	r0   r8   r9   r:   r;   r<   r=   datar#   s	            r    rA   z(VerificationAttemptsSummaryContext.fetch   sy    0 yy$6$-$>$>?Q$R%.%?%?@S%T""%7	
 --%%U		$%O2MM
 	
r   c           	        K   t        j                  |t        j                  |      t        j                  |      |||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)rD   rT   r[   r\   N)r
   r`   r	   ra   r5   rE   rQ   r   rb   s	            r    rE   z.VerificationAttemptsSummaryContext.fetch_async   s     0 yy$6$-$>$>?Q$R%.%?%?@S%T""%7	
 11dii 2 
 
 3MM
 	
	
s   A.B0B1Bc                      y)rG   z5<Twilio.Verify.V2.VerificationAttemptsSummaryContext>r   r6   s    r    rH   z+VerificationAttemptsSummaryContext.__repr__   s     Gr   )r   r   r   r   r+   r
   rL   r   rJ   rI   r   r   rA   rE   rH   rM   rN   s   @r    r4   r4      s   ( ( 286<ll7=||&,ll LL17(
!#v+.(
 "(F"23(
 #8V#34	(

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

 sF{#*
 :FB
*
 "#v+.*
 
-*
XG# Gr   r4   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+   rR   s     r    r+   z(VerificationAttemptsSummaryList.__init__   s     	!r   r2   c                 ,    t        | j                        S zB
        Constructs a VerificationAttemptsSummaryContext

        r4   r5   r6   s    r    r-   z#VerificationAttemptsSummaryList.get      
 2$--@@r   c                 ,    t        | j                        S rj   rk   r6   s    r    __call__z(VerificationAttemptsSummaryList.__call__  rl   r   c                      y)rG   z2<Twilio.Verify.V2.VerificationAttemptsSummaryList>r   r6   s    r    rH   z(VerificationAttemptsSummaryList.__repr__  s     Dr   )r   r   r   r   r+   r4   r-   rn   rJ   rH   rM   rN   s   @r    rg   rg      s;    " "A7 AA< AD# Dr   rg   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   r4   rg   r   r   r    <module>rw      sX     - - 6 6 8 : 2 'wH*: wHthG hGVDl Dr   