
    soj                         d dl mZ d dlmZ  G d de          Z eej        dej        dej        dej        dej	        d	ej
        d
i          ZdS )    )IntEnum)LazyPhraseDictc                       e Zd ZdZdZdZdZdZdZde	fdZ
defd	Zeded          fd
            Zeded          fd            ZdefdZdS )BountyLoanStatus                  returnc                     t           |          S )zU
        Get the description of the status.
        :return: The description
        )BOUNTY_LOAN_STATUS_DESCRIPTIONSselfs    (/app/src/model/enums/BountyLoanStatus.pyget_descriptionz BountyLoanStatus.get_description   s    
 /t44    c                 B    | t           j        k    p| t           j        k    S )za
        Check if the status is active.
        :return: True if active, False otherwise
        )r   ACTIVEEXPIREDr   s    r   	is_activezBountyLoanStatus.is_active   s!    
 '..R$:J:R2RRr   c                  2    t           j        t           j        gS )zX
        Get the statuses that are not confirmed.
        :return: The statuses
        )r   AWAITING_LOANER_CONFIRMATIONAWAITING_BORROWER_CONFIRMATION r   r   get_not_confirmed_statusesz+BountyLoanStatus.get_not_confirmed_statuses   s     9;
 	
r   c                  2    t           j        t           j        gS )zP
        Get the statuses that are ended.
        :return: The statuses
        )r   REPAIDFORGIVENr   r   r   get_ended_statusesz#BountyLoanStatus.get_ended_statuses(   s     !')9)BCCr   c                 .    | |                                  v S )zc
        Check if the status has is ended.
        :return: True if ended, False otherwise
        )r!   r   s    r   	has_endedzBountyLoanStatus.has_ended1   s     t..0000r   N)__name__
__module____qualname__r   r   r   r   r   r    strr   boolr   staticmethodlistr   r!   r#   r   r   r   r   r      s        #$ %&"FGFH5 5 5 5 5S4 S S S S 	
-?(@ 	
 	
 	
 \	
 D%7 8 D D D \D14 1 1 1 1 1 1r   r   /BOUNTY_LOAN_STATUS_AWAITING_LOANER_CONFIRMATION1BOUNTY_LOAN_STATUS_AWAITING_BORROWER_CONFIRMATIONBOUNTY_LOAN_STATUS_ACTIVEBOUNTY_LOAN_STATUS_EXPIREDBOUNTY_LOAN_STATUS_REPAIDBOUNTY_LOAN_STATUS_FORGIVENN)enumr   src.utils.LazyPhraseDictr   r   r   r   r   r   r   r    r   r   r   r   <module>r3      s          3 3 3 3 3 311 11 11 11 11w 11 11 11h #1.5=7?!< ">!<!#@# #   r   