Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Replacing all Fyle Strings with enums #277

Merged
merged 3 commits into from
Nov 29, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions apps/fyle/enums.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
"""
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'
Loading