-
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 Fyle Strings with enums (#277)
- Loading branch information
Showing
4 changed files
with
95 additions
and
33 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
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,53 @@ | ||
""" | ||
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' | ||
|
||
EMPLOYEE = 'EMPLOYEE' | ||
EMPLOYEE_DISPLAY = 'Employee' | ||
|
||
|
||
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' | ||
REIMBURSEMENT_COMPLETE = 'COMPLETE' | ||
REIMBURSEMENT_PENDING = 'PENDING' |
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
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