o
    /i                     @   s   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 deZG dd deZG dd deZG dd deZdS )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                +       s<  e Zd ZG dd deZG dd deZ	 	d.dedeee	f de
e f fd	d
Zed/ddZd0ddZd0d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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d f*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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d f*d*d+Zdefd,d-Z  ZS )1TollfreeVerificationInstancec                   @   s    e Zd ZdZdZdZdZdZdS )&TollfreeVerificationInstance.OptInTypeVERBALWEB_FORM
PAPER_FORMVIA_TEXTMOBILE_QR_CODEN)__name__
__module____qualname__r   r   r   r   r    r   r   i/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/messaging/v1/tollfree_verification.py	OptInType   s    r   c                   @   s   e Zd ZdZdZdZdZdS )#TollfreeVerificationInstance.StatusPENDING_REVIEW	IN_REVIEWTWILIO_APPROVEDTWILIO_REJECTEDN)r   r   r   r    r!   r"   r#   r   r   r   r   Status"   s
    r$   Nversionpayloadsidc                    s  t  | |d| _|d| _|d| _|d| _t|d| _	t|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| _#t$|d | _%t|d!| _&|d"| _'|d#| _(d|p| ji| _)d | _*d S )$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resource_linksexternal_reference_id)+super__init__getr'   r(   r)   r*   r
   iso8601_datetimer+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   integerrF   rG   rH   rI   	_solution_context)selfr%   r&   r'   	__class__r   r   rK   N   s   

z%TollfreeVerificationInstance.__init__returnTollfreeVerificationContextc                 C   s&   | j du rt| j| jd 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
        Nr'   r'   )rP   rU   _versionrO   rQ   r   r   r   _proxy   s   
z#TollfreeVerificationInstance._proxyc                 C   s
   | j  S )u
        Fetch the TollfreeVerificationInstance


        :returns: The fetched TollfreeVerificationInstance
        )rY   fetchrX   r   r   r   r[      s   
z"TollfreeVerificationInstance.fetchc                    s   | j  I dH S )
        Asynchronous coroutine to fetch the TollfreeVerificationInstance


        :returns: The fetched TollfreeVerificationInstance
        N)rY   fetch_asyncrX   r   r   r   r]      s   z(TollfreeVerificationInstance.fetch_asyncr.   r5   r:   r;   r<   r=   r>   r?   r   r@   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   c                 C   s   | j jdi d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|S )	  
        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 phone number of the contact for the business or organization using the Tollfree number.

        :returns: The updated TollfreeVerificationInstance
        r.   r5   r:   r;   r<   r=   r>   r?   r@   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   Nr   )rY   updaterQ   r.   r5   r:   r;   r<   r=   r>   r?   r@   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   r   r   r   r_      sR   3	
