o
    ۷hj                     @   s&   d dl Z d dlmZ G dd dZdS )    N)payrolldeduction_valc                   @   s   e Zd 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d Zdd Zdd Zd d! ZdS )"'EmployeePaystructure_deductionsResponseNc                 C   s   t j| dd dddS )Nc                 S   s   | j S N)__dict__)o r   W/var/www/FinalPayroll/payrollservice/data/response/emppaystructuredeductionsresponse.py<lambda>   s    z=EmployeePaystructure_deductionsResponse.get.<locals>.<lambda>T   )default	sort_keysindent)jsondumps)selfr   r   r   get   s   z+EmployeePaystructure_deductionsResponse.getc                 C   
   || _ d S r   )idr   r   r   r   r   set_id      
z.EmployeePaystructure_deductionsResponse.set_idc                 C      t || _d S r   )r   type)r   r   r   r   r   set_type      z0EmployeePaystructure_deductionsResponse.set_typec                 C   r   r   )str	from_date)r   r   r   r   r   set_from_date   r   z5EmployeePaystructure_deductionsResponse.set_from_datec                 C   r   r   )r   to_date)r   r   r   r   r   set_to_date   r   z3EmployeePaystructure_deductionsResponse.set_to_datec                 C   r   r   )employee_id)r   r    r   r   r   set_employee_id    r   z7EmployeePaystructure_deductionsResponse.set_employee_idc                 C   r   r   )paycomponent_id)r   r"   r   r   r   set_paycomponent_id#   r   z;EmployeePaystructure_deductionsResponse.set_paycomponent_idc                 C   ,   d | _ |D ]}|j|kr|| _  d S 	 qd S r   )paycomponentr   )r   r%   arrir   r   r   set_paycomponent_val&      
z<EmployeePaystructure_deductionsResponse.set_paycomponent_valc                 C   r$   r   )employeer   )r   r    r&   r'   r   r   r   set_employee_val/   r)   z8EmployeePaystructure_deductionsResponse.set_employee_valc                 C   r   r   )r   amountr   r,   r   r   r   
set_amount8   r   z2EmployeePaystructure_deductionsResponse.set_amountc                 C   r   r   )r   dd_totalr   totalr   r   r   	set_total;   r   z1EmployeePaystructure_deductionsResponse.set_totalc                 C      t |d | _d S N   )r   dd_yearly_totalr0   r   r   r   set_YEARLY_total=      z8EmployeePaystructure_deductionsResponse.set_YEARLY_totalc                 C   r   r   )employee_name)r   emp_namer   r   r   set_emp_name?   r   z4EmployeePaystructure_deductionsResponse.set_emp_namec                 C   r3   r4   )r   yearly_amountr-   r   r   r   set_YEARLY_amountA   r8   z9EmployeePaystructure_deductionsResponse.set_YEARLY_amountc                 C   r   r   )r   deduction_amountr-   r   r   r   set_deduction_amountD   r   z<EmployeePaystructure_deductionsResponse.set_deduction_amountc                 C   r   r   )deduction_idr   r   r   r   set_deduction_idF   r   z8EmployeePaystructure_deductionsResponse.set_deduction_id)__name__
__module____qualname__r   r    r"   r   r   r   r,   r>   r   r   r   r   r   r!   r#   r(   r+   r.   r2   r7   r;   r=   r?   rA   r   r   r   r   r      s2    		r   )r   payrollservice.util.masterutilr   r   r   r   r   r   <module>   s    