
    i?1i$                         d Z ddlmZmZmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ  G d d	e
      Z G d
 de      Z G d de      Z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)values)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dedd fd	Zdedd 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       v/home/www/therecruiter.miabetepe.com/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._proxy3   s9     == 6 NN=9DM }}r   primary_profile_sidc                 :    | j                   j                  |      S ).  
        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.

        :returns: The updated ComplianceInquiriesInstance
        r$   )r#   updater   r$   s     r   r(   z"ComplianceInquiriesInstance.updateB   s#     {{!! 3 " 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)H  
        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.

        :returns: The updated ComplianceInquiriesInstance
        r'   N)r#   update_asyncr)   s     r   r,   z(ComplianceInquiriesInstance.update_asyncN   s1      [[-- 3 . 
 
 	
 
s    )')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>b        SDAq7>>!Q/S   !z3<Twilio.Trusthub.V1.ComplianceInquiriesInstance {}>joinr   itemsr3   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(   r,   r@   __classcell__r   s   @r   r   r      s     &*	CC c3hC c]	C$  

# 

2O 


#&
	&
U# Ur   r   c                   T     e Zd Zdedef 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 )	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   r3   _uri)r   r   r   r   s      r   r   z#ComplianceInquiriesContext.__init__g   sF     	! ;
 UMTT 
nn
	r   r$   r   c                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )r&   PrimaryProfileSidPOSTmethoduridatar   r   )r   ofr!   r(   rL   r   r   r   r$   rS   r   s       r   r(   z!ComplianceInquiriesContext.updatex   sh     yy#%8
 --&&		 ' 
 +MM7}0M
 	
r   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)r+   rN   rO   rP   Nr   r   )r   rT   r!   r,   rL   r   r   rU   s       r   r,   z'ComplianceInquiriesContext.update_async   sv      yy#%8
 22		 3 
 
 +MM7}0M
 	

s   AA1A/*A1c                     dj                  d | j                  j                         D              }dj                  |      S )r.   r/   c              3   F   K   | ]  \  }}d j                  ||        ywr1   r2   r4   s      r   r8   z6ComplianceInquiriesContext.__repr__.<locals>.<genexpr>   r9   r:   z2<Twilio.Trusthub.V1.ComplianceInquiriesContext {}>r;   r>   s     r   r@   z#ComplianceInquiriesContext.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr   )rA   rB   rC   r
   rE   r   r   r(   r,   r@   rG   rH   s   @r   r    r    f   sM    
 
c 
"
# 
2M 
0
#&
	$
4T# Tr   r    c                   p     e Zd Zdef fdZdedefdZdedefdZdede	fdZ
dede	f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   rL   )r   r   r   s     r   r   z ComplianceInquiriesList.__init__   s     	!?	r   r$   r   c                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  |      S )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.

        :returns: The created ComplianceInquiriesInstance
        rN   rO   rP   )r   rT   r!   createrL   r   rU   s       r   r]   zComplianceInquiriesList.create   sX     yy#%8
 --&&		 ' 
 +4=='BBr   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)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.

        :returns: The created ComplianceInquiriesInstance
        rN   rO   rP   N)r   rT   r!   create_asyncrL   r   rU   s       r   r_   z$ComplianceInquiriesList.create_async   sf      yy#%8
 22		 3 
 
 +4=='BB
s   A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 ra   rb   rc   s     r   __call__z ComplianceInquiriesList.__call__   rd   r   c                      y)r.   z,<Twilio.Trusthub.V1.ComplianceInquiriesList>rK   r"   s    r   r@   z ComplianceInquiriesList.__repr__   s     >r   )rA   rB   rC   r
   r   rE   r   r]   r_   r    r   rf   r@   rG   rH   s   @r   rZ   rZ      sz    	@ 	@C# C2M C,C#&C	$C0Rs R'A RRC R,F R># >r   rZ   N)rD   typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r    rZ   rK   r   r   <module>rn      sR    ' &  8 : 2 'KU"2 KU\KT KT\P>l P>r   