from django.urls import path

from .views import (
    confirm_deal,
    create_dispute_for_deal,
    fund_deal,
    get_deal_by_code,
    join_deal_by_code,
    list_create_deals,
    ship_deal,
)

urlpatterns = [
    path("deals", list_create_deals),
    path("deals/<str:code>", get_deal_by_code),
    path("deals/<str:code>/join", join_deal_by_code),
    path("deals/<uuid:deal_id>/fund", fund_deal),
    path("deals/<uuid:deal_id>/ship", ship_deal),
    path("deals/<uuid:deal_id>/confirm", confirm_deal),
    path("deals/<uuid:deal_id>/dispute", create_dispute_for_deal),
]
