From 5c0fc1aee23f4684edb04457f55a8c10dab1abdc Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 3 Sep 2026 00:39:45 +0545 Subject: [PATCH] feat: define gateway, mode and action enums --- nepali_payment/enums.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nepali_payment/enums.py diff --git a/nepali_payment/enums.py b/nepali_payment/enums.py new file mode 100644 index 0000000..063ccd6 --- /dev/null +++ b/nepali_payment/enums.py @@ -0,0 +1,25 @@ +from enum import Enum + + +class PaymentMethod(str, Enum): + """Supported payment gateways""" + + ESEWA = "Esewa" + KHALTI = "Khalti" + FONEPAY = "FonePay" + CONNECTIPS = "ConnectIps" + + +class PaymentMode(str, Enum): + """Environment mode controlling which endpoints are used""" + + SANDBOX = "Sandbox" + PRODUCTION = "Production" + + +class PaymentAction(str, Enum): + """The operation to perform against a gateway""" + + PROCESS_PAYMENT = "ProcessPayment" + VERIFY_PAYMENT = "VerifyPayment" + CHECK_PAYMENT = "CheckPayment"