
    C%h&                         d Z ddlmZ ddlmZmZmZ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 G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Messaging
    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ListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec            -           e Zd Z G d de      Z G d de      Z	 	 d(dedeee	f   de
e   f fdZed)d
       Zd	efdZd	efdZd*dZd*dZej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  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   ef   deeef   deeef   deee   ef   dedef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   d eeef   d!eeef   d"eeef   d#eeef   d$eeef   d	d f,d%Zej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  ej(                  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   ef   deeef   deeef   deee   ef   dedef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   d eeef   d!eeef   d"eeef   d#eeef   d$eeef   d	d f,d&Zd	efd'Z xZS )+TollfreeVerificationInstancec                   (    e Zd ZdZdZdZdZdZdZdZ	y)	&TollfreeVerificationInstance.OptInTypeVERBALWEB_FORM
PAPER_FORMVIA_TEXTMOBILE_QR_CODEIMPORTIMPORT_PLEASE_REPLACEN)
__name__
__module____qualname__r   r   r   r   r   r   r        t/var/www/html/Kila-kolis-project/venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/tollfree_verification.py	OptInTyper      s&    !
) 7r"   r$   c                       e Zd ZdZdZdZdZy)#TollfreeVerificationInstance.StatusPENDING_REVIEW	IN_REVIEWTWILIO_APPROVEDTWILIO_REJECTEDN)r   r   r    r'   r(   r)   r*   r!   r"   r#   Statusr&   $   s    )	++r"   r+   versionpayloadsidc                 T   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _	        t        j                  |j                  d            | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _         |j                  d      | _!        |j                  d      | _"        |j                  d      | _#        t        jH                  |j                  d             | _%        t        j                  |j                  d!            | _&        |j                  d"      | _'        |j                  d#      | _(        |j                  d$      | _)        |j                  d%      | _*        d|xs | j                  i| _+        d | _,        y )&Nr.   account_sidcustomer_profile_sidtrust_product_siddate_createddate_updatedregulated_item_sidbusiness_namebusiness_street_addressbusiness_street_address2business_citybusiness_state_province_regionbusiness_postal_codebusiness_countrybusiness_websitebusiness_contact_first_namebusiness_contact_last_namebusiness_contact_emailbusiness_contact_phonenotification_emailuse_case_categoriesuse_case_summaryproduction_message_sampleopt_in_image_urlsopt_in_typemessage_volumeadditional_informationtollfree_phone_number_sidstatusurlrejection_reason
error_codeedit_expirationedit_allowedrejection_reasonsresource_linksexternal_reference_id)-super__init__getr.   r0   r1   r2   r   iso8601_datetimer3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   integerrN   rO   rP   rQ   rR   rS   	_solution_context)selfr,   r-   r.   	__class__s       r#   rU   z%TollfreeVerificationInstance.__init__R   s<    	!")++e"4*1++m*D3:;;?U3V!07<O0P0;0L0LKK'1
 1<0L0LKK'1
 29=Q1R,3KK,H6=kk%7
