Skip to content

Commit

Permalink
Add payment enum
Browse files Browse the repository at this point in the history
  • Loading branch information
sks444 committed Jan 22, 2020
1 parent d3ea3e6 commit fab10c1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ak_vendor/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,3 +420,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 fab10c1

Please # to comment.