From 6c23a21060e3e09a48f4f389a5dcebfd5e611de2 Mon Sep 17 00:00:00 2001 From: Ben Millar Date: Wed, 20 Mar 2024 17:26:42 +0000 Subject: [PATCH] Added Choices constant for the three callback types --- cla_common/constants.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cla_common/constants.py b/cla_common/constants.py index 22c8231..2039d3f 100644 --- a/cla_common/constants.py +++ b/cla_common/constants.py @@ -41,6 +41,16 @@ ("PROVIDER", "2_provider", "Provider"), ) +CALLBACK_TYPES = Choices( + # constant, db_id, friendly string + # Callback requested by a CHS Operator + ("OPERATOR", "chs_operator", "CHS Operator"), + # Callback requested for self via checker + ("CHECKER_SELF", "web_form_self", "Web Form - Self"), + # Callback requested for a third-party via checker + ("CHECKER_THIRD_PARTY", "web_form_third_party", "Web Form - Third Party"), +) + CALLBACK_WINDOW_TYPES = Choices( # constant, db_id, friendly string (