"""
Routage des endpoints exposes par le module dgi.

Ce fichier declare les routes de simulation ou de relais utilisees pour les
appels de creation, confirmation, annulation et consultation DGI.
"""



from django.urls import path

from .views import *
from rest_framework.routers import DefaultRouter

app_name = 'dgi'


urlpatterns = [

    # FACTURATION
    path("invoice/", InvoiceRootView.as_view(), name="edef-invoice-root"),

    path("invoice/<str:uid>/", InvoiceDetailView.as_view(), name="edef-invoice-detail"),

    path("invoice/<str:uid>/confirm/", InvoiceConfirmView.as_view(), name="edef-invoice-confirm"),
    
    path("invoice/<str:uid>/cancel/", InvoiceCancelView.as_view(), name="edef-invoice-cancel"),

    # INFORMATION
    path("info/status/", InfoStatusView.as_view(), name="edef-info-status"),#statut
    path("info/tax-groups/", InfoTaxGroupsView.as_view(), name="edef-info-tax-groups"),#groupe de taxe
    path("info/invoice-types/", InfoInvoiceTypesView.as_view(), name="edef-info-invoice-types"),#type de facture
    path("info/payment-types/", InfoPaymentTypesView.as_view(), name="edef-info-payment-types"),#type de paiement
    path("info/client-types/", InfoClientTypesView.as_view(), name="edef-info-client-types"),#type de client
    path("info/reference-types/", InfoReferenceTypesView.as_view(), name="edef-info-reference-types"),
    path("info/item-types/", InfoItemTypesView.as_view(), name="edef-info-item-types"), #type d'article
    path("info/currency-rates/", InfoCurrencyRatesView.as_view(), name="edef-info-currency-rates"), #devise

    #path('lignecmd/<str:commande_id>/', lignecmd, name='lignecmd'),


]