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

Add payment enum #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all 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
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']