o
    vwg                     @   s4   d dl mZ G dd dejZG dd dejZdS )    )modelsc                   @   st   e Zd ZejddZejddZejddZejddZejdddgdZ	ej
ddZejd	d
dgdZdd ZdS )DarajaAPIConfiguration   
max_lengthd   2   )Till Numberr	   )Paybillr
   )r   choices   
   )sandboxSandbox)
production
Productionc                 C      | j  d| j S Nz - )business_short_codeenvironmentself r   (/var/www/html/kangema/payments/models.py__str__      zDarajaAPIConfiguration.__str__N)__name__
__module____qualname__r   	CharFieldr   lipa_na_mpesa_online_passkeyconsumer_keyconsumer_secretshortcode_typeURLFieldcallback_urlr   r   r   r   r   r   r      s    r   c                   @   sj   e Zd ZejddZejdddZejddddZejd	g d
ddZ	ej
ddZej
ddZdd ZdS )PaymentTransaction   r   r      )
max_digitsdecimal_placesr   T)r   blanknullr   ))pendingPending)successSuccess)failedFailedr-   )r   r   default)auto_now_add)auto_nowc                 C   r   r   )phone_numberamountr   r   r   r   r      r   zPaymentTransaction.__str__N)r   r   r   r   r   r6   DecimalFieldr7   transaction_idstatusDateTimeField
created_at
updated_atr   r   r   r   r   r&      s    r&   N)	django.dbr   Modelr   r&   r   r   r   r   <module>   s   