$ 8?{{&8
% -4KK,H=D[[,>
+ 4;;;?U3V!/6{{;M/N/6{{;M/N:A++);
( :A(:
' 6=[[$6
# 6=[[$6
# 29=Q1R8?!9
  07{{;M/N8?'9
& 7>kkBU6VKK& 	 .5[[9I-J5<[[$6
# 9@'9
& HO{{H
 #*++e"4/6{{;M/N)4)<)<W[[=V)W3>3O3OKK)*4
 -4KK,GDKKKE
 <C;;GW;X4;KK@W4X" 3?$((
 @Dr"   returnc                     | j                   )t        | j                  | j                  d         | _         | 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: TollfreeVerificationContext for this TollfreeVerificationInstance
        r.   r.   )rZ   TollfreeVerificationContext_versionrY   r[   s    r#   _proxyz#TollfreeVerificationInstance._proxy   s9     == 7NN5)DM }}r"   c                 6    | j                   j                         S )w
        Deletes the TollfreeVerificationInstance


        :returns: True if delete succeeds, False otherwise
        )rc   deleterb   s    r#   rf   z#TollfreeVerificationInstance.delete   s     {{!!##r"   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the TollfreeVerificationInstance


        :returns: True if delete succeeds, False otherwise
        N)rc   delete_asyncrb   s    r#   ri   z)TollfreeVerificationInstance.delete_async   s!      [[--////   '%'c                 6    | j                   j                         S )u
        Fetch the TollfreeVerificationInstance


        :returns: The fetched TollfreeVerificationInstance
        )rc   fetchrb   s    r#   rm   z"TollfreeVerificationInstance.fetch   s     {{  ""r"   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the TollfreeVerificationInstance


        :returns: The fetched TollfreeVerificationInstance
        N)rc   fetch_asyncrb   s    r#   rp   z(TollfreeVerificationInstance.fetch_async   s!      [[,,....rj   r6   r=   rB   rC   rD   rE   rF   rG   r   rH   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   edit_reasonc                 b    | j                   j                  |||||||||	|
|||||||||||      S )2
  
        Update the TollfreeVerificationInstance

        :param business_name: The name of the business or organization using the Tollfree number.
        :param business_website: The website of the business or organization using the Tollfree number.
        :param notification_email: The email address to receive the notification about the verification result. .
        :param use_case_categories: The category of the use case for the Tollfree Number. List as many are applicable..
        :param use_case_summary: Use this to further explain how messaging is used by the business or organization.
        :param production_message_sample: An example of message content, i.e. a sample message.
        :param opt_in_image_urls: Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
        :param opt_in_type:
        :param message_volume: Estimate monthly volume of messages from the Tollfree Number.
        :param business_street_address: The address of the business or organization using the Tollfree number.
        :param business_street_address2: The address of the business or organization using the Tollfree number.
        :param business_city: The city of the business or organization using the Tollfree number.
        :param business_state_province_region: The state/province/region of the business or organization using the Tollfree number.
        :param business_postal_code: The postal code of the business or organization using the Tollfree number.
        :param business_country: The country of the business or organization using the Tollfree number.
        :param additional_information: Additional information to be provided for verification.
        :param business_contact_first_name: The first name of the contact for the business or organization using the Tollfree number.
        :param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
        :param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
        :param business_contact_phone: The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
        :param edit_reason: Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.

        :returns: The updated TollfreeVerificationInstance
        r6   r=   rB   rC   rD   rE   rF   rG   rH   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   rq   )rc   updater[   r6   r=   rB   rC   rD   rE   rF   rG   rH   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   rq   s                         r#   ru   z#TollfreeVerificationInstance.update   s`    j {{!!'-1 3-&?/#)$;%='+I!5-#9(C'A#9#9#+ " 
 	
r"   c                 ~   K   | j                   j                  |||||||||	|
|||||||||||       d{   S 7 w)L
  
        Asynchronous coroutine to update the TollfreeVerificationInstance

        :param business_name: The name of the business or organization using the Tollfree number.
        :param business_website: The website of the business or organization using the Tollfree number.
        :param notification_email: The email address to receive the notification about the verification result. .
        :param use_case_categories: The category of the use case for the Tollfree Number. List as many are applicable..
        :param use_case_summary: Use this to further explain how messaging is used by the business or organization.
        :param production_message_sample: An example of message content, i.e. a sample message.
        :param opt_in_image_urls: Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
        :param opt_in_type:
        :param message_volume: Estimate monthly volume of messages from the Tollfree Number.
        :param business_street_address: The address of the business or organization using the Tollfree number.
        :param business_street_address2: The address of the business or organization using the Tollfree number.
        :param business_city: The city of the business or organization using the Tollfree number.
        :param business_state_province_region: The state/province/region of the business or organization using the Tollfree number.
        :param business_postal_code: The postal code of the business or organization using the Tollfree number.
        :param business_country: The country of the business or organization using the Tollfree number.
        :param additional_information: Additional information to be provided for verification.
        :param business_contact_first_name: The first name of the contact for the business or organization using the Tollfree number.
        :param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
        :param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
        :param business_contact_phone: The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
        :param edit_reason: Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.

        :returns: The updated TollfreeVerificationInstance
        rt   N)rc   update_asyncrv   s                         r#   ry   z)TollfreeVerificationInstance.update_async$  sn     j [[--'-1 3-&?/#)$;%='+I!5-#9(C'A#9#9#+ . 
 
 	
 
s   4=;=c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r#   	<genexpr>z8TollfreeVerificationInstance.__repr__.<locals>.<genexpr>w  "     S<RDAq7>>!Q/<R   !z5<Twilio.Messaging.V1.TollfreeVerificationInstance {}>joinrY   itemsr   r[   contexts     r#   __repr__z%TollfreeVerificationInstance.__repr__q  s6     ((SDNN<P<P<RSSFMMgVVr"   N)r]   r`   )r]   r   )r   r   r    objectr$   r+   r   r   strr   r   rU   propertyrc   boolrf   ri   rm   rp   r   unsetr   r   ru   ry   r   __classcell__r\   s   @r#   r   r      sP   8F 8, ,&R OSPDPD)-c3hPD>FsmPDd  $ $0D 0#/ -3LL/5||178>/5||8>6<ll LL-3\\6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\*0,,1K
S&[)K
  V,K
 "#v+.	K

 #49f#45K
  V,K
 $)f#5K
 !cF!23K
 4f<
K
 c6k*K
 "'sF{!3K
 #(V"4K
 S&[)K
  ).c6k(:!K
" $CK0#K
$  V,%K
& !&c6k 2'K
( &+3;%7)K
* %*#v+$6+K
, !&c6k 2-K
. !&c6k 2/K
0 3;'1K
2 
(3K
^ -3LL/5||178>/5||8>6<ll LL-3\\6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\*0,,1K
S&[)K
  V,K
 "#v+.	K

 #49f#45K
  V,K
 $)f#5K
 !cF!23K
 4f<
K
 c6k*K
 "'sF{!3K
 #(V"4K
 S&[)K
  ).c6k(:!K
" $CK0#K
$  V,%K
& !&c6k 2'K
( &+3;%7)K
* %*#v+$6+K
, !&c6k 2-K
. !&c6k 2/K
0 3;'1K
2 
(3K
ZW# Wr"   r   c            -           e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  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   ef   deeef   deeef   deee   ef   dedef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   de	f,dZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  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   ef   deeef   deeef   deee   ef   dedef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   de	f,d Zdefd!Z xZS )"r`   r,   r.   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the TollfreeVerificationContext

        :param version: Version that contains the resource
        :param sid: The unique string to identify Tollfree Verification.
        r.   z/Tollfree/Verifications/{sid}Nr!   )rT   rU   rY   r   _uri)r[   r,   r.   r\   s      r#   rU   z$TollfreeVerificationContext.__init__}  s@     	! 3
 ;3::LT^^L	r"   r]   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )re   DELETEmethoduriheaders)r   ofra   rf   r   r[   r   s     r#   rf   z"TollfreeVerificationContext.delete  s1     ))B-}}##8G#TTr"   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)rh   r   r   N)r   r   ra   ri   r   r   s     r#   ri   z(TollfreeVerificationContext.delete_async  sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )rl   application/jsonAcceptGETr   r.   r_   )r   r   ra   rm   r   r   rY   r[   r   r-   s      r#   rm   z!TollfreeVerificationContext.fetch  s]     ))B-.--%%U		7%S+MMu%
 	
r"   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)ro   r   r   r   r   Nr.   r_   )r   r   ra   rp   r   r   rY   r   s      r#   rp   z'TollfreeVerificationContext.fetch_async  sr      ))B-.11dii 2 
 
 ,MMu%
 	
	
s   AA4A2	*A4r6   r=   rB   rC   rD   rE   rF   rG   r   rH   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   rq   c                    t        j                  i d|d|d|dt        j                  |d       d|d|dt        j                  |d	       d
|d|	d|
d|d|d|d|d|d|d|||||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d         S )rs   BusinessNameBusinessWebsiteNotificationEmailUseCaseCategoriesc                     | S r   r!   es    r#   <lambda>z4TollfreeVerificationContext.update.<locals>.<lambda>      RSr"   UseCaseSummaryProductionMessageSampleOptInImageUrlsc                     | S r   r!   r   s    r#   r   z4TollfreeVerificationContext.update.<locals>.<lambda>      Qr"   r$   MessageVolumeBusinessStreetAddressBusinessStreetAddress2BusinessCityBusinessStateProvinceRegionBusinessPostalCodeBusinessCountryAdditionalInformationBusinessContactFirstNameBusinessContactLastNameBusinessContactEmailBusinessContactPhone
EditReason!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r.   r_   )	r   r   r   mapra   ru   r   r   rY   r[   r6   r=   rB   rC   rD   rE   rF   rG   rH   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   rq   r   r   r-   s                            r#   ru   z"TollfreeVerificationContext.update  s   l yy!#3 $%7 $Y]]3F%T	
 !"2 *+D !)--0A;"O [   ()@ )*B  ./M %&: "#3  ()?!" +,G#$ ,F(>(>)+
2 ))B-"E.--&&tyytW ' 
 ,MM7u(=
 	
r"   c                   K   t        j                  i d|d|d|dt        j                  |d       d|d|dt        j                  |d	       d
|d|	d|
d|d|d|d|d|d|d|||||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d         S 7 )w)rx   r   r   r   r   c                     | S r   r!   r   s    r#   r   z:TollfreeVerificationContext.update_async.<locals>.<lambda>h  r   r"   r   r   r   c                     | S r   r!   r   s    r#   r   z:TollfreeVerificationContext.update_async.<locals>.<lambda>k  r   r"   r$   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr.   r_   )	r   r   r   r   ra   ry   r   r   rY   r   s                            r#   ry   z(TollfreeVerificationContext.update_async-  s    l yy!#3 $%7 $Y]]3F%T	
 !"2 *+D !)--0A;"O [   ()@ )*B  ./M %&: "#3  ()?!" +,G#$ ,F(>(>)+
2 ))B-"E.22tyytW 3 
 
 ,MM7u(=
 	
	
s   CC3C1*C3c                     dj                  d | j                  j                         D              }dj                  |      S )r{   r|   c              3   F   K   | ]  \  }}d j                  ||        ywr~   r   r   s      r#   r   z7TollfreeVerificationContext.__repr__.<locals>.<genexpr>  r   r   z4<Twilio.Messaging.V1.TollfreeVerificationContext {}>r   r   s     r#   r   z$TollfreeVerificationContext.__repr__  s6     ((SDNN<P<P<RSSELLWUUr"   )r   r   r    r   r   rU   r   rf   ri   r   rm   rp   r   r   r   r   r   ru   ry   r   r   r   s   @r#   r`   r`   {  s   M Mc M
U 
U
D 

