
    d{i^                         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 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)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc                        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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 )#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     q/home/sas/my/fyp/ringai/.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
        )r1   "VerificationAttemptsSummaryContext_versionr2   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 a  
        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:   r;   r<   r=   r>   r?   )r9   fetchr2   r:   r;   r<   r=   r>   r?   s          r#   rC   z)VerificationAttemptsSummaryInstance.fetchK   s2    . {{  11 31 ! 
 	
r"   c                 `   K   | j                   j                  ||||||       d{   S 7 wa  
        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
        rB   N)r9   fetch_asyncrD   s          r#   rG   z/VerificationAttemptsSummaryInstance.fetch_asynck   s@     . [[,,11 31 - 
 
 	
 
   %.,.c                 D    | j                   j                  ||||||      S )a  
        Fetch the VerificationAttemptsSummaryInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rB   )r9   fetch_with_http_inforD   s          r#   rJ   z8VerificationAttemptsSummaryInstance.fetch_with_http_info   s2    . {{//11 31 0 
 	
r"   c                 `   K   | j                   j                  ||||||       d{   S 7 w)a  
        Asynchronous coroutine to fetch the VerificationAttemptsSummaryInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rB   N)r9   fetch_with_http_info_asyncrD   s          r#   rL   z>VerificationAttemptsSummaryInstance.fetch_with_http_info_async   s@     . [[;;11 31 < 
 
 	
 
rH   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z6<Twilio.Verify.V2.VerificationAttemptsSummaryInstance>r!   r8   s    r#   __repr__z,VerificationAttemptsSummaryInstance.__repr__   s     Hr"   )r4   r6   )r   r   r   objectr$   r   r   strr   r.   propertyr9   r
   unsetr   r   rC   rG   r   rJ   rL   rO   __classcell__r3   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+.
 
/
D 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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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 )r6   r%   c                 2    t         |   |       d| _        y)z
        Initialize the VerificationAttemptsSummaryContext

        :param version: Version that contains the resource
        z/Attempts/SummaryN)r-   r.   _urir2   r%   r3   s     r#   r.   z+VerificationAttemptsSummaryContext.__init__   s     	!'	r"   r:   r;   r<   r=   r>   r   r?   r4   c           	         t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        VerifyServiceSidDateCreatedAfterDateCreatedBeforeCountryChannelDestinationPrefixapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr	   iso8601_datetimer7   fetch_with_response_inforX   	r2   r:   r;   r<   r=   r>   r?   rh   ri   s	            r#   _fetchz)VerificationAttemptsSummaryContext._fetch   s    $ $6$-$>$>?Q$R%.%?%?@S%T""%7	
 ))B-.}}55dii 6 
 	
r"   c                 d    | j                  ||||||      \  }}}t        | j                  |      S rA   )rn   r   r7   	r2   r:   r;   r<   r=   r>   r?   r&   _s	            r#   rC   z(VerificationAttemptsSummaryContext.fetch  sH    . 11 31 $ 
A 3MM
 	
r"   c                     | j                  ||||||      \  }}}	t        | j                  |      }
t        |
||	      S )a  
        Fetch the VerificationAttemptsSummaryInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rB   datastatus_coderi   )rn   r   r7   r   r2   r:   r;   r<   r=   r>   r?   r&   ru   ri   instances              r#   rJ   z7VerificationAttemptsSummaryContext.fetch_with_http_info*  sW    . )-11 31 )4 )
%g 7MM
 k7SSr"   c           	      (  K   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r[   rb   rc   rd   re   N)r
   rj   r	   rk   r7   fetch_with_response_info_asyncrX   rm   s	            r#   _fetch_asyncz/VerificationAttemptsSummaryContext._fetch_asyncO  s     $ $6$-$>$>?Q$R%.%?%?@S%T""%7	
 ))B-.]]AAdii B 
 
 	
 
s   B	BBBc                    K   | j                  ||||||       d{   \  }}}t        | j                  |      S 7 wrF   )rz   r   r7   rp   s	            r#   rG   z.VerificationAttemptsSummaryContext.fetch_asynct  sX     . #//11 31 0 
 
A 3MM
 	

s   ><>c                    K   | j                  ||||||       d{   \  }}}	t        | j                  |      }
t        |
||	      S 7 ,w)a  
        Asynchronous coroutine to fetch the VerificationAttemptsSummaryInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rB   Nrs   )rz   r   r7   r   rv   s              r#   rL   z=VerificationAttemptsSummaryContext.fetch_with_http_info_async  sh     . /3.?.?11 31 /@ /
 )
%g 7MM
 k7SS)
s   AA
-Ac                      y)rN   z5<Twilio.Verify.V2.VerificationAttemptsSummaryContext>r!   r8   s    r#   rO   z+VerificationAttemptsSummaryContext.__repr__  s     Gr"   )r   r   r   r   r.   r
   rS   r   rQ   rP   r   tuplern   r   rC   r   rJ   rz   rG   rL   rO   rT   rU   s   @r#   r6   r6      se   ( ( 286<ll7=||&,ll LL17#
!#v+.#
 "(F"23#
 #8V#34	#

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

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

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

 sF{#"
 :FB
"
 "#v+."
 
-"
L 286<ll7=||&,ll LL17#T!#v+.#T "(F"23#T #8V#34	#T
 sF{##T :FB
#T "#v+.#T 
#TJG# Gr"   r6   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.   rY   s     r#   r.   z(VerificationAttemptsSummaryList.__init__  s     	!r"   r4   c                 ,    t        | j                        S zB
        Constructs a VerificationAttemptsSummaryContext

        r6   r7   r8   s    r#   r0   z#VerificationAttemptsSummaryList.get      
 2$--@@r"   c                 ,    t        | j                        S r   r   r8   s    r#   __call__z(VerificationAttemptsSummaryList.__call__  r   r"   c                      y)rN   z2<Twilio.Verify.V2.VerificationAttemptsSummaryList>r!   r8   s    r#   rO   z(VerificationAttemptsSummaryList.__repr__  s     Dr"   )r   r   r   r   r.   r6   r0   r   rQ   rO   rT   rU   s   @r#   r   r     s;    " "A7 AA< AD# Dr"   r   N)__doc__r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r6   r   r!   r"   r#   <module>r      s[     - - 6 6 0 8 : 2 'yH*: yHxoG oGdDl Dr"   