U
    Vc'                     @   s   d dl mZ d dlmZmZ d dlmZ ddlmZ d dl	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G dd dejZdS )    )serializers)MinValueValidatorMaxValueValidator)IncludeExcludeOnlyValidator   )conf)Transactionc                   @   s*   e Zd ZejejejdZej	ddZ
dS )PaymentCreateInputSerializer)	min_value	max_valueFrequiredN)__name__
__module____qualname__r   IntegerFieldr   Zmin_amount_in_paymentZmax_amount_in_paymentamount	JSONFieldmeta r   r   //var/www/wikiazma_server/payment/serializers.pyr	   	   s
    r	   c                   @   s$   e Zd ZejddZejddZdS )PaymentVerifyInputSerializerTr   N)r   r   r   r   	CharFieldStatus	Authorityr   r   r   r   r      s   r   c                   @   s   e Zd ZejddZdS )TransactionGetInputSerializerTr   N)r   r   r   r   r   	authorityr   r   r   r   r      s   r   c                   @   sF   e Zd Zeje gdZejedgdZ	ejede
dgdZdS )TransactionListInputSerializer)
validatorsr   r   d   N)r   r   r   r   r   r   success_filterr   r   skipr   taker   r   r   r   r      s   r   c                   @   s   e Zd ZG dd dZdS )TransactionModelSerializerc                   @   s    e Zd ZeZddddddgZdS )zTransactionModelSerializer.Metar   ref_idstatusr   r   
created_atN)r   r   r   r   modelfieldsr   r   r   r   Meta"   s     r)   N)r   r   r   r)   r   r   r   r   r#   !   s   r#   N)rest_frameworkr   Zdjango.core.validatorsr   r   utils.validatorsr    r   payment.modelsr   
Serializerr	   r   r   r   ModelSerializerr#   r   r   r   r   <module>   s   