
    piT                        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            I       
    e Zd Z G d de      Z G d de      Z G d de      Z	 	 d9d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*                  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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   d0ee	ef   d1eeef   d2eee	   ef   d3ed4ef   d5ee	ef   dd fHd6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*                  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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   d0ee	ef   d1eeef   d2eee	   ef   d3ed4ef   d5ee	ef   dd fHd7Zde	fd8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        p/opt/services/ai/voice_agent/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+   c                       e Zd ZdZy),TollfreeVerificationInstance.VettingProviderCAMPAIGN_VERIFYN)r   r   r    r.   r!   r"   r#   VettingProviderr-   *   s    +r"   r/   versionpayloadsidc                 :
   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      | _#        |j                  d       | _$        t        jJ                  |j                  d!            | _&        t        j                  |j                  d"            | _'        |j                  d#      | _(        |j                  d$      | _)        |j                  d%      | _*        |j                  d&      | _+        |j                  d'      | _,        |j                  d(      | _-        |j                  d)      | _.        |j                  d*      | _/        |j                  d+      | _0        |j                  d,      | _1        |j                  d-      | _2        |j                  d.      | _3        |j                  d/      | _4        |j                  d0      | _5        |j                  d1      | _6        |j                  d2      | _7        |j                  d3      | _8        |j                  d4      | _9        t        j                  |j                  d5            | _:        d|xs | j                  i| _;        d | _<        y )6Nr2   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tollfree_phone_numberstatusurlrejection_reason
error_codeedit_expirationedit_allowedbusiness_registration_numberbusiness_registration_authoritybusiness_registration_countrybusiness_type"business_registration_phone_numberdoing_business_asopt_in_confirmation_messagehelp_message_sampleprivacy_policy_urlterms_and_conditions_urlage_gated_contentopt_in_keywordsrejection_reasonsresource_linksexternal_reference_id
vetting_idvetting_providervetting_id_expiration)=super__init__getr2   r4   r5   r6   r   iso8601_datetimer7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   integerrS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   	_solution_context)selfr0   r1   r2   	__class__s       r#   ri   z%TollfreeVerificationInstance.__init__e   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
& 5<KK@W4X"GN{{H
 #*++e"4/6{{;M/N)4)<)<W[[=V)W3>3O3OKK)*4
 -4KK,G;B;;*<
) ?Fkk-?
, =DKK+=
* -4KK,HAH0B
/ 18<O0P:A++);
( 3:++>S2T 18=Q1R7>{{&8
% 29=P1Q4;KK@Q4RDKKKE
 <C;;GW;X4;KK@W4X")0\)B KK*+ 	 :E9U9UKK/0:
"
 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
        r2   r2   )rn   TollfreeVerificationContext_versionrm   ro   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
        )rw   deleterv   s    r#   rz   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)rw   delete_asyncrv   s    r#   r}   z)TollfreeVerificationInstance.delete_async   s!      [[--////   '%'c                 6    | j                   j                         S )u
        Fetch the TollfreeVerificationInstance


        :returns: The fetched TollfreeVerificationInstance
        )rw   fetchrv   s    r#   r   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)rw   fetch_asyncrv   s    r#   r   z(TollfreeVerificationInstance.fetch_async  s!      [[,,....r~   r:   rA   rF   rG   rH   rI   rJ   rK   r   rL   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   edit_reasonrV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   r-   re   c$                     | j                   j                  d$i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|!d"|"d#|#S )%d  
        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'.
        :param business_registration_number: A legaly recognized business registration number
        :param business_registration_authority: The organizational authority for business registrations
        :param business_registration_country: Country business is registered in
        :param business_type: The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
        :param business_registration_phone_number: The E.164 formatted number associated with the business.
        :param doing_business_as: Trade name, sub entity, or downstream business name of business being submitted for verification
        :param opt_in_confirmation_message: The confirmation message sent to users when they opt in to receive messages.
        :param help_message_sample: A sample help message provided to users.
        :param privacy_policy_url: The URL to the privacy policy for the business or organization.
        :param terms_and_conditions_url: The URL to the terms and conditions for the business or organization.
        :param age_gated_content: Indicates if the content is age gated.
        :param opt_in_keywords: List of keywords that users can text in to opt in to receive messages.
        :param vetting_provider:
        :param vetting_id: The unique ID of the vetting

        :returns: The updated TollfreeVerificationInstance
        r:   rA   rF   rG   rH   rI   rJ   rK   rL   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   r   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   re   r!   )rw   update$ro   r:   rA   rF   rG   rH   rI   rJ   rK   rL   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   r   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   re   s$                                       r#   r   z#TollfreeVerificationInstance.update
  s   f "t{{!! $
