""" Defines the urls for checkout app """

from django.urls import path
from . import views
from .webhooks import webhook


urlpatterns = [
    path(
        'booking/<pk>/',
        views.CheckoutView.as_view(),
        name="saved_order"),

    path(
        'booking/',
        views.CheckoutView.as_view(),
        name="create_order"),

    path(
        'success/booking/<pk>/',
        views.CheckoutSuccessView.as_view(),
        name="checkout_success"),

    path("wh/", webhook, name="webhook"),

    path(
        "cache_checkout_data/",
        views.cache_checkout_data,
        name="cache_checkout_data",
    ),
]
