Skip to content

Commit

Permalink
feat: 결제 및 영수증 관련 urls 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoo117 committed Oct 8, 2024
1 parent 7e891d9 commit 710a13d
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions payments/urls.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,43 @@
from django.urls import path
from .views import (
CartItemListCreateView,
CartItemDestroyView,
OrderItemListCreateView,
OrderItemDestroyView,
CartToOrderConversionView,
CartView,
OrderView,
UserBillingAddressView,
PaymentView,
ReceiptView,
)

app_name = "payments"

urlpatterns = [
path("cart/", CartItemListCreateView.as_view(), name="cart"),
path("cart/item/<int:pk>/", CartItemDestroyView.as_view(), name="cart-item"),
path("order/", OrderItemListCreateView.as_view(), name="order"),
# 장바구니 관련 URLs
path("cart/", CartView.as_view(), name="cart-list-create"),
path("cart/<int:pk>/", CartView.as_view(), name="cart-item-delete"),
# 주문 관련 URLs
path("orders/", OrderView.as_view(), name="order-list-create"),
path("orders/<int:pk>/", OrderView.as_view(), name="order-detail"),
# 청구 주소 관련 URLs
path(
"order/item/<int:pk>/",
OrderItemDestroyView.as_view(),
name="order-item",
"billing-addresses/",
UserBillingAddressView.as_view(),
name="billing-address-list-create",
),
path(
"billing-addresses/<int:pk>/",
UserBillingAddressView.as_view(),
name="billing-address-detail",
),
# 결제 관련 URLs
path(
"payments/<int:order_id>/",
PaymentView.as_view(),
name="payment",
),
# 영수증 관련 URLs
path("receipts/", ReceiptView.as_view(), name="receipt-list"),
path(
"receipts/<int:payment_id>/",
ReceiptView.as_view(),
name="receipt-detail",
),
path("cart-to-order/", CartToOrderConversionView.as_view(), name="cart-to-order"),
]

0 comments on commit 710a13d

Please sign in to comment.