Skip to content

Commit

Permalink
Add payment enum
Browse files Browse the repository at this point in the history
  • Loading branch information
sks444 committed Jun 1, 2020
1 parent d3ea3e6 commit 4889a3f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ak_vendor/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ class Meta:
VALIDATE_FAILED = [5, 'Failed to validate the file']
ANALYZE_PREPARE = [6, 'Preparing to analyze the file']
ANALYZING = [7, 'The file is being analyzed']
SELECT_PLAN = [8, 'Plan selection is needed to proceed further']
CANCELLED = [9, 'This submission is canceled']


@choices
Expand Down Expand Up @@ -420,3 +422,26 @@ class Meta:
NONE = [0, 'None']
TOTP = [1, 'TOTP']
HOTP = [2, 'HOTP']


@choices
class OneTimeScanStatusEnum:
class Meta:
ACTIVE = [0, 'Active']
EXPIRED = [1, 'Expired']


@choices
class SubscriptionStatusEnum:
class Meta:
ACTIVE = [0, 'Active']
CANCELLED = [1, 'Cancelled']
EXPIRED = [2, 'Expired']
INVALID_CARD = [3, 'Invalid Card']


@choices
class PlanTypeEnum:
class Meta:
SUBSCRIPTION = [0, 'Subscription']
ONETIME = [1, 'Onetime']

0 comments on commit 4889a3f

Please sign in to comment.