'$
-$
  2$
 !4	$

 .$
 '@$
 0$
 $$
 *$
 %<$
 &>$
 ($
 ,J$
 "6$
 .$
  $:!$
" )D#$
$ (B%$
& $:'$
( $:)$
* $+$
, *F-$
. -L/$
0 +H1$
2 (3$
4 0R5$
6 07$
8 )D9$
: !4;$
<  2=$
> &>?$
@ 0A$
B ,C$
D .E$
F "G$
 $	
r"   c$                 $  K    | j                   j                  d%i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|!d"|"d#|# d${   S 7 w)&~  
        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'.
        :param business_registration_number: A legaly recognized business registration number
        :param business_registration_authority: The organizational authority for business registrations
        :param business_registration_country: Country business is registered in
        :param business_type: The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
        :param business_registration_phone_number: The E.164 formatted number associated with the business.
        :param doing_business_as: Trade name, sub entity, or downstream business name of business being submitted for verification
        :param opt_in_confirmation_message: The confirmation message sent to users when they opt in to receive messages.
        :param help_message_sample: A sample help message provided to users.
        :param privacy_policy_url: The URL to the privacy policy for the business or organization.
        :param terms_and_conditions_url: The URL to the terms and conditions for the business or organization.
        :param age_gated_content: Indicates if the content is age gated.
        :param opt_in_keywords: List of keywords that users can text in to opt in to receive messages.
        :param vetting_provider:
        :param vetting_id: The unique ID of the vetting

        :returns: The updated TollfreeVerificationInstance
        r:   rA   rF   rG   rH   rI   rJ   rK   rL   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   r   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   re   Nr!   )rw   update_asyncr   s$                                       r#   r   z)TollfreeVerificationInstance.update_async  s    f .T[[-- $
'$
-$
  2$
 !4	$

 .$
 '@$
 0$
 $$
 *$
 %<$
 &>$
 ($
 ,J$
 "6$
 .$
  $:!$
" )D#$
$ (B%$
& $:'$
( $:)$
* $+$
, *F-$
. -L/$
0 +H1$
2 (3$
4 0R5$
6 07$
8 )D9$
: !4;$
<  2=$
> &>?$
@ 0A$
B ,C$
D .E$
F "G$
 $
 $	
 $
s   BB	B
B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>       SDAq7>>!Q/S   !z5<Twilio.Messaging.V1.TollfreeVerificationInstance {}>joinrm   itemsr   ro   contexts     r#   __repr__z%TollfreeVerificationInstance.__repr__  s6     ((SDNN<P<P<RSSFMMgVVr"   N)rq   rt   )rq   r   )r   r   r    objectr$   r+   r/   r   r   strr   r   ri   propertyrw   boolrz   r}   r   r   r   unsetr   r   r   r   r   __classcell__rp   s   @r#   r   r      s   8F 8, ,,& ,6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,,;A<<>Dll<BLL,2LLAG06:@,,28,,177=||174:LL LL)/Qw
S&[)w
  V,w
 "#v+.	w

 #49f#45w
  V,w
 $)f#5w
 !cF!23w
 4f<
w
 c6k*w
 "'sF{!3w
 #(V"4w
 S&[)w
  ).c6k(:!w
" $CK0#w
$  V,%w
& !&c6k 2'w
( &+3;%7)w
* %*#v+$6+w
, !&c6k 2-w
. !&c6k 2/w
0 3;'1w
2 ',CK&83w
4 */sF{);5w
6 (-S&['97w
8 S&[)9w
: -2#v+,>;w
< !f-=w
> &+3;%7?w
@ #3;/Aw
B "#v+.Cw
D #(V"4Ew
F !v.Gw
H tCy&01Iw
J  :FB
Kw
P #v+&Qw
R 
(Sw
v -3LL/5||178>/5||8>6<ll LL-3\\6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\*0,,;A<<>Dll<BLL,2LLAG06:@,,28,,177=||174:LL LL)/Qw
S&[)w
  V,w
 "#v+.	w

 #49f#45w
  V,w
 $)f#5w
 !cF!23w
 4f<
w
 c6k*w
 "'sF{!3w
 #(V"4w
 S&[)w
  ).c6k(:!w
" $CK0#w
$  V,%w
& !&c6k 2'w
( &+3;%7)w
* %*#v+$6+w
, !&c6k 2-w
. !&c6k 2/w
0 3;'1w
2 ',CK&83w
4 */sF{);5w
6 (-S&['97w
8 S&[)9w
: -2#v+,>;w
< !f-=w
> &+3;%7?w
@ #3;/Aw
B "#v+.Cw
D #(V"4Ew
F !v.Gw
H tCy&01Iw
J  :FB
Kw
P #v+&Qw
R 
(Sw
rW# Wr"   r   c            I       |
    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                  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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   ef   d+ed,ef   d-eeef   de	fHd.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                  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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   ef   d+ed,ef   d-eeef   de	fHd/Zdefd0Z xZS )1rt   r0   r2   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.
        r2   z/Tollfree/Verifications/{sid}Nr!   )rh   ri   rm   r   _uri)ro   r0   r2   rp   s      r#   ri   z$TollfreeVerificationContext.__init__  s@     	! 3
 ;3::LT^^L	r"   rq   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )ry   DELETEmethoduriheaders)r   ofru   rz   r   ro   r   s     r#   rz   z"TollfreeVerificationContext.delete  s1     ))B-}}##8G#TTr"   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)r|   r   r   N)r   r   ru   r}   r   r   s     r#   r}   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 )r   application/jsonAcceptGETr   r2   rs   )r   r   ru   r   r   r   rm   ro   r   r1   s      r#   r   z!TollfreeVerificationContext.fetch1  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)r   r   r   r   r   Nr2   rs   )r   r   ru   r   r   r   rm   r   s      r#   r   z'TollfreeVerificationContext.fetch_asyncE  sr      ))B-.11dii 2 
 
 ,MMu%
 	
	
