o
    e                     @   sP   d dl T ddlmZmZmZ ddlT ddlT G dd deZG dd deZdS )    )*   )ListResponseObjectPlivoResourcePlivoResourceInterfacec                   @   s   e Zd Zd ZdZdS )ProfileProfile_uuidN)__name__
__module____qualname___name_identifier_string r   r   J/var/www/html/venv/lib/python3.10/site-packages/plivo/resources/profile.pyr      s    r   c                   @   s  e Zd ZeZeeejgddd Z	ee
eej ge
eeej edd dgddd	d
Zeeejgddd Zee
eejgeeejgeeejgeeejge
eejge
eejge
eejge
eejge
eejgeeejge
eejge
eejge
eejge
eege
eegdddddddddi i f
ddZdddZdS )r   )profile_uuidc                 C   s   | j jdd|fd dS )NGETr   )response_typeclientrequestselfr   r   r   r   get   s   
zProfile.getc                 C   s   d| kS )Nr   r   )offsetr   r   r   <lambda>   s    zProfile.<lambda>z0 <= offset)limitr   Nc                 C   s2   i }|r||d< |r||d< | j jdd|d d dS )Nr   r   r   r   r   objects_typer   )r   r   r   paramsr   r   r   list   s   	zProfile.listc                 C   s   | j jdd|fd d dS )NDELETEr   r   r   r   r   r   r   delete(   s
   zProfile.delete)profile_aliascustomer_typeentity_typecompany_nameeinein_issuing_countrystock_symbolstock_exchangewebsiteverticalalt_business_idalt_business_id_typeplivo_subaccountaddressauthorized_contact c                 C   s   | j ddt| jt S )NPOSTr   )r   r   to_param_dictcreatelocals)r   r#   r$   r%   r&   r,   r-   r.   r/   r'   r(   r)   r*   r+   r0   r1   r   r   r   r5   /   s   
 zProfile.createc                 C   s$   |d krt d| jdd|f|S )Nz,required atleast one of powerpack attributesr3   r   )ValidationErrorr   r   )r   r   r   r   r   r   updateU   s
   zProfile.update)NN)N)r	   r
   r   r   _resource_typevalidate_argsof_typesix	text_typer   optionalinteger_typesall_ofcheckr    r"   requiredof_type_exactdictr5   r8   r   r   r   r   r      s\    

N)plivo.utils.validatorsbaser   r   r   
exceptionsutilsr   r   r   r   r   <module>   s   