Skip to content

Commit

Permalink
Fix: Replacing all strings with enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Shwetabhk committed Nov 29, 2023
1 parent 0721b39 commit 1f9e70e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions apps/fyle/enums.py
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'

0 comments on commit 1f9e70e

Please sign in to comment.