mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
Refactor UpdatePaymentSerializer to include only number_of_months field, add DeletePaymentView for payment deletion, and enhance VerifyPaymentView with payment_id lookup. Introduce pending_payment_id field in DeviceSerializer to track unpaid payments.
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m18s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m18s
This commit is contained in:
@ -5,6 +5,7 @@ from .views import (
|
||||
VerifyPaymentView,
|
||||
PaymentDetailAPIView,
|
||||
UpdatePaymentAPIView,
|
||||
DeletePaymentView,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
@ -15,5 +16,12 @@ urlpatterns = [
|
||||
UpdatePaymentAPIView.as_view(),
|
||||
name="update-payment",
|
||||
),
|
||||
path("verify-payment/", VerifyPaymentView.as_view(), name="verify-payment"),
|
||||
path(
|
||||
"payment/<str:pk>/delete/",
|
||||
DeletePaymentView.as_view(),
|
||||
name="delete-payment",
|
||||
),
|
||||
path(
|
||||
"payment/<str:pk>/verify/", VerifyPaymentView.as_view(), name="verify-payment"
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user