3 
(
#? 
0 -3LL/5||178>/5||8>6<ll LL-3\\6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\*0,,1[
S&[)[
  V,[
 "#v+.	[

 #49f#45[
  V,[
 $)f#5[
 !cF!23[
 4f<
[
 c6k*[
 "'sF{!3[
 #(V"4[
 S&[)[
  ).c6k(:![
" $CK0#[
$  V,%[
& !&c6k 2'[
( &+3;%7)[
* %*#v+$6+[
, !&c6k 2-[
. !&c6k 2/[
0 3;'1[
2 
&3[
~ -3LL/5||178>/5||8>6<ll LL-3\\6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\*0,,1[
S&[)[
  V,[
 "#v+.	[

 #49f#45[
  V,[
 $)f#5[
 !cF!23[
 4f<
[
 c6k*[
 "'sF{!3[
 #(V"4[
 S&[)[
  ).c6k(:![
" $CK0#[
$  V,%[
& !&c6k 2'[
( &+3;%7)[
* %*#v+$6+[
, !&c6k 2-[
. !&c6k 2/[
0 3;'1[
2 
&3[
zV# Vr"   r`   c                   2    e Zd Zdeeef   defdZdefdZy)TollfreeVerificationPager-   r]   c                 .    t        | j                  |      S )zz
        Build an instance of TollfreeVerificationInstance

        :param payload: Payload response from the API
        )r   ra   )r[   r-   s     r#   get_instancez%TollfreeVerificationPage.get_instance  s     ,DMM7CCr"   c                      y)r{   z.<Twilio.Messaging.V1.TollfreeVerificationPage>r!   rb   s    r#   r   z!TollfreeVerificationPage.__repr__       @r"   N)	r   r   r    r   r   r   r   r   r   r!   r"   r#   r   r     s/    DDcN D7S D@# @r"   r   c            1       	    e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedededee   deded	ee   d
ddedede	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   def0dZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedededee   deded	ee   d
ddedede	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   de	ee
f   def0dZej                  ej                  ej                  ej                  ddfde	ee
f   de	d e
f   de	ee
f   d!e	ee
f   d"ee   d#ee   dee   fd$Zej                  ej                  ej                  ej                  ddfde	ee
f   de	d e
f   de	ee
f   d!e	ee
f   d"ee   d#ee   dee   fd%Zej                  ej                  ej                  ej                  ddfde	ee
f   de	d e
f   de	ee
f   d!e	ee
f   d"ee   d#ee   dee   fd&Zej                  ej                  ej                  ej                  ddfde	ee
f   de	d e
f   de	ee
f   d!e	ee
f   d"ee   d#ee   dee   fd'Zej                  ej                  ej                  ej                  ej                  ej                  ej                  fde	ee
f   de	d e
f   de	ee
f   d!e	ee
f   d(e	ee
f   d)e	ee
f   d#e	ee
f   defd*Zej                  ej                  ej                  ej                  ej                  ej                  ej                  fde	ee
f   de	d e
f   de	ee
f   d!e	ee
f   d(e	ee
f   d)e	ee
f   d#e	ee
f   defd+Zd,edefd-Zd,edefd.Zd/edefd0Zd/edefd1Zdefd2Z xZ S )3TollfreeVerificationListr,   c                 2    t         |   |       d| _        y)zv
        Initialize the TollfreeVerificationList

        :param version: Version that contains the resource

        z/Tollfree/VerificationsN)rT   rU   r   )r[   r,   r\   s     r#   rU   z!TollfreeVerificationList.__init__  s     	!-	r"   r6   r=   rB   rC   rD   rE   rF   rG   r   rH   rJ   r1   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   rS   r]   c           
         t        j                  i d|d|d|dt        j                  |d       d|d|dt        j                  |d	       d
|d|	d|
d|d|d|d|d|d|d|||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a_
  
        Create the TollfreeVerificationInstance

        :param business_name: The name of the business or organization using the Tollfree number.
        :param business_website: The website of the business or organization using the Tollfree number.
        :param notification_email: The email address to receive the notification about the verification result. .
        :param use_case_categories: The category of the use case for the Tollfree Number. List as many are applicable..
        :param use_case_summary: Use this to further explain how messaging is used by the business or organization.
        :param production_message_sample: An example of message content, i.e. a sample message.
        :param opt_in_image_urls: Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
        :param opt_in_type:
        :param message_volume: Estimate monthly volume of messages from the Tollfree Number.
        :param tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param customer_profile_sid: Customer's Profile Bundle BundleSid.
        :param business_street_address: The address of the business or organization using the Tollfree number.
        :param business_street_address2: The address of the business or organization using the Tollfree number.
        :param business_city: The city of the business or organization using the Tollfree number.
        :param business_state_province_region: The state/province/region of the business or organization using the Tollfree number.
        :param business_postal_code: The postal code of the business or organization using the Tollfree number.
        :param business_country: The country of the business or organization using the Tollfree number.
        :param additional_information: Additional information to be provided for verification.
        :param business_contact_first_name: The first name of the contact for the business or organization using the Tollfree number.
        :param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
        :param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
        :param business_contact_phone: The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
        :param external_reference_id: An optional external reference ID supplied by customer and echoed back on status retrieval.

        :returns: The created TollfreeVerificationInstance
        r   r   r   r   c                     | S r   r!   r   s    r#   r   z1TollfreeVerificationList.create.<locals>.<lambda>  r   r"   r   r   r   c                     | S r   r!   r   s    r#   r   z1TollfreeVerificationList.create.<locals>.<lambda>  r   r"   r$   r   TollfreePhoneNumberSidCustomerProfileSidr   r   r   r   r   r   r   r   r   r   r   ExternalReferenceIdr   r   r   r   r   r   )r   r   r   r   ra   creater   r   r[   r6   r=   rB   rC   rD   rE   rF   rG   rH   rJ   r1   r7   r8   r9   r:   r;   r<   rI   r>   r?   r@   rA   rS   r   r   r-   s                              r#   r   zTollfreeVerificationList.create  s   p yy!#3 $%7 $Y]]3F%T	
 !"2 *+D !)--0A;"O [   )*C %&: ()@ )*B  ./M  %&:!" "#3#$ *@,G+E(>(>'</
6 ))^-PQR"E.--&&tyytW ' 
 ,DMM7CCr"   c           
        K   t        j                  i d|d|d|dt        j                  |d       d|d|dt        j                  |d	       d
|d|	d|
d|d|d|d|d|d|d|||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)an
  
        Asynchronously create the TollfreeVerificationInstance

        :param business_name: The name of the business or organization using the Tollfree number.
        :param business_website: The website of the business or organization using the Tollfree number.
        :param notification_email: The email address to receive the notification about the verification result. .
        :param use_case_categories: The category of the use case for the Tollfree Number. List as many are applicable..
        :param use_case_summary: Use this to further explain how messaging is used by the business or organization.
        :param production_message_sample: An example of message content, i.e. a sample message.
        :param opt_in_image_urls: Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
        :param opt_in_type:
        :param message_volume: Estimate monthly volume of messages from the Tollfree Number.
        :param tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param customer_profile_sid: Customer's Profile Bundle BundleSid.
        :param business_street_address: The address of the business or organization using the Tollfree number.
        :param business_street_address2: The address of the business or organization using the Tollfree number.
        :param business_city: The city of the business or organization using the Tollfree number.
        :param business_state_province_region: The state/province/region of the business or organization using the Tollfree number.
        :param business_postal_code: The postal code of the business or organization using the Tollfree number.
        :param business_country: The country of the business or organization using the Tollfree number.
        :param additional_information: Additional information to be provided for verification.
        :param business_contact_first_name: The first name of the contact for the business or organization using the Tollfree number.
        :param business_contact_last_name: The last name of the contact for the business or organization using the Tollfree number.
        :param business_contact_email: The email address of the contact for the business or organization using the Tollfree number.
        :param business_contact_phone: The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
        :param external_reference_id: An optional external reference ID supplied by customer and echoed back on status retrieval.

        :returns: The created TollfreeVerificationInstance
        r   r   r   r   c                     | S r   r!   r   s    r#   r   z7TollfreeVerificationList.create_async.<locals>.<lambda>P  r   r"   r   r   r   c                     | S r   r!   r   s    r#   r   z7TollfreeVerificationList.create_async.<locals>.<lambda>S  r   r"   r$   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   N)r   r   r   r   ra   create_asyncr   r   r   s                              r#   r   z%TollfreeVerificationList.create_async  s    p yy!#3 $%7 $Y]]3F%T	
 !"2 *+D !)--0A;"O [   )*C %&: ()@ )*B  ./M  %&:!" "#3#$ *@,G+E(>(>'</
6 ))^-PQR"E.22tyytW 3 
 
 ,DMM7CC	
s   C	C(C&C(NrK   r&   include_sub_accountslimit	page_sizec                     | j                   j                  ||      }| j                  |||||d         }| j                   j                  ||d         S )aH  
        Streams TollfreeVerificationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param &quot;TollfreeVerificationInstance.Status&quot; status: The compliance status of the Tollfree Verification record.
        :param str external_reference_id: Customer supplied reference id for the Tollfree Verification record.
        :param bool include_sub_accounts: Whether to include Tollfree Verifications from sub accounts in list response.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   rJ   rK   rS   r   r   r   )ra   read_limitspagestream	r[   rJ   rK   rS   r   r   r   limitsr   s	            r#   r   zTollfreeVerificationList.streamr  s^    8 **5)<yy&?"7!5[)  
 }}##D&/::r"   c                    K   | j                   j                  ||      }| j                  |||||d          d{   }| j                   j                  ||d         S 7 #w)aW  
        Asynchronously streams TollfreeVerificationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param &quot;TollfreeVerificationInstance.Status&quot; status: The compliance status of the Tollfree Verification record.
        :param str external_reference_id: Customer supplied reference id for the Tollfree Verification record.
        :param bool include_sub_accounts: Whether to include Tollfree Verifications from sub accounts in list response.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )ra   r   
page_asyncstream_asyncr   s	            r#   r   z%TollfreeVerificationList.stream_async  sl     8 **5)<__&?"7!5[) % 
 
 }}))$w@@
s   9A!A$A!c           
      B    t        | j                  ||||||            S )a  
        Lists TollfreeVerificationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param &quot;TollfreeVerificationInstance.Status&quot; status: The compliance status of the Tollfree Verification record.
        :param str external_reference_id: Customer supplied reference id for the Tollfree Verification record.
        :param bool include_sub_accounts: Whether to include Tollfree Verifications from sub accounts in list response.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rJ   rK   rS   r   r   r   )listr   )r[   rJ   rK   rS   r   r   r   s          r#   r   zTollfreeVerificationList.list  s4    6 KK*C&;%9#  	
 		
r"   c                    K   | j                  ||||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists TollfreeVerificationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param &quot;TollfreeVerificationInstance.Status&quot; status: The compliance status of the Tollfree Verification record.
        :param str external_reference_id: Customer supplied reference id for the Tollfree Verification record.
        :param bool include_sub_accounts: Whether to include Tollfree Verifications from sub accounts in list response.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )r[   rJ   rK   rS   r   r   r   records           r#   
list_asyncz#TollfreeVerificationList.list_async  se     : '+&7&7*C&;%9# '8 ' ! !

 

 !

 

 
	
 

s0   ?2?:64
6:?6:?
page_tokenpage_numberc           
         t        j                  |||t        j                  |      |||d      }t        j                  ddi      }	d|	d<   | j                  j                  d| j                  ||	      }
t        | j                  |
      S )a.  
        Retrieve a single page of TollfreeVerificationInstance records from the API.
        Request is executed immediately

        :param tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param status: The compliance status of the Tollfree Verification record.
        :param external_reference_id: Customer supplied reference id for the Tollfree Verification record.
        :param include_sub_accounts: Whether to include Tollfree Verifications from sub accounts in list response.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of TollfreeVerificationInstance
        r   r+   r   IncludeSubAccounts	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   r   boolean_to_stringra   r   r   r   r[   rJ   rK   rS   r   r   r   r   r   r   responses              r#   r   zTollfreeVerificationList.page  s    0 yy*C '<&/&A&ABV&W'#%

 ))^-PQR.==%%diig & 
 (x@@r"   c           
      4  K   t        j                  |||t        j                  |      |||d      }t        j                  ddi      }	d|	d<   | j                  j                  d| j                  ||	       d{   }
