
    d{il                         d Z ddlmZmZmZmZ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 ddlmZ  G d	 d
e      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Numbers
    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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)ApiResponse)InstanceResource)ListResource)Version)Pagec                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )#SigningRequestConfigurationInstanceu  
    :ivar logo_sid: The SID of the document  that includes the logo that will appear in the LOA. To upload documents follow the following guide: https://www.twilio.com/docs/phone-numbers/regulatory/getting-started/create-new-bundle-public-rest-apis#supporting-document-create
    :ivar friendly_name: This is the string that you assigned as a friendly name for describing the creation of the configuration.
    :ivar product: The product or service for which is requesting the signature.
    :ivar country: The country ISO code to apply the configuration.
    :ivar email_subject: Subject of the email that the end client will receive ex: “Twilio Hosting Request”, maximum length of 255 characters.
    :ivar email_message: Content of the email that the end client will receive ex: “This is a Hosting request from Twilio, please check the document and sign it”, maximum length of 5,000 characters.
    :ivar url_redirection: Url the end client will be redirected after signing a document.
    :ivar url:
    versionpayloadc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        y )	Nlogo_sidfriendly_nameproductcountryemail_subjectemail_messageurl_redirectionurl)super__init__getr   r   r   r   r   r   r   r   )selfr   r   	__class__s      r/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/numbers/v1/signing_request_configuration.pyr   z,SigningRequestConfigurationInstance.__init__%   s    !'.{{:'>,3KK,H&-kk)&<&-kk)&<,3KK,H,3KK,H.5kk:K.L")++e"4    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z7<Twilio.Numbers.V1.SigningRequestConfigurationInstance> r    s    r"   __repr__z,SigningRequestConfigurationInstance.__repr__1   s     Ir#   )__name__
__module____qualname____doc__r   r   strr   r   r)   __classcell__r!   s   @r"   r   r      s1    	
5 
5$sCx. 
5I# Ir#   r   c                   2    e Zd Zdeeef   defdZdefdZy)SigningRequestConfigurationPager   r$   c                 .    t        | j                  |      S )z
        Build an instance of SigningRequestConfigurationInstance

        :param payload: Payload response from the API
        )r   _version)r    r   s     r"   get_instancez,SigningRequestConfigurationPage.get_instance=   s     34=='JJr#   c                      y)r&   z3<Twilio.Numbers.V1.SigningRequestConfigurationPage>r'   r(   s    r"   r)   z(SigningRequestConfigurationPage.__repr__G        Er#   N)	r*   r+   r,   r   r.   r   r   r5   r)   r'   r#   r"   r2   r2   ;   s0    KCH~K	,KE# Er#   r2   c                       e Zd Zdef fdZej                  fdeeef   de	fdZ
ej                  fdeeef   defdZej                  fdeeef   defdZej                  fdeeef   de	fdZej                  fdeeef   defd	Zej                  fdeeef   defd
Zej                  ej                  ddfdeeef   deeef   dee   dee   dee   f
dZej                  ej                  ddfdeeef   deeef   dee   dee   dee   f
dZej                  ej                  ddfdeeef   deeef   dee   dee   de	f
dZej                  ej                  ddfdeeef   deeef   dee   dee   de	f
dZej                  ej                  ddfdeeef   deeef   dee   dee   dee   f
dZej                  ej                  ddfdeeef   deeef   dee   dee   dee   f
dZej                  ej                  ddfdeeef   deeef   dee   dee   def
dZej                  ej                  ddfdeeef   deeef   dee   dee   def
dZej                  ej                  ej                  ej                  ej                  fdeeef   deeef   deeef   deeef   deeef   de fdZ!ej                  ej                  ej                  ej                  ej                  fdeeef   deeef   deeef   deeef   deeef   de fdZ"ej                  ej                  ej                  ej                  ej                  fdeeef   deeef   deeef   deeef   deeef   defdZ#ej                  ej                  ej                  ej                  ej                  fdeeef   deeef   deeef   deeef   deeef   defdZ$dede fdZ%dede fd Z&defd!Z' xZ(S )"SigningRequestConfigurationListr   c                 2    t         |   |       d| _        y)z}
        Initialize the SigningRequestConfigurationList

        :param version: Version that contains the resource

        z/SigningRequest/ConfigurationN)r   r   _uri)r    r   r!   s     r"   r   z(SigningRequestConfigurationList.__init__R   s     	!3	r#   bodyr$   c                     |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)to_dictr
   ofr4   create_with_response_infor;   r    r<   rF   rG   s       r"   _createz'SigningRequestConfigurationList._create]   s`     ||~))^-PQR"4.}}66tyytW 7 
 	