s   AA4A2	*A4r:   rA   rF   rG   rH   rI   rJ   rK   r   rL   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   r   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   r-   re   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|i d|d|d|d|d|d|d|d|d|d|d|d|d |d!|d"t        j                  |       d#t        j                  |!d$       d%|"d&|#i      }$t        j                  i       }%d'|%d(<   d)|%d*<   | j
                  j                  d+| j                  |$|%,      }&t        | j
                  |&| j                  d-   .      S )/r   BusinessNameBusinessWebsiteNotificationEmailUseCaseCategoriesc                     | S r   r!   es    r#   <lambda>z4TollfreeVerificationContext.update.<locals>.<lambda>      RS r"   UseCaseSummaryProductionMessageSampleOptInImageUrlsc                     | S r   r!   r   s    r#   r   z4TollfreeVerificationContext.update.<locals>.<lambda>      Q r"   r$   MessageVolumeBusinessStreetAddressBusinessStreetAddress2BusinessCityBusinessStateProvinceRegionBusinessPostalCodeBusinessCountryAdditionalInformationBusinessContactFirstNameBusinessContactLastNameBusinessContactEmailBusinessContactPhone
EditReasonBusinessRegistrationNumberBusinessRegistrationAuthorityBusinessRegistrationCountryBusinessTypeBusinessRegistrationPhoneNumberDoingBusinessAsOptInConfirmationMessageHelpMessageSamplePrivacyPolicyUrlTermsAndConditionsUrlAgeGatedContentOptInKeywordsc                     | S r   r!   r   s    r#   r   z4TollfreeVerificationContext.update.<locals>.<lambda>      ! r"   r/   	VettingId!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r2   rs   )
r   r   r   mapboolean_to_stringru   r   r   r   rm   'ro   r:   rA   rF   rG   rH   rI   rJ   rK   rL   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   r   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   re   r   r   r1   s'                                          r#   r   z"TollfreeVerificationContext.update[  st   h yy$$!#3$ $%7$ $Y]]3F%T	$
 !"2$ *+D$ !)--0A;"O$ [$  $ ()@$ )*B$ $ ./M$ %&:$ "#3$  ()?!$" +,G#$$ *+E%$& '(>'$( '(>)$* k+$, -.J-$. 01P/$0 ./L1$2 3$4 23U5$6 "#47$8 +,G9$: $%8;$< #$6=$> ()A?$@ "9#>#>?P#QA$B  !LC$D "#3E$F ZG$&