t        | j                  |
      S 7 w)	a=  
        Asynchronously retrieve a single page of TollfreeVerificationInstance records from the API.
        Request is executed immediately

        :param tollfree_phone_number_sid: The SID of the Phone Number associated with the Tollfree Verification.
        :param status: The compliance status of the Tollfree Verification record.
        :param external_reference_id: Customer supplied reference id for the Tollfree Verification record.
        :param include_sub_accounts: Whether to include Tollfree Verifications from sub accounts in list response.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of TollfreeVerificationInstance
        r   r   r   r   r   r   r  N)r   r   r   r  ra   r   r   r   r  s              r#   r   z#TollfreeVerificationList.page_async:  s     0 yy*C '<&/&A&ABV&W'#%

 ))^-PQR.11diig 2 
 
 (x@@
s   A9B;B<B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of TollfreeVerificationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of TollfreeVerificationInstance
        r   )ra   domaintwiliorequestr   r[   r  r  s      r#   get_pagez!TollfreeVerificationList.get_pageg  s7     ==''..66ujI'x@@r"   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of TollfreeVerificationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of TollfreeVerificationInstance
        r   N)ra   r	  r
  request_asyncr   r  s      r#   get_page_asyncz'TollfreeVerificationList.get_page_asyncs  sD      --44BB5*UU'x@@ Vs   4AAAr.   c                 0    t        | j                  |      S z
        Constructs a TollfreeVerificationContext

        :param sid: The unique string to identify Tollfree Verification.
        r_   r`   ra   r[   r.   s     r#   rV   zTollfreeVerificationList.get       +4==cBBr"   c                 0    t        | j                  |      S r  r  r  s     r#   __call__z!TollfreeVerificationList.__call__  r  r"   c                      y)r{   z.<Twilio.Messaging.V1.TollfreeVerificationList>r!   rb   s    r#   r   z!TollfreeVerificationList.__repr__  r   r"   )!r   r   r    r   rU   r   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r  r  r`   rV   r  r   r   r   s   @r#   r   r     s   	. 	.. 4:<<6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\4:LL1]D]D ]D  	]D
 "#Y]D ]D $']D  9]D >]D ]D $']D $CK0]D "'sF{!3]D #(V"4]D S&[)]D  ).c6k(:!]D" $CK0#]D$  V,%]D& !&c6k 2']D( &+3;%7)]D* %*#v+$6+]D, !&c6k 2-]D. !&c6k 2/]D0  %S&[11]D2 
