Coverage for website/payments/urls.py: 100.00%
4 statements
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
1from django.urls import include, path
3from .views import (
4 BankAccountCreateView,
5 BankAccountListView,
6 BankAccountRevokeView,
7 PaymentListView,
8 PaymentProcessView,
9)
11app_name = "payments"
13urlpatterns = [
14 path(
15 "user/finance/",
16 include(
17 [
18 path(
19 "accounts/",
20 include(
21 [
22 path(
23 "",
24 BankAccountListView.as_view(),
25 name="bankaccount-list",
26 ),
27 path(
28 "add/",
29 BankAccountCreateView.as_view(),
30 name="bankaccount-add",
31 ),
32 path(
33 "<uuid:pk>/revoke/",
34 BankAccountRevokeView.as_view(),
35 name="bankaccount-revoke",
36 ),
37 ]
38 ),
39 ),
40 path(
41 "payments/",
42 include(
43 [
44 path("", PaymentListView.as_view(), name="payment-list"),
45 path(
46 "<int:year>-<int:month>/",
47 PaymentListView.as_view(),
48 name="payment-list",
49 ),
50 path(
51 "process/",
52 PaymentProcessView.as_view(),
53 name="payment-process",
54 ),
55 ]
56 ),
57 ),
58 ]
59 ),
60 ),
61]