o
    ۷h                     @   s&   d dl Z d dlmZ G dd dZdS )    N)get_pf_typec                   @   s   e Zd ZdZdZdZdZdZdZdZ	dd Z
dd Zdd Zdd	 Zd
d Zdd Zdd Zdd Zdd Zdd Zdd Zdd ZdS )EmployeePaystructureResponseNc                 C   s   t j| dd dddS )Nc                 S   s   | j S N)__dict__)o r   M/var/www/FinalPayroll/payrollservice/data/response/emppaystructureresponse.py<lambda>   s    z2EmployeePaystructureResponse.get.<locals>.<lambda>T   )default	sort_keysindent)jsondumps)selfr   r   r   get   s   z EmployeePaystructureResponse.getc                 C   
   || _ d S r   )id)r   r   r   r   r   set_id      
z#EmployeePaystructureResponse.set_idc                 C   r   r   )employee_id)r   r   r   r   r   set_employee_id   r   z,EmployeePaystructureResponse.set_employee_idc                 C      t || _d S r   )strstandard_ctcr   r   r   r   r   set_standard_ctc      z-EmployeePaystructureResponse.set_standard_ctcc                 C      t |d | _d S N   )r   standard_yearly_ctcr   r   r   r   set_standard_yearly_ctc      z4EmployeePaystructureResponse.set_standard_yearly_ctcc                 C   r   r   )
disability)r   r$   r   r   r   set_disability   r   z+EmployeePaystructureResponse.set_disabilityc                 C   r   r   )r   pf_type)r   r&   r   r   r   set_pf_type!   r   z(EmployeePaystructureResponse.set_pf_typec                 C   r   r   )r   is_tds)r   r(   r   r   r   
set_is_tds$   r   z'EmployeePaystructureResponse.set_is_tdsc                 C   r   r   )r   	gross_payr   r*   r   r   r   set_gross_pay'   r   z*EmployeePaystructureResponse.set_gross_payc                 C   r   r   )r   yearly_gross_payr+   r   r   r   set_yearly_gross_pay*   r#   z1EmployeePaystructureResponse.set_yearly_gross_payc                 C   r   r   )r   	take_homer   r/   r   r   r   set_take_home-   r   z*EmployeePaystructureResponse.set_take_homec                 C   r   r   )r   yearly_take_homer0   r   r   r   set_take_home_yearly/   r#   z1EmployeePaystructureResponse.set_take_home_yearly)__name__
__module____qualname__r   r   r   r$   r&   r(   r*   r   r   r   r   r"   r%   r'   r)   r,   r.   r1   r3   r   r   r   r   r      s(    r   )r   payrollservice.util.payrollutilr   r   r   r   r   r   <module>   s    