From fab10c1aaad0aa048edaeb493febba82da1c20a1 Mon Sep 17 00:00:00 2001 From: Shrikrishna Singh Date: Wed, 22 Jan 2020 20:09:37 +0530 Subject: [PATCH] Add payment enum --- ak_vendor/enums.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ak_vendor/enums.py b/ak_vendor/enums.py index 04a4837..8730825 100644 --- a/ak_vendor/enums.py +++ b/ak_vendor/enums.py @@ -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']