N ))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|i d|d|d|d|d|d|d|d|d|d|d|d|d |d!|d"t        j                  |       d#t        j                  |!d$       d%|"d&|#i      }$t        j                  i       }%d'|%d(<   d)|%d*<   | j
                  j                  d+| j                  |$|%,       d-{   }&t        | j
                  |&| j                  d.   /      S 7 )w)0r   r   r   r   r   c                     | S r   r!   r   s    r#   r   z:TollfreeVerificationContext.update_async.<locals>.<lambda>=  r   r"   r   r   r   c                     | S r   r!   r   s    r#   r   z:TollfreeVerificationContext.update_async.<locals>.<lambda>@  r   r"   r$   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   c                     | S r   r!   r   s    r#   r   z:TollfreeVerificationContext.update_async.<locals>.<lambda>Z  r   r"   r/   r   r   r   r   r   r   r   Nr2   rs   )
r   r   r   r   r   ru   r   r   r   rm   r   s'                                          r#   r   z(TollfreeVerificationContext.update_async  s    h yy$$!#3$ $%7$ $Y]]3F%T	$
 !"2$ *+D$ !)--0A;"O$ [$  $ ()@$ )*B$ $ ./M$ %&:$ "#3$  ()?!$" +,G#$$ *+E%$& '(>'$( '(>)$* k+$, -.J-$. 01P/$0 ./L1$2 3$4 23U5$6 "#47$8 +,G9$: $%8;$< #$6=$> ()A?$@ "9#>#>?P#QA$B  !LC$D "#3E$F ZG$&
N ))B-"E.22tyytW 3 
 
 ,MM7u(=
 	
	
s   DE!E"*E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>s  r   r   z4<Twilio.Messaging.V1.TollfreeVerificationContext {}>r   r   s     r#   r   z$TollfreeVerificationContext.__repr__m  s6     ((SDNN<P<P<RSSELLWUUr"   )r   r   r    r   r   ri   r   rz   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   s   @r#   rt   rt     s9   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,,;A<<>Dll<BLL,2LLAG06:@,,28,,177=||174:LL LL)/QG
S&[)G
  V,G
 "#v+.	G

 #49f#45G
  V,G
 $)f#5G
 !cF!23G
 4f<
