
    g-                         S r SSKJrJrJrJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr  SSKJr   " S S	\5      r " S
 S\	5      r " S S\5      rg)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)InstanceContext)InstanceResource)ListResource)Versionc                      ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       r\R                  4S	\S
\\\4   SS 4S jjr\R                  4S	\S
\\\4   SS 4S jjrS\4S jrSrU =r$ )ComplianceInquiriesInstance   a^  
: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U ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        SU=(       d    U R
                  0U l        S U l        g )N
inquiry_idinquiry_session_tokenr   url)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__s       t/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/trusthub/v1/compliance_inquiries.pyr   $ComplianceInquiriesInstance.__init__   sz     	!)0\)B4;KK@W4X"*1++m*D")++e"4 ;:$*:*:
 ?C    returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
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   _proxy"ComplianceInquiriesInstance._proxy1   s9     == 6 NN=9DM }}r   primary_profile_sidtheme_set_idc                 6    U R                   R                  UUS9$ )J  
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-   "ComplianceInquiriesInstance.update@   s&     {{!! 3% " 
 	
r   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)d  
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   r2   (ComplianceInquiriesInstance.update_asyncP   s3      [[-- 3% . 
 
 	
 
s   '%'c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r   	<genexpr>7ComplianceInquiriesInstance.__repr__.<locals>.<genexpr>f         S<RDA7>>!//<R    "z3<Twilio.Trusthub.V1.ComplianceInquiriesInstance {}>joinr   itemsr:   r   contexts     r   __repr__$ComplianceInquiriesInstance.__repr__`   s6     ((SDNN<P<P<RSSDKKGTTr   )r   r   r   r   r   r   )N)r    r#   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr&   r   unsetr   objectr-   r2   rH   __static_attributes____classcell__r   s   @r   r   r      s     &*	CC c3hC c]	C C$   LR<<
#&
6;CK6H
	&
" LR<<
#&
6;CK6H
	&
 U# U Ur   r   c                      ^  \ rS rSrS\S\4U 4S jjr\R                  4S\S\	\\
4   S\4S jjr\R                  4S\S\	\\
4   S\4S	 jjrS\4S
 jrSrU =r$ )r#   j   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)a5  
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   #ComplianceInquiriesContext.__init__l   sC     	! ;
 NTT 
nn
	r   r(   r)   r    c                     [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  XPR                  S   S	9$ )
r+   PrimaryProfileSid
ThemeSetId!application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethoduridataheadersr   r"   )r   ofr$   r-   rZ   r   r   r   r(   r)   rh   ri   r   s         r   r-   !ComplianceInquiriesContext.update}   s     yy%8*
 ))B-"E.--&&tyyt ' 
 +MM7}0M
 	
r   c                   #    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  XPR                  S	   S
9$  N%7f)r1   r]   r`   ra   rb   rc   rd   re   Nr   r"   )r   rj   r$   r2   rZ   r   r   rk   s         r   r2   'ComplianceInquiriesContext.update_async   s      yy%8*
 ))B-"E.22tyyt 3 
 
 +MM7}0M
 	
	
s   A"B$B
%&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r5   r6   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr8   r9   r;   s      r   r?   6ComplianceInquiriesContext.__repr__.<locals>.<genexpr>   rA   rB   z2<Twilio.Trusthub.V1.ComplianceInquiriesContext {}>rC   rF   s     r   rH   #ComplianceInquiriesContext.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr   )r   rZ   )rJ   rK   rL   rM   r   rO   r   r   rQ   r   rR   r   r-   r2   rH   rS   rT   rU   s   @r   r#   r#   j   s    
 
c 
$ LR<<
#&
6;CK6H
	$
B LR<<
#&
6;CK6H
	$
@T# T Tr   r#   c            	         ^  \ rS rSrS\4U 4S jjr\R                  \R                  4S\S\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  4S\S\	\\
4   S\	\\
4   S\4S	 jjrS
\S\4S jrS
\S\4S jrS\4S jrSrU =r$ )ComplianceInquiriesList   r   c                 2   > [         TU ]  U5        SU l        g)z]
Initialize the ComplianceInquiriesList

:param version: Version that contains the resource

z)/ComplianceInquiries/Customers/InitializeN)r   r   rZ   )r   r   r   s     r   r    ComplianceInquiriesList.__init__   s     	!?	r   r(   notification_emailr)   r    c                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a  
Create 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 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.

:returns: The created ComplianceInquiriesInstance
r^   NotificationEmailr_   ra   r`   rb   rc   rd   re   )r   rj   r$   createrZ   r   r   r(   rx   r)   rh   ri   r   s          r   r|   ComplianceInquiriesList.create   s      yy%8%7*
 ))^-PQR"E.--&&tyyt ' 
 +4=='BBr   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously create 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 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.

:returns: The created ComplianceInquiriesInstance
rz   ra   r`   rb   rc   rd   re   N)r   rj   r$   create_asyncrZ   r   r}   s          r   r   $ComplianceInquiriesList.create_async   s       yy%8%7*
 ))^-PQR"E.22tyyt 3 
 
 +4=='BB	
s   A%B'B(Br   c                 *    [        U R                  US9$ 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   ComplianceInquiriesList.get       *$--[QQr   c                 *    [        U R                  US9$ r   r   r   s     r   __call__ ComplianceInquiriesList.__call__"  r   r   c                     g)r5   z,<Twilio.Trusthub.V1.ComplianceInquiriesList>rY   r%   s    r   rH    ComplianceInquiriesList.__repr__*  s     >r   )rZ   )rJ   rK   rL   rM   r   r   r   rQ   rO   r   rR   r   r|   r   r#   r   r   rH   rS   rT   rU   s   @r   rt   rt      s    	@ 	@ 28+1<<	!C !C "#v+.!C CK(	!C
 
%!CL 28+1<<	!C !C "#v+.!C CK(	!C
 
%!CFRs R'A RRC R,F R># > >r   rt   N)rN   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r#   rt   rY   r   r   <module>r      sR    . -  8 : 2 'PU"2 PUfZT ZTzi>l i>r   