z#TollfreeVerificationInstance.updatec                    s   | j jdi d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|d|d|d|d|I dH S ),	  
        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 phone number of the contact for the business or organization using the Tollfree number.

        :returns: The updated TollfreeVerificationInstance
        r.   r5   r:   r;   r<   r=   r>   r?   r@   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   Nr   )rY   update_asyncr`   r   r   r   rb     sT   3	

z)TollfreeVerificationInstance.update_asyncc                 C   $   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s        | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>W      z8TollfreeVerificationInstance.__repr__.<locals>.<genexpr>z5<Twilio.Messaging.V1.TollfreeVerificationInstance {}>joinrO   itemsri   rQ   contextr   r   r   __repr__Q     
z%TollfreeVerificationInstance.__repr__N)rT   rU   )rT   r   )r   r   r   objectr   r$   r   r   strr   r   rK   propertyrY   r[   r]   r   unsetr   r   r_   rb   ru   __classcell__r   r   rR   r   r      s&   '
N

	




	












L




	












Jr   c                +       s   e Zd Zdedef fddZdefddZdef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
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f*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
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f*d!d"Zdefd#d$Z  ZS )%rU   r%   r'   c                    s.   t  | d|i| _djdi | j| _dS )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   )rJ   rK   rO   ri   _uri)rQ   r%   r'   rR   r   r   rK   \  s   z$TollfreeVerificationContext.__init__rT   c                 C   s(   | j jd| jd}t| j || jd dS )rZ   GETmethodurir'   rV   )rW   r[   r}   r   rO   rQ   r&   r   r   r   r[   k  s   z!TollfreeVerificationContext.fetchc                    s0   | j jd| jdI dH }t| j || jd dS )r\   r~   r   Nr'   rV   )rW   r]   r}   r   rO   r   r   r   r   r]   ~  s   z'TollfreeVerificationContext.fetch_asyncr.   r5   r:   r;   r<   r=   r>   r?   r   r@   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   c              	   C   s   t i d|d|d|dt|dd d|d|d	t|d
d d|d|	d|
d|d|d|d|d|d|d||||d}| jjd| j|d}t| j|| jd dS )r^   BusinessNameBusinessWebsiteNotificationEmailUseCaseCategoriesc                 S      | S rw   r   er   r   r   <lambda>      z4TollfreeVerificationContext.update.<locals>.<lambda>UseCaseSummaryProductionMessageSampleOptInImageUrlsc                 S   r   rw   r   r   r   r   r   r     r   r   MessageVolumeBusinessStreetAddressBusinessStreetAddress2BusinessCityBusinessStateProvinceRegionBusinessPostalCodeBusinessCountryAdditionalInformationBusinessContactFirstNameBusinessContactLastNameBusinessContactEmailBusinessContactPhonePOSTr   r   datar'   rV   )	r   ofr   maprW   r_   r}   r   rO   rQ   r.   r5   r:   r;   r<   r=   r>   r?   r@   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   r   r&   r   r   r   r_     sb   3	
z"TollfreeVerificationContext.updatec              	      s   t i d|d|d|dt|dd d|d|d	t|d
d d|d|	d|
d|d|d|d|d|d|d||||d}| jjd| j|dI dH }t| j|| jd dS )ra   r   r   r   r   c                 S   r   rw   r   r   r   r   r   r     r   z:TollfreeVerificationContext.update_async.<locals>.<lambda>r   r   r   c                 S   r   rw   r   r   r   r   r   r   "  r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr'   rV   )	r   r   r   r   rW   rb   r}   r   rO   r   r   r   r   rb     sd   3	
z(TollfreeVerificationContext.update_asyncc                 C   rc   )rd   re   c                 s   rf   rg   rh   rj   r   r   r   rn   C  ro   z7TollfreeVerificationContext.__repr__.<locals>.<genexpr>z4<Twilio.Messaging.V1.TollfreeVerificationContext {}>rp   rs   r   r   r   ru   =  rv   z$TollfreeVerificationContext.__repr__)r   r   r   r   ry   rK   r   r[   r]   r   r{   r   rx   r   r_   rb   ru   r|   r   r   rR   r   rU   [  s   




	












X




	












VrU   c                   @   s4   e Zd Zdeeef defddZdefddZdS )TollfreeVerificationPager&   rT   c                 C   s   t | j|S )zz
        Build an instance of TollfreeVerificationInstance

        :param payload: Payload response from the API
        )r   rW   r   r   r   r   get_instanceH  s   z%TollfreeVerificationPage.get_instancec                 C      dS )rd   z.<Twilio.Messaging.V1.TollfreeVerificationPage>r   rX   r   r   r   ru   P     z!TollfreeVerificationPage.__repr__N)	r   r   r   r   ry   r   r   r   ru   r   r   r   r   r   G  s    r   c                1       sx  e Zd Zdef f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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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d Zejejd!d!fde	ee
f d"e	d#e
f d$ee d%ee dee f
d&d'Zejejd!d!fde	ee
f d"e	d#e
f d$ee d%ee dee f
d(d)Zejejd!d!fde	ee
f d"e	d#e
f d$ee d%ee dee f
d*d+Zejejd!d!fde	ee
f d"e	d#e
f d$ee d%ee dee f
d,d-Z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fd0d1Z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fd2d3Zd4edefd5d6Zd4edefd7d8Zd9edefd:d;Zd9edefd<d=Zdefd>d?Z  ZS )@TollfreeVerificationListr%   c                    s   t  | d| _dS )zv
        Initialize the TollfreeVerificationList

        :param version: Version that contains the resource

        z/Tollfree/VerificationsN)rJ   rK   r}   )rQ   r%   rR   r   r   rK   Z  s   
z!TollfreeVerificationList.__init__r.   r5   r:   r;   r<   r=   r>   r?   r   r@   rB   r)   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   rI   rT   c              
   C   s   t i d|d|d|dt|dd d|d|d	t|d
d d|d|	d|
d|d|d|d|d|d|d|||||||d}| jjd| j|d}t| j|S )aO
  
        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 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   rw   r   r   r   r   r   r     r   z1TollfreeVerificationList.create.<locals>.<lambda>r   r   r   c                 S   r   rw   r   r   r   r   r   r     r   r   r   TollfreePhoneNumberSidCustomerProfileSidr   r   r   r   r   r   r   r   r   r   r   ExternalReferenceIdr   r   )r   r   r   r   rW   creater}   r   rQ   r.   r5   r:   r;   r<   r=   r>   r?   r@   rB   r)   r/   r0   r1   r2   r3   r4   rA   r6   r7   r8   r9   rI   r   r&   r   r   r   r   e  sd   7	
zTollfreeVerificationList.createc              
      s   t i d|d|d|dt|dd d|d|d	t|d
d d|d|	d|
d|d|d|d|d|d|d|||||||d}| jjd| j|dI dH }t| j|S )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 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   rw   r   r   r   r   r   r     r   z7TollfreeVerificationList.create_async.<locals>.<lambda>r   r   r   c                 S   r   rw   r   r   r   r   r   r     r   r   r   r   r   r   r   r   r   r   r   r   r   r   N)r   r   r   r   rW   create_asyncr}   r   r   r   r   r   r     sf   7	
z%TollfreeVerificationList.create_asyncNrC   r   limit	page_sizec                 C   s4   | j ||}| j|||d d}| j ||d S )aa  
        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 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   rB   rC   r   r   )rW   read_limitspagestreamrQ   rB   rC   r   r   limitsr   r   r   r   r     s   zTollfreeVerificationList.streamc                    s<   | j ||}| j|||d dI dH }| j ||d S )ap  
        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 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   )rW   r   
page_asyncstream_asyncr   r   r   r   r   <  s   z%TollfreeVerificationList.stream_asyncc                 C   s   t | j||||d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 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
        rB   rC   r   r   )listr   rQ   rB   rC   r   r   r   r   r   r   ]  s   zTollfreeVerificationList.listc                    s*   dd | j ||||dI dH 2 I dH S )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 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
        c                    s   g | z3 d H W }|q6 S rw   r   )rk   recordr   r   r   
<listcomp>  s
    z7TollfreeVerificationList.list_async.<locals>.<listcomp>r   N)r   r   r   r   r   
list_async}  s   
z#TollfreeVerificationList.list_async
page_tokenpage_numberc                 C   s6   t |||||d}| jjd| j|d}t| j|S )aP  
        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 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$   	PageTokenr   PageSizer~   r   r   params)r   r   rW   r   r}   r   rQ   rB   rC   r   r   r   r   responser   r   r   r     s   
zTollfreeVerificationList.pagec                    s>   t |||||d}| jjd| j|dI dH }t| j|S )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 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   N)r   r   rW   r   r}   r   r   r   r   r   r     s   
z#TollfreeVerificationList.page_async
target_urlc                 C   s   | 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~   )rW   domaintwiliorequestr   rQ   r   r   r   r   r   get_page  s   	z!TollfreeVerificationList.get_pagec                    s&   | j jjd|I dH }t| j |S )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)rW   r   r   request_asyncr   r   r   r   r   get_page_async  s   	z'TollfreeVerificationList.get_page_asyncr'   c                 C      t | j|dS z
        Constructs a TollfreeVerificationContext

        :param sid: The unique string to identify Tollfree Verification.
        rV   rU   rW   rQ   r'   r   r   r   rL        zTollfreeVerificationList.getc                 C   r   r   r   r   r   r   r   __call__  r   z!TollfreeVerificationList.__call__c                 C   r   )rd   z.<Twilio.Messaging.V1.TollfreeVerificationList>r   rX   r   r   r   ru   
  r   z!TollfreeVerificationList.__repr__) r   r   r   r   rK   r   r{   ry   r   r   rx   r   r   r   r   intr   r   r	   r   r   r   r   r   r   r   r   rU   rL   r   ru   r|   r   r   rR   r   r   Y  s   	














g	














]


#


#


"


#





#





#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   rU   r   r   r   r   r   r   <module>   s     $  C m