
    d{iL                         d Z ddl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 - Trusthub
    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OptionalUnion)values)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc                   :    e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       Zej                  fded	eeef   dd fd
Zej                  fded	eeef   dd fdZej                  fded	eeef   defdZej                  fded	eeef   defdZdefdZ xZS )ComplianceInquiriesInstancear  
    :ivar inquiry_id: The unique ID used to start an embedded compliance registration session.
    :ivar inquiry_session_token: The session token used to start an embedded compliance registration session.
    :ivar customer_id: The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
    :ivar url: The URL of this resource.
    versionpayloadcustomer_idc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j
                  i| _        d | _        y )N
inquiry_idinquiry_session_tokenr   url)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__s       j/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/trusthub/v1/compliance_inquiries.pyr   z$ComplianceInquiriesInstance.__init__    sz     	!)0\)B4;KK@W4X"*1++m*D")++e"4 ;:$*:*:
 ?C    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: ComplianceInquiriesContext for this ComplianceInquiriesInstance
        r   r   )r   ComplianceInquiriesContext_versionr   r   s    r   _proxyz"ComplianceInquiriesInstance._proxy2   s9     == 6 NN=9DM }}r   primary_profile_sidtheme_set_idc                 <    | j                   j                  ||      S )r  
        Update the ComplianceInquiriesInstance

        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: The updated ComplianceInquiriesInstance
        r&   r'   )r%   updater   r&   r'   s      r   r+   z"ComplianceInquiriesInstance.updateA   s&     {{!! 3% " 
 	
r   c                 X   K   | j                   j                  ||       d{   S 7 w)  
        Asynchronous coroutine to update the ComplianceInquiriesInstance

        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: The updated ComplianceInquiriesInstance
        r*   N)r%   update_asyncr,   s      r   r/   z(ComplianceInquiriesInstance.update_asyncQ   s4      [[-- 3% . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )a  
        Update the ComplianceInquiriesInstance with HTTP info

        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: ApiResponse with instance, status code, and headers
        r*   )r%   update_with_http_infor,   s      r   r2   z1ComplianceInquiriesInstance.update_with_http_infoa   s&     {{00 3% 1 
 	
r   c                 X   K   | j                   j                  ||       d{   S 7 w)a  
        Asynchronous coroutine to update the ComplianceInquiriesInstance with HTTP info

        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: ApiResponse with instance, status code, and headers
        r*   N)r%   update_with_http_info_asyncr,   s      r   r4   z7ComplianceInquiriesInstance.update_with_http_info_asyncq   s4      [[<< 3% = 
 
 	
 
r0   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>z7ComplianceInquiriesInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z3<Twilio.Trusthub.V1.ComplianceInquiriesInstance {}>joinr   itemsr;   r   contexts     r   __repr__z$ComplianceInquiriesInstance.__repr__   s6     ((SDNN<P<P<RSSDKKGTTr   )N)r   r"   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr%   r   unsetr   objectr+   r/   r   r2   r4   rH   __classcell__r   s   @r   r   r      s$    &*	CC c3hC c]	C$   LR<<
#&
6;CK6H
	&
" LR<<
#&
6;CK6H
	&
" LR<<
#&
6;CK6H
	
" LR<<
#&
6;CK6H
	
 U# Ur   r   c                   x    e Zd Zdedef fdZej                  fdedeee	f   de
fdZej                  fdedeee	f   defdZej                  fdedeee	f   defd	Zej                  fdedeee	f   de
fd
Zej                  fdedeee	f   defdZej                  fdedeee	f   defdZdefdZ xZS )r"   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)aU  
        Initialize the ComplianceInquiriesContext

        :param version: Version that contains the resource
        :param customer_id: The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
        r   z7/ComplianceInquiries/Customers/{customer_id}/InitializeN )r   r   r   r;   _uri)r   r   r   r   s      r   r   z#ComplianceInquiriesContext.__init__   sF     	! ;
 UMTT 
nn
	r   r&   r'   r   c                     t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        PrimaryProfileSid
ThemeSetId!application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr#   update_with_response_inforV   r   r&   r'   rc   rd   s        r   _updatez"ComplianceInquiriesContext._update   si     yy%8*
 ))B-"E.}}66tyytW 7 
 	
r   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )r)   r*   r   r!   )rh   r   r#   r   r   r&   r'   r   _s        r   r+   z!ComplianceInquiriesContext.update   sE      3, % 
A +MM7}0M
 	
r   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Update the ComplianceInquiriesInstance and return response metadata

        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: ApiResponse with instance, status code, and headers
        r*   r   r!   rc   status_coderd   )rh   r   r#   r   r   r   r&   r'   r   rn   rd   instances          r   r2   z0ComplianceInquiriesContext.update_with_http_info   sT     )- 3, )5 )
