Files
sarlink-portal-api/billing/urls.py
i701 1554829b9a
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m42s
feat(wallet): implement wallet transaction model, views, and serializers for fund management
2025-07-25 14:38:34 +05:00

52 lines
1.4 KiB
Python

# billing/urls.py
from django.urls import path
from .views import (
ListCreatePaymentView,
VerifyPaymentView,
PaymentDetailAPIView,
UpdatePaymentAPIView,
CancelPaymentView,
ListCreateTopupView,
VerifyTopupPaymentAPIView,
TopupDetailAPIView,
CancelTopupView,
ListWalletTransactionView,
)
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(
"topup/<str:pk>/cancel/",
CancelTopupView.as_view(),
name="cancel-topup",
),
# Wallet transactions
path(
"wallet-transactions/",
ListWalletTransactionView.as_view(),
name="list-wallet-transactions",
),
]