G
 c6k*G
 "'sF{!3G
 #(V"4G
 S&[)G
  ).c6k(:!G
" $CK0#G
$  V,%G
& !&c6k 2'G
( &+3;%7)G
* %*#v+$6+G
, !&c6k 2-G
. !&c6k 2/G
0 3;'1G
2 ',CK&83G
4 */sF{);5G
6 (-S&['97G
8 S&[)9G
: -2#v+,>;G
< !f-=G
> &+3;%7?G
@ #3;/AG
B "#v+.CG
D #(V"4EG
F !v.GG
H tCy&01IG
J  :FB
KG
P #v+&QG
R 
&SG
V -3LL/5||178>/5||8>6<ll LL-3\\6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\*0,,;A<<>Dll<BLL,2LLAG06:@,,28,,177=||174:LL LL)/QG
S&[)G
  V,G
 "#v+.	G

 #49f#45G
  V,G
 $)f#5G
 !cF!23G
 4f<
G
 c6k*G
 "'sF{!3G
 #(V"4G
 S&[)G
  ).c6k(:!G
" $CK0#G
$  V,%G
& !&c6k 2'G
( &+3;%7)G
* %*#v+$6+G
, !&c6k 2-G
. !&c6k 2/G
0 3;'1G
2 ',CK&83G
4 */sF{);5G
6 (-S&['97G
8 S&[)9G
: -2#v+,>;G
< !f-=G
> &+3;%7?G
@ #3;/AG
B "#v+.CG
D #(V"4EG
F !v.GG
H tCy&01IG
J  :FB
KG
P #v+&QG
R 
&SG
RV# Vr"   rt   c                   2    e Zd Zdeeef   defdZdefdZy)TollfreeVerificationPager1   rq   c                 .    t        | j                  |      S )zz
        Build an instance of TollfreeVerificationInstance

        :param payload: Payload response from the API
        )r   ru   )ro   r1   s     r#   get_instancez%TollfreeVerificationPage.get_instancey  s     ,DMM7CCr"   c                      y)r   z.<Twilio.Messaging.V1.TollfreeVerificationPage>r!   rv   s    r#   r   z!TollfreeVerificationPage.__repr__       @r"   N)	r   r   r    r   r   r   r   r   r   r!   r"   r#   r   r   w  s/    DDcN D7S D@# @r"   r   c            M           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                  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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	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   e
f   d'e	d(e
f   d)e	ee
f   d*efLd+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                  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	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   e
f   d'e	d(e
f   d)e	ee
f   d*efLd,Zej                  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   d0e	ee
f   d1e	ee   e
f   d2ee   d3ee   d*ee   fd4Zej                  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   d0e	ee
f   d1e	ee   e
f   d2ee   d3ee   d*ee   fd5Zej                  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   d0e	ee
f   d1e	ee   e
f   d2ee   d3ee   d*ee   fd6Zej                  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   d0e	ee
f   d1e	ee   e
f   d2ee   d3ee   d*ee   fd7Zej                  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   d0e	ee
f   d1e	ee   e
f   d8e	ee
f   d9e	ee
f   d3e	ee
f   d*efd:Zej                  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   d0e	ee
f   d1e	ee   e
f   d8e	ee
f   d9e	ee
f   d3e	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d@Zd?ed*efdAZd*efdBZ xZ S )CTollfreeVerificationListr0   c                 2    t         |   |       d| _        y)zv
        Initialize the TollfreeVerificationList

        :param version: Version that contains the resource

        z/Tollfree/VerificationsN)rh   ri   r   )ro   r0   rp   s     r#   ri   z!TollfreeVerificationList.__init__  s     	!-	r"   r:   rA   rF   rG   rH   rI   rJ   rK   r   rL   rN   r5   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   rd   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   r-   re   rq   c&                 l   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|i d|d|d|d|d|d|d|d|d|d|d|d|d |d!|d"| d#|!d$t        j                  |"      t        j                  |#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.
        :param business_registration_number: A legally recognized business registration number
        :param business_registration_authority: The organizational authority for business registrations
        :param business_registration_country: Country business is registered in
        :param business_type: The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
        :param business_registration_phone_number: The E.164 formatted number associated with the business.
        :param doing_business_as: Trade name, sub entity, or downstream business name of business being submitted for verification
        :param opt_in_confirmation_message: The confirmation message sent to users when they opt in to receive messages.
        :param help_message_sample: A sample help message provided to users.
        :param privacy_policy_url: The URL to the privacy policy for the business or organization.
        :param terms_and_conditions_url: The URL to the terms and conditions for the business or organization.
        :param age_gated_content: Indicates if the content is age gated.
        :param opt_in_keywords: List of keywords that users can text in to opt in to receive messages.
        :param vetting_provider:
        :param vetting_id: The unique ID of the vetting

        :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   r   c                     | S r   r!   r   s    r#   r   z1TollfreeVerificationList.create.<locals>.<lambda>  r   r"   r   r/   r   r   r   r   r   r   r   )	r   r   r   r   r   ru   creater   r   )ro   r:   rA   rF   rG   rH   rI   rJ   rK   rL   rN   r5   r;   r<   r=   r>   r?   r@   rM   rB   rC   rD   rE   rd   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rf   re   r   r   r1   s)                                            r#   r  zTollfreeVerificationList.create  sq   l yy&&!#3& $%7& $Y]]3F%T	&
 !"2& *+D& !)--0A;"O& [&  & )*C& %&:& ()@& )*B& & ./M&  %&:!&" "#3#&$ ()?%&& +,G'&( *+E)&* '(>+&, '(>-&. &'</&0 -.J1&2 01P3&4 ./L5&6 7&8 23U9&: "#4;&< +,G=&> $%8?&@ #$6A&B ()AC&D "9#>#>?P#QE&F "+!L#3'K&(
