-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Replacing all strings with enums
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
""" | ||
This file contains all the enums used in the Fyle app | ||
""" | ||
|
||
class FundSourceEnum: | ||
""" | ||
Enum for Fund Source | ||
""" | ||
PERSONAL = 'PERSONAL' | ||
CCC = 'CCC' | ||
|
||
|
||
class FyleAttributeEnum: | ||
""" | ||
Enum for Fyle Attributes | ||
""" | ||
CATEGORY = 'CATEGORY' | ||
CATEGORY_DISPLAY = 'Category' | ||
|
||
PROJECT = 'PROJECT' | ||
PROJECT_DISPLAY = 'Project' | ||
|
||
COST_CENTER = 'COST_CENTER' | ||
COST_CENTER_DISPLAY = 'Cost Center' | ||
|
||
CORPORATE_CARD = 'CORPORATE_CARD' | ||
CORPORATE_CARD_DISPLAY = 'Corporate Card' | ||
|
||
TAX_GROUP = 'TAX_GROUP' | ||
TAX_GROUP_DISPLAY = 'Tax Group' | ||
|
||
|
||
class ExpenseStateEnum: | ||
""" | ||
Enum for Expense State | ||
""" | ||
APPROVED = 'APPROVED' | ||
PAYMENT_PROCESSING = 'PAYMENT_PROCESSING' | ||
PAID = 'PAID' | ||
|
||
|
||
class PlatformExpensesEnum: | ||
""" | ||
Enum for Platform Expenses | ||
""" | ||
PERSONAL_CASH_ACCOUNT = 'PERSONAL_CASH_ACCOUNT' | ||
PERSONAL_CORPORATE_CREDIT_CARD_ACCOUNT = 'PERSONAL_CORPORATE_CREDIT_CARD_ACCOUNT' |