mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-09-17 23:58:13 +00:00
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m38s
57 lines
1.6 KiB
Python
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"),
|
|
]
|