R ))^-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|i d|d|d|d|d|d|d|d|d|d|d|d|d |d!|d"| d#|!d$t        j                  |"      t        j                  |#d%       |$|%d&      }&t        j                  d'd(i      }'d(|'d'<   d)|'d*<   | j
                  j                  d+| j                  |&|',       d-{   }(t        | j
                  |(      S 7 w).a  
        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.
        :param business_registration_number: A legally recognized business registration number
        :param business_registration_authority: The organizational authority for business registrations
        :param business_registration_country: Country business is registered in
        :param business_type: The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
        :param business_registration_phone_number: The E.164 formatted number associated with the business.
        :param doing_business_as: Trade name, sub entity, or downstream business name of business being submitted for verification
        :param opt_in_confirmation_message: The confirmation message sent to users when they opt in to receive messages.
        :param help_message_sample: A sample help message provided to users.
        :param privacy_policy_url: The URL to the privacy policy for the business or organization.
        :param terms_and_conditions_url: The URL to the terms and conditions for the business or organization.
        :param age_gated_content: Indicates if the content is age gated.
        :param opt_in_keywords: List of keywords that users can text in to opt in to receive messages.
        :param vetting_provider:
        :param vetting_id: The unique ID of the vetting

        :returns: The created TollfreeVerificationInstance
        r   r   r   r   c                     | S r   r!   r   s    r#   r   z7TollfreeVerificationList.create_async.<locals>.<lambda>}  r   r"   r   r   r   c                     | S r   r!   r   s    r#   r   z7TollfreeVerificationList.create_async.<locals>.<lambda>  r   r"   r$   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   c                     | S r   r!   r   s    r#   r   z7TollfreeVerificationList.create_async.<locals>.<lambda>  r   r"   r  r   r   r   r   r   r   N)	r   r   r   r   r   ru   create_asyncr   r   r  s)                                            r#   r  z%TollfreeVerificationList.create_async"  s    l yy&&!#3& $%7& $Y]]3F%T	&
 !"2& *+D& !)--0A;"O& [&  & )*C& %&:& ()@& )*B& & ./M&  %&:!&" "#3#&$ ()?%&& +,G'&( *+E)&* '(>+&, '(>-&. &'</&0 -.J1&2 01P3&4 ./L5&6 7&8 23U9&: "#4;&< +,G=&> $%8?&@ #$6A&B ()AC&D "9#>#>?P#QE&F "+!L#3'K&(
