from enum import Enum

class TokenGenerationStatus(Enum):
    OPEN = "OPEN"
    CLOSED = "CLOSED"
    CANCELLED = "CANCELLED" # this has to be removed later
    

    @classmethod
    def choices(cls):
        return tuple((i.value, i.name) for i in cls)
    
    @classmethod
    def to_list(cls):
        return [e.value for e in cls]
    
    @classmethod
    def to_list_for_reports(cls):
        list = ['ALL']
        return list + TokenGenerationStatus.to_list()