%g /MM7}0M
 k7SSr   c                    K   t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        rX   r[   r\   r]   r^   r_   r`   N)r   re   r#   update_with_response_info_asyncrV   rg   s        r   _update_asyncz(ComplianceInquiriesContext._update_async   sx      yy%8*
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A$A-&A+'A-c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)r.   r*   Nr   r!   )rs   r   r#   r   rj   s        r   r/   z'ComplianceInquiriesContext.update_async   sU      #00 3, 1 
 
A +MM7}0M
 	

s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to update the ComplianceInquiriesInstance and return response metadata

        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
        :param theme_set_id: Theme id for styling the inquiry form.

        :returns: ApiResponse with instance, status code, and headers
        r*   Nr   r!   rm   )rs   r   r#   r   r   ro   s          r   r4   z6ComplianceInquiriesContext.update_with_http_info_async	  se      /3.@.@ 3, /A /
 )
%g /MM7}0M
 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r6   r7   c              3   F   K   | ]  \  }}d j                  ||        ywr9   r:   r<   s      r   r@   z6ComplianceInquiriesContext.__repr__.<locals>.<genexpr>"  rA   rB   z2<Twilio.Trusthub.V1.ComplianceInquiriesContext {}>rC   rF   s     r   rH   z#ComplianceInquiriesContext.__repr__  s6     ((SDNN<P<P<RSSCJJ7SSr   )rI   rJ   rK   r   rM   r   r   rO   r   rP   tuplerh   r   r+   r   r2   rs   r/   r4   rH   rQ   rR   s   @r   r"   r"      sR   
 
c 
$ LR<<
#&
6;CK6H
	
6 LR<<
#&
6;CK6H
	$
& LR<<T#&T6;CK6HT	T( LR<<
#&
6;CK6H
	
6 LR<<
#&
6;CK6H
	$
& LR<<T#&T6;CK6HT	T&T# Tr   r"   c            	       ,    e Zd Zdef fdZej                  ej                  ej                  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                  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                  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                  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                  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                  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 )ComplianceInquiriesListr   c                 2    t         |   |       d| _        y)zu
        Initialize the ComplianceInquiriesList

        :param version: Version that contains the resource

        z)/ComplianceInquiries/Customers/InitializeN)r   r   rV   )r   r   r   s     r   r   z ComplianceInquiriesList.__init__(  s     	!?	r   notification_emailr'   r&   r   c                     t        j                  |||d      }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)
        NotificationEmailrZ   rY   r\   r[   r]   r^   r_   r`   )r   re   r#   create_with_response_inforV   r   r|   r'   r&   rc   rd   s         r   _createzComplianceInquiriesList._create3  ss     yy%7*%8
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 ^    | j                  |||      \  }}}t        | j                  |      S )a5  
        Create the ComplianceInquiriesInstance

        :param notification_email: The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
        :param theme_set_id: Theme id for styling the inquiry form.
        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.

        :returns: The created ComplianceInquiriesInstance
        r|   r'   r&   )r   r   r#   r   r|   r'   r&   r   rk   s         r   createzComplianceInquiriesList.createQ  s9     1% 3 % 
A
 +4=='BBr   c                 z    | j                  |||      \  }}}t        | j                  |      }t        |||      S )a^  
        Create the ComplianceInquiriesInstance and return response metadata

        :param notification_email: The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
        :param theme_set_id: Theme id for styling the inquiry form.
        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.

        :returns: ApiResponse with instance, status code, and headers
        r   rm   )r   r   r#   r   r   r|   r'   r&   r   rn   rd   rp   s           r   create_with_http_infoz-ComplianceInquiriesList.create_with_http_infog  sH     )-1% 3 )5 )
%g
 /t}}gFk7SSr   c                    K   t        j                  |||d      }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[   r]   r^   r_   r`   N)r   re   r#   create_with_response_info_asyncrV   r   s         r   _create_asyncz%ComplianceInquiriesList._create_async~  s      yy%7*%8
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A'A0)A.*A0c                 z   K   | j                  |||       d{   \  }}}t        | j                  |      S 7 w)aD  
        Asynchronously create the ComplianceInquiriesInstance

        :param notification_email: The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
        :param theme_set_id: Theme id for styling the inquiry form.
        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.

        :returns: The created ComplianceInquiriesInstance
        r   N)r   r   r#   r   s         r   create_asyncz$ComplianceInquiriesList.create_async  sI      #001% 3 1 
 
A
 +4=='BB
s   ;9;c                    K   | j                  |||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)am  
        Asynchronously create the ComplianceInquiriesInstance and return response metadata

        :param notification_email: The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
        :param theme_set_id: Theme id for styling the inquiry form.
        :param primary_profile_sid: The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.

        :returns: ApiResponse with instance, status code, and headers
        r   Nrm   )r   r   r#   r   r   s           r   create_with_http_info_asyncz3ComplianceInquiriesList.create_with_http_info_async  sY      /3.@.@1% 3 /A /
 )
%g
 /t}}gFk7SS)
s   A	A-A	r   c                 0    t        | j                  |      S a  
        Constructs a ComplianceInquiriesContext

        :param customer_id: The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
        r!   r"   r#   r   r   s     r   r   zComplianceInquiriesList.get       *$--[QQr   c                 0    t        | j                  |      S r   r   r   s     r   __call__z ComplianceInquiriesList.__call__  r   r   c                      y)r6   z,<Twilio.Trusthub.V1.ComplianceInquiriesList>rU   r$   s    r   rH   z ComplianceInquiriesList.__repr__  s     >r   )rI   rJ   rK   r   r   r   rO   r   rM   rP   rx   r   r   r   r   r   r   r   r   r"   r   r   rH   rQ   rR   s   @r   rz   rz   &  s   	@ 	@ 28+1<<28,,	
!#v+.
 CK(
 #3;/	

 

@ 28+1<<28,,	C!#v+.C CK(C #3;/	C
 
%C0 28+1<<28,,	T!#v+.T CK(T #3;/	T
 
T2 28+1<<28,,	
!#v+.
 CK(
 #3;/	

 

@ 28+1<<28,,	C!#v+.C CK(C #3;/	C
 
%C0 28+1<<28,,	T!#v+.T CK(T #3;/	T
 
T.Rs R'A RRC R,F R># >r   rz   N)rL   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r"   rz   rU   r   r   <module>r      sU    . -  0 8 : 2 'pU"2 pUfXT XTvy>l y>r   