o
    /i$                     @   s   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	 d	e
ZG d
d deZG dd deZdS )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                       s~   e Zd ZdZ	ddedeeef dee f fddZ	e
dd
dZdedd fddZdedd fddZdefddZ  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.
    Nversionpayloadcustomer_idc                    sV   t  | |d| _|d| _|d| _|d| _d|p#| ji| _d | _d S )N
inquiry_idinquiry_session_tokenr   url)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__ g/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/trusthub/v1/compliance_inquiries.pyr   !   s   

z$ComplianceInquiriesInstance.__init__returnComplianceInquiriesContextc                 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: ComplianceInquiriesContext for this ComplianceInquiriesInstance
        Nr   r   )r   r   _versionr   r   r   r   r   _proxy3   s   
z"ComplianceInquiriesInstance._proxyprimary_profile_sidc                 C   s   | j j|d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!   r   r   r   r$   B   s   z"ComplianceInquiriesInstance.updatec                    s   | j j|dI dH S )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%   r   r   r   r'   N   s   
z(ComplianceInquiriesInstance.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>b       z7ComplianceInquiriesInstance.__repr__.<locals>.<genexpr>z3<Twilio.Trusthub.V1.ComplianceInquiriesInstance {}>joinr   itemsr.   r   contextr   r   r   __repr__\      
z$ComplianceInquiriesInstance.__repr__)N)r   r   )__name__
__module____qualname____doc__r	   r   strr   r   r   propertyr    r$   r'   r:   __classcell__r   r   r   r   r
      s&    

r
   c                       sX   e Zd Zdedef fddZdedefddZdedefd	d
ZdefddZ	  Z
S )r   r   r   c                    s.   t  | d|i| _djdi | j| _dS )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}/InitializeNr   )r   r   r   r.   _uri)r   r   r   r   r   r   r   g   s   z#ComplianceInquiriesContext.__init__r!   r   c                 C   s8   t d|i}| jjd| j|d}t| j|| jd dS )r"   PrimaryProfileSidPOSTmethoduridatar   r   )r   ofr   r$   rC   r
   r   r   r!   rI   r   r   r   r   r$   x   s   z!ComplianceInquiriesContext.updatec                    s@   t d|i}| jjd| j|dI dH }t| j|| jd dS )r&   rD   rE   rF   Nr   r   )r   rJ   r   r'   rC   r
   r   rK   r   r   r   r'      s   
z'ComplianceInquiriesContext.update_asyncc                 C   r(   )r)   r*   c                 s   r+   r,   r-   r/   r   r   r   r3      r4   z6ComplianceInquiriesContext.__repr__.<locals>.<genexpr>z2<Twilio.Trusthub.V1.ComplianceInquiriesContext {}>r5   r8   r   r   r   r:      r;   z#ComplianceInquiriesContext.__repr__)r<   r=   r>   r	   r@   r   r
   r$   r'   r:   rB   r   r   r   r   r   f   s    
r   c                       sx   e Zd Zdef fddZdedefddZdedefdd	Zd
ede	fddZ
d
ede	fddZdefddZ  ZS )ComplianceInquiriesListr   c                    s   t  | d| _dS )zu
        Initialize the ComplianceInquiriesList

        :param version: Version that contains the resource

        z)/ComplianceInquiries/Customers/InitializeN)r   r   rC   )r   r   r   r   r   r      s   
z ComplianceInquiriesList.__init__r!   r   c                 C   s.   t d|i}| jjd| j|d}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
        rD   rE   rF   )r   rJ   r   createrC   r
   rK   r   r   r   rM      s   zComplianceInquiriesList.createc                    s6   t d|i}| jjd| j|dI dH }t| j|S )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
        rD   rE   rF   N)r   rJ   r   create_asyncrC   r
   rK   r   r   r   rN      s   
z$ComplianceInquiriesList.create_asyncr   c                 C      t | j|d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   r   r   r   r         zComplianceInquiriesList.getc                 C   rO   rP   rQ   rR   r   r   r   __call__   rS   z ComplianceInquiriesList.__call__c                 C   s   dS )r)   z,<Twilio.Trusthub.V1.ComplianceInquiriesList>r   r   r   r   r   r:      s   z ComplianceInquiriesList.__repr__)r<   r=   r>   r	   r   r@   r
   rM   rN   r   r   rT   r:   rB   r   r   r   r   rL      s    
rL   N)r?   typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r
   r   rL   r   r   r   r   <module>   s    NN