21 lines
509 B
Python
21 lines
509 B
Python
from enum import Enum
|
|
|
|
|
|
class InvoiceStatus(str, Enum):
|
|
""" An enum representing the possible values of an `Invoice`'s `status` field. """ # noqa: E501
|
|
"""# Deleted. """ # noqa: E501
|
|
DELETED = 'deleted'
|
|
"""# Draft. """ # noqa: E501
|
|
DRAFT = 'draft'
|
|
"""# Open. """ # noqa: E501
|
|
OPEN = 'open'
|
|
"""# Paid. """ # noqa: E501
|
|
PAID = 'paid'
|
|
"""# Uncollectible. """ # noqa: E501
|
|
UNCOLLECTIBLE = 'uncollectible'
|
|
"""# Void. """ # noqa: E501
|
|
VOID = 'void'
|
|
|
|
def __str__(self) -> str:
|
|
return str(self.value)
|