from django.urls import path
from . import views

app_name = "vendors"

urlpatterns = [
    # ── Registration & subscription ───────────────────────────────
    path("register/", views.vendor_register, name="register"),
    path("subscription/verify/", views.vendor_subscription_verify, name="subscription_verify"),
    path("subscription/webhook/", views.vendor_subscription_webhook, name="subscription_webhook"),
    path("subscription/required/", views.subscription_required_page, name="subscription_required"),
    path("subscription/renew/", views.subscription_renew, name="subscription_renew"),

    # ── Dashboard & products ──────────────────────────────────────
    path("dashboard/", views.vendor_dashboard, name="dashboard"),
    path("products/add/", views.vendor_add_product, name="add_product"),
    path("products/<int:product_id>/edit/", views.vendor_edit_product, name="edit_product"),
    path("products/<int:product_id>/delete/", views.vendor_delete_product, name="delete_product"),
    path("images/<int:image_id>/delete/", views.vendor_delete_image, name="delete_image"),

    # ── Orders & settings ─────────────────────────────────────────
    path("orders/", views.vendor_orders, name="orders"),
    path("orders/<uuid:order_id>/status/", views.vendor_update_order_status, name="update_order_status"),
    path("settings/", views.vendor_settings, name="settings"),
]