r#   c                 Z    | j                  |      \  }}}t        | j                  |      S )z
        Create the SigningRequestConfigurationInstance

        :param body:

        :returns: The created SigningRequestConfigurationInstance
        r<   )rL   r   r4   r    r<   r   _s       r"   createz&SigningRequestConfigurationList.createp   s+     $/A24=='JJr#   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Create the SigningRequestConfigurationInstance and return response metadata

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        rN   rF   status_coderG   )rL   r   r4   r   r    r<   r   rT   rG   instances         r"   create_with_http_infoz5SigningRequestConfigurationList.create_with_http_info}   s:     )-$(?%g6t}}gNk7SSr#   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r>   r?   r@   rA   rB   rC   N)rH   r
   rI   r4   create_with_response_info_asyncr;   rK   s       r"   _create_asyncz-SigningRequestConfigurationList._create_async   so      ||~))^-PQR"4.]]BBtyytW C 
 
 	
 
s   AA' A%!A'c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)z
        Asynchronously create the SigningRequestConfigurationInstance

        :param body:

        :returns: The created SigningRequestConfigurationInstance
        rN   N)rZ   r   r4   rO   s       r"   create_asyncz,SigningRequestConfigurationList.create_async   s:      #00d0;;A24=='JJ <s   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronously create the SigningRequestConfigurationInstance and return response metadata

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        rN   NrS   )rZ   r   r4   r   rU   s         r"   create_with_http_info_asyncz;SigningRequestConfigurationList.create_with_http_info_async   sJ      /3.@.@d.@.K(K%g6t}}gNk7SS )Ls   AA-ANr   r   limit	page_sizec                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )ay  
        Streams SigningRequestConfigurationInstance 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 country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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   r   r`   r_   )r4   read_limitspagestreamr    r   r   r_   r`   limitsrd   s          r"   re   z&SigningRequestConfigurationList.stream   sV    0 **5)<yyW{8K  
 }}##D&/::r#   c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams SigningRequestConfigurationInstance 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 country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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   Nr_   )r4   rc   
page_asyncstream_asyncrf   s          r"   rj   z,SigningRequestConfigurationList.stream_async   sd     0 **5)<__W{8K % 
 
 }}))$w@@	
s   7AA$Ac                     | j                   j                  ||      }| j                  |||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams SigningRequestConfigurationInstance and returns headers from first page


        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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: tuple of (generator, status_code, headers) where generator yields instances
        r`   rb   r_   )r4   rc   page_with_http_infore   rF   rT   rG   r    r   r   r_   r`   rg   page_response	generators           r"   stream_with_http_infoz5SigningRequestConfigurationList.stream_with_http_info   sv    , **5)<00W{8K 1 
 MM((););VG_M	=44m6K6KLLr#   c                   K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams SigningRequestConfigurationInstance and returns headers from first page


        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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: tuple of (generator, status_code, headers) where generator yields instances
        r`   rb   Nr_   )r4   rc   page_with_http_info_asyncrj   rF   rT   rG   rm   s           r"   stream_with_http_info_asyncz;SigningRequestConfigurationList.stream_with_http_info_async  s     , **5)<"<<W{8K = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   7BB ABc                 >    t        | j                  ||||            S )a  
        Lists SigningRequestConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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   r   r_   r`   )listre   )r    r   r   r_   r`   s        r"   rv   z$SigningRequestConfigurationList.list3  s.    . KK#	  
 	
r#   c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a%  
        Asynchronously lists SigningRequestConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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
        ru   N)rj   )r    r   r   r_   r`   records         r"   