&3]DV 4:<<6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\4:LL1]D]D ]D  	]D
 "#Y]D ]D $']D  9]D >]D ]D $']D $CK0]D "'sF{!3]D #(V"4]D S&[)]D  ).c6k(:!]D" $CK0#]D$  V,%]D& !&c6k 2']D( &+3;%7)]D* %*#v+$6+]D, !&c6k 2-]D. !&c6k 2/]D0  %S&[11]D2 
&3]DB 9?GM||4:LL4:LL##'%;#(f#5%; ;VCD%;  %S&[1	%;
 $D&L1%; }%; C=%; 
.	/%;R 9?GM||4:LL4:LL##'%A#(f#5%A ;VCD%A  %S&[1	%A
 $D&L1%A }%A C=%A 
3	4%AR 9?GM||4:LL4:LL##'$
#(f#5$
 ;VCD$
  %S&[1	$

 $D&L1$
 }$
 C=$
 
*	+$
P 9?GM||4:LL4:LL##'%
#(f#5%
 ;VCD%
  %S&[1	%

 $D&L1%
 }%
 C=%
 
*	+%
R 9?GM||4:LL4:LL)/*0,,(.+A#(f#5+A ;VCD+A  %S&[1	+A
 $D&L1+A #v+&+A 3;'+A f%+A 
"+A^ 9?GM||4:LL4:LL)/*0,,(.+A#(f#5+A ;VCD+A  %S&[1	+A
 $D&L1+A #v+&+A 3;'+A f%+A 
"+AZ
A3 
A+C 
A
As 
A7O 
ACs C: CCC C$? C@# @r"   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r`   r   r   r!   r"   r#   <module>r"     sn     L L L 6 6 8 : 2 ' !_W#3 _WDVV/ VVr@t @&n@| n@r"   