R ))^-PQR"E.22tyytW 3 
 
 ,DMM7CC	
s   D#E%E &ENrP   r&   include_sub_accountsr6   limit	page_sizec           	          | j                   j                  ||      }| j                  ||||||d         }	| j                   j                  |	|d         S )a  
        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 List[str] trust_product_sid: The trust product sids / tollfree bundle sids of tollfree verifications
        :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  rN   rP   rd   r  r6   r  r  )ru   read_limitspagestream
ro   rN   rP   rd   r  r6   r  r  limitsr  s
             r#   r  zTollfreeVerificationList.stream  sa    < **5)<yy&?"7!5/[)  
 }}##D&/::r"   c           	         K   | j                   j                  ||      }| j                  ||||||d          d{   }	| j                   j                  |	|d         S 7 #w)a  
        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 List[str] trust_product_sid: The trust product sids / tollfree bundle sids of tollfree verifications
        :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  )ru   r  
page_asyncstream_asyncr  s
             r#   r  z%TollfreeVerificationList.stream_async  so     < **5)<__&?"7!5/[) % 
 
 }}))$w@@
s   :A"A $A"c                 D    t        | j                  |||||||            S )aY  
        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 List[str] trust_product_sid: The trust product sids / tollfree bundle sids of tollfree verifications
        :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
        rN   rP   rd   r  r6   r  r  )listr  )ro   rN   rP   rd   r  r6   r  r  s           r#   r  zTollfreeVerificationList.list  s7    : KK*C&;%9"3#  

 
	
r"   c           	         K   | j                  |||||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)ah  
        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 List[str] trust_product_sid: The trust product sids / tollfree bundle sids of tollfree verifications
        :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  )	ro   rN   rP   rd   r  r6   r  r  records	            r#   
list_asyncz#TollfreeVerificationList.list_async*  sc     > '+&7&7*C&;%9"3# '8 ' !
 
 !
 
 	
 
s4   A 3A ;75
7;A 7;A 
page_tokenpage_numberc	                 D   t        j                  |||t        j                  |      t        j                  |d       |||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 trust_product_sid: The trust product sids / tollfree bundle sids of tollfree verifications
        :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
        c                     | S r   r!   r   s    r#   r   z/TollfreeVerificationList.page.<locals>.<lambda>t      a r"   r   r+   r  IncludeSubAccountsTrustProductSid	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )	r   r   r   r   r   ru   r  r   r   ro   rN   rP   rd   r  r6   r  r   r  r   r   responses               r#   r  zTollfreeVerificationList.pageT  s    4 yy*C '<&/&A&ABV&W#,==1BK#P'#%	
 ))^-PQR.==%%diig & 
 (x@@r"   c	                 `  K   t        j                  |||t        j                  |      t        j                  |d       |||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 trust_product_sid: The trust product sids / tollfree bundle sids of tollfree verifications
        :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
        c                     | S r   r!   r   s    r#   r   z5TollfreeVerificationList.page_async.<locals>.<lambda>  r#  r"   r$  r   r   r   r   r   r)  N)	r   r   r   r   r   ru   r  r   r   r+  s               r#   r  z#TollfreeVerificationList.page_async  s     4 yy*C '<&/&A&ABV&W#,==1BK#P'#%	
 ))^-PQR.11diig 2 
 
 (x@@
s   BB.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   )ru   domaintwiliorequestr   ro   r/  r,  s      r#   get_pagez!TollfreeVerificationList.get_page  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)ru   r1  r2  request_asyncr   r4  s      r#   get_page_asyncz'TollfreeVerificationList.get_page_async  sD      --44BB5*UU'x@@ Vs   4AAAr2   c                 0    t        | j                  |      S z
        Constructs a TollfreeVerificationContext

        :param sid: The unique string to identify Tollfree Verification.
        rs   rt   ru   ro   r2   s     r#   rj   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!   rv   s    r#   r   z!TollfreeVerificationList.__repr__  r   r"   )!r   r   r    r   ri   r   r   r   r   r   r   r   r   r  r  r   intr	   r  r
   r  r  r  r   r  r  r5  r8  rt   rj   r?  r   r   r   s   @r#   r   r     s   	. 	.. 4:<<6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\4:LL;A<<>Dll<BLL,2LLAG06:@,,28,,177=||174:LL LL)/QIDID ID  	ID
 "#YID ID $'ID  9ID >ID ID $'ID $CK0ID "'sF{!3ID #(V"4ID S&[)ID  ).c6k(:!ID" $CK0#ID$  V,%ID& !&c6k 2'ID( &+3;%7)ID* %*#v+$6+ID, !&c6k 2-ID. !&c6k 2/ID0  %S&[11ID2 ',CK&83ID4 */sF{);5ID6 (-S&['97ID8 S&[)9ID: -2#v+,>;ID< !f-=ID> &+3;%7?ID@ #3;/AIDB "#v+.CIDD #(V"4EIDF !v.GIDH tCy&01IIDJ  :FB
