feat(billing): WIP Add Topup model, filters, serializers, and views for topup management

This commit is contained in:
2025-07-03 17:13:25 +05:00
parent bae0882879
commit c07d3c93d2
7 changed files with 172 additions and 7 deletions

View File

@ -6,6 +6,8 @@ from .views import (
PaymentDetailAPIView,
UpdatePaymentAPIView,
DeletePaymentView,
ListCreateTopupView,
VerifyTopupPaymentAPIView,
)
urlpatterns = [
@ -24,4 +26,12 @@ urlpatterns = [
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",
),
]