From 4889a3f36f63e3c1c15b5ce0cab3afd7a4fa8911 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ak_vendor/enums.py b/ak_vendor/enums.py index 04a4837..76a73c1 100644 --- a/ak_vendor/enums.py +++ b/ak_vendor/enums.py @@ -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 @@ -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']