KIDP #v+&QIDR 
&SIDn 4:<<6<ll7=||,2LL=C\\39<</5||5;\\:@,,9?5;\\5;\\4:LL;A<<>Dll<BLL,2LLAG06:@,,28,,177=||174:LL LL)/QIDID ID  	ID
 "#YID ID $'ID  9ID >ID ID $'ID $CK0ID "'sF{!3ID #(V"4ID S&[)ID  ).c6k(:!ID" $CK0#ID$  V,%ID& !&c6k 2'ID( &+3;%7)ID* %*#v+$6+ID, !&c6k 2-ID. !&c6k 2/ID0  %S&[11ID2 ',CK&83ID4 */sF{);5ID6 (-S&['97ID8 S&[)9ID: -2#v+,>;ID< !f-=ID> &+3;%7?ID@ #3;/AIDB "#v+.CIDD #(V"4EIDF !v.GIDH tCy&01IIDJ  :FB
KIDP #v+&QIDR 
&SIDZ 9?GM||4:LL4:LL6<ll##'(;#(f#5(; ;VCD(;  %S&[1	(;
 $D&L1(; !cF!23(; }(; C=(; 
.	/(;X 9?GM||4:LL4:LL6<ll##'(A#(f#5(A ;VCD(A  %S&[1	(A
 $D&L1(A !cF!23(A }(A C=(A 
3	4(AX 9?GM||4:LL4:LL6<ll##''
#(f#5'
 ;VCD'
  %S&[1	'

 $D&L1'
 !cF!23'
 }'
 C='
 
*	+'
V 9?GM||4:LL4:LL6<ll##'(
#(f#5(
 ;VCD(
  %S&[1	(

 $D&L1(
 !cF!23(
 }(
 C=(
 
*	+(
X 9?GM||4:LL4:LL6<ll)/*0,,(..A#(f#5.A ;VCD.A  %S&[1	.A
 $D&L1.A !cF!23.A #v+&.A 3;'.A f%.A 
".Ad 9?GM||4:LL4:LL6<ll)/*0,,(..A#(f#5.A ;VCD.A  %S&[1	.A
 $D&L1.A !cF!23.A #v+&.A 3;'.A f%.A 
".A`
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   rt   r   r   r!   r"   r#   <module>rJ     sn     L L L 6 6 8 : 2 ' !jW#3 jWZnV/ nVb@t @&X	@| X	@r"   