Files
i701 9c082aedf2
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m38s
feat(telegram): implement asynchronous Telegram alert system and enhance user verification messaging
2025-07-27 21:56:59 +05:00

57 lines
1.6 KiB
Python

# billing/urls.py
from django.urls import path
from .views import (
ListCreatePaymentView,
VerifyPaymentView,
PaymentDetailAPIView,
UpdatePaymentAPIView,
CancelPaymentView,
ListCreateTopupView,
VerifyTopupPaymentAPIView,
TopupDetailAPIView,
CancelTopupView,
ListWalletTransactionView,
AdminTopupCreateView,
# AlertTestView,
)
urlpatterns = [
path("payment/", ListCreatePaymentView.as_view(), name="create-payment"),
path("payment/<str:pk>/", PaymentDetailAPIView.as_view(), name="retrieve-payment"),
path(
"payment/<str:pk>/update/",
UpdatePaymentAPIView.as_view(),
name="update-payment",
),
path(
"payment/<str:pk>/cancel/",
CancelPaymentView.as_view(),
name="cancel-payment",
),
path(
"payment/<str:pk>/verify/", VerifyPaymentView.as_view(), name="verify-payment"
),
# Topups
path("topup/", ListCreateTopupView.as_view(), name="create-list-topups"),
path("topup/<str:pk>/", TopupDetailAPIView.as_view(), name="retrieve-topup"),
path(
"topup/<str:pk>/verify/",
VerifyTopupPaymentAPIView.as_view(),
name="verify-topup-payment",
),
path("admin-topup/", AdminTopupCreateView.as_view(), name="admin-topup"),
path(
"topup/<str:pk>/cancel/",
CancelTopupView.as_view(),
name="cancel-topup",
),
# Wallet transactions
path(
"wallet-transactions/",
ListWalletTransactionView.as_view(),
name="list-wallet-transactions",
),
# Test tg notification
# path("test-alert/", AlertTestView.as_view(), name="test-alert"),
]