U
    Vc                     @   sx   d dl mZmZ d dlmZ d dlmZmZ G dd dejZ	G dd dej
ZG dd	 d	ej
ZG d
d dejZdS )    )MinValueValidatorMaxValueValidator)serializers)AbstractUserPlanUserPlanc                   @   s6   e Zd ZejedgdZejededgdZdS )"AbstractUserPlanListInputValidatorr   )
validators   d   N)	__name__
__module____qualname__r   IntegerFieldr   skipr   take r   r   ,/var/www/wikiazma_server/plan/serializers.pyr      s   r   c                   @   s   e Zd ZG dd dZdS )AbstractUserPlanListSerializerc                	   @   s&   e Zd ZeZddddddddd	g	Zd
S )z#AbstractUserPlanListSerializer.Metaidnamedurationpriceactual_pricewage_factor
tax_factormin_wage_feemax_institutes_per_userN)r   r   r   r   modelfieldsr   r   r   r   Meta   s   r   Nr   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZG dd dZdS )UserPlanGetSerializerc                   @   s$   e Zd ZeZddddddddgZd	S )
zUserPlanGetSerializer.Metar   
start_dateend_datepurchased_pricer   r   r   r   N)r   r   r   r   r   r   r   r   r   r   r      s   r   Nr    r   r   r   r   r!      s   r!   c                   @   s   e Zd Ze ZdS )&AbstractUserPlanPurchaseInputValidatorN)r   r   r   r   r   abstract_user_plan_idr   r   r   r   r%      s   r%   N)Zdjango.core.validatorsr   r   rest_frameworkr   plan.modelsr   r   
Serializerr   ModelSerializerr   r!   r%   r   r   r   r   <module>   s   