list_asyncz*SigningRequestConfigurationList.list_asyncS  sZ     2 '+&7&7#	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=c                 f    | j                  ||||      \  }}}t        |      }t        |||      S )a  
        Lists SigningRequestConfigurationInstance and returns headers from first page


        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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: ApiResponse with list of instances, status code, and headers
        ru   rS   )rp   rv   r   )	r    r   r   r_   r`   ro   rT   rG   itemss	            r"   list_with_http_infoz3SigningRequestConfigurationList.list_with_http_infot  sG    , +/*D*D	 +E +
'	; Y;PPr#   c                    K   | j                  ||||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }	}t        |	||      S w)a  
        Asynchronously lists SigningRequestConfigurationInstance and returns headers from first page


        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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: ApiResponse with list of instances, status code, and headers
        ru   NrS   )rs   r   )
r    r   r   r_   r`   ro   rT   rG   rx   r{   s
             r"   list_with_http_info_asyncz9SigningRequestConfigurationList.list_with_http_info_async  sl     , 150P0P	 1Q 1
 +
'	; -666&+
 7666;PPs4   A6A<:8
:<A:<A
page_tokenpage_numberc                     t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Retrieve a single page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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 SigningRequestConfigurationInstance
        CountryProduct	PageTokenr   PageSizer>   r?   r@   rA   GETrD   rE   paramsrG   )r
   rI   r4   rd   r;   r2   	r    r   r   r   r   r`   rF   rG   responses	            r"   rd   z$SigningRequestConfigurationList.page  s    ( yy""'#%
 ))^-PQR.==%%diig & 
 /t}}hGGr#   c                 
  K   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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 SigningRequestConfigurationInstance
        r   r>   r?   r@   rA   r   r   N)r
   rI   r4   ri   r;   r2   r   s	            r"   ri   z*SigningRequestConfigurationList.page_async  s     ( yy""'#%
 ))^-PQR.11diig 2 
 
 /t}}hGG
s   A$B&B'Bc                    t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}	}
t        | j                  |      }t        ||	|
      S )	am  
        Retrieve a single page with response metadata


        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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: ApiResponse with SigningRequestConfigurationPage, status code, and headers
        r   r>   r?   r@   rA   r   r   rS   )r
   rI   r4   page_with_response_infor;   r2   r   r    r   r   r   r   r`   rF   rG   r   rT   response_headersrd   s               r"   rl   z3SigningRequestConfigurationList.page_with_http_info   s    ( yy""'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ /t}}hG+GWXXr#   c                 .  K   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}	}
t        | j                  |      }t        ||	|
	      S 7 ,w)
a|  
        Asynchronously retrieve a single page with response metadata


        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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: ApiResponse with SigningRequestConfigurationPage, status code, and headers
        r   r>   r?   r@   rA   r   r   NrS   )r
   rI   r4   page_with_response_info_asyncr;   r2   r   r   s               r"   rr   z9SigningRequestConfigurationList.page_with_http_info_async(  s     ( yy""'#%
 ))^-PQR. --==$))D' >   	0+/
 /t}}hG+GWXXs   A$B&B'-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SigningRequestConfigurationInstance
        r   )r4   domaintwiliorequestr2   r    r   r   s      r"   get_pagez(SigningRequestConfigurationList.get_pageR  s7     ==''..66ujI.t}}hGGr#   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a*  
        Asynchronously retrieve a specific page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SigningRequestConfigurationInstance
        r   N)r4   r   r   request_asyncr2   r   s      r"   get_page_asyncz.SigningRequestConfigurationList.get_page_async^  sD      --44BB5*UU.t}}hGG Vs   4AAAc                      y)r&   z3<Twilio.Numbers.V1.SigningRequestConfigurationList>r'   r(   s    r"   r)   z(SigningRequestConfigurationList.__repr__j  r7   r#   ))r*   r+   r,   r   r   r
   unsetr   objecttuplerL   r   rQ   r   rW   rZ   r\   r^   r.   r   intr   re   r	   rj   rp   rs   r   rv   ry   r|   r~   r2   rd   ri   rl   rr   r   r   r)   r/   r0   s   @r"   r9   r9   P   s
   	4 	4 5;LL 
E&&.1 
U 
( -3LLK&&.)K	,K -3LLT&&.)T	T AG 
ffn(= 
QV 
( -3LLK&&.)K	,K -3LLT&&.)T	T  '-ll&,ll##';sF{#; sF{#; }	;
 C=; 
5	6;B '-ll&,ll##'AsF{#A sF{#A }	A
 C=A 
:	;AB '-ll&,ll##'MsF{#M sF{#M }	M
 C=M 
M@ '-ll&,ll##'MsF{#M sF{#M }	M
 C=M 
M@ '-ll&,ll##'
sF{#
 sF{#
 }	

 C=
 
1	2
D '-ll&,ll##'
sF{#
 sF{#
 }	

 C=
 
1	2
F '-ll&,ll##'QsF{#Q sF{#Q }	Q
 C=Q 
QB '-ll&,ll##'QsF{#Q sF{#Q }	Q
 C=Q 
QB '-ll&,ll)/*0,,(.%HsF{#%H sF{#%H #v+&	%H
 3;'%H f%%H 
)%HR '-ll&,ll)/*0,,(.%HsF{#%H sF{#%H #v+&	%H
 3;'%H f%%H 
)%HR '-ll&,ll)/*0,,(.&YsF{#&Y sF{#&Y #v+&	&Y
 3;'&Y f%&Y 
&YT '-ll&,ll)/*0,,(.(YsF{#(Y sF{#(Y #v+&	(Y
 3;'(Y f%(Y 
(YT
H3 
H+J 
H
Hs 
H7V 
HE# Er#   r9   N)r-   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r2   r9   r'   r#   r"   <module>r      sV    M L L  0 : 2 ' !I*: IDEd E*`El `Er#   