
    ¸f                      R   d Z ddlmZ ddlmZ ddlmZmZ ddlm	Z	 ddlmZ ddlmZmZ ddl
mZ ddlmZmZmZmZmZmZmZmZ ddlmZ dd	lmZmZ dd
lmZ ddlmZ ddlmZ  e ej@                  dddd ejB                  d       ejD                  d            dejF                  f      Z$ e ej@                  dddd ejB                  d       ejD                  d            dejF                  f ed ed             ed ed            gd !      Z% ed"ed#       ed$ed%       ed&ejL                  jN                         ed ed'             ed ed             ed( ejP                         d)       ed* ed+             ed,e%jS                  d-d.      d/       ed ed             ed0ed1       ed2ed3       ed4 ejP                         d5      g e	ejT                  ejV                  6      z    e	ejX                  ejZ                  6      z   Z.y7)8aj  tixsell URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.tixsell.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
    )admin)url)pathinclude)static)TemplateView)!StripeShifterAccountReturnURLView"StripeShifterAccountURLRefreshViewsignuphomewebhookAlchemywebhookStripewebhookStripeTestinvoice)settings)TokenObtainPairViewTokenRefreshView)permissions)get_schema_view)openapizSellTix APIv1zSellTix API descriptionz&https://www.google.com/policies/terms/zcsurbier@selltix.live)emailzBSD License)name)titledefault_versiondescriptionterms_of_servicecontactlicenseF)publicpermission_classeszSellTix Partner APIa  
      <br>
         <img src="https://www.selltix.live/assets/imgs/logo_selltix@3x.png" width="350"><br>
        <h2>SellTix Partner API description</h2>
        <br>
        This documentation is for organizers who want to sell tickets on the SellTix platform but without the complexity of 
        the blockchain. SellTix will manage the blockchain transactions for you.<br><br>
        <b>Note:</b> To use the API, you will require a SellTix account. If you don't have one, please contact us at <a href="mailto:contact@selltix.live">contact@selltix.live</a>.
        We will send you credentials to be able to authenticate with the API and then use the endpoints available in this API.
        <br><br>To receive your payments automatically from your tickets sales, you will need to have a <a href="https://api.selltix.live/partner_api/signup/" target="_blank">Stripe account and link it with the SellTix platform</a>. 
       <br><br>
       
       <h2>How to use the API</h2>
       <br>
       <b>1. Get a JWT Token to be authentified and be able to use the API.</b><br>
        <br>
       To get a JWT Token, you will need to send a POST request with your email and password credentials to the following endpoint: <a href="https://api.selltix.live/redoc_partner_api/#tag/auth/operation/auth_jwt_create_create" target="_blank">/auth/jwt/create/</a>
       <br>
       <pre>
       <code>
            curl --location --request POST 'https://api.selltix.live/auth/jwt/create/' 
            --header 'Content-Type: application/json' 
            --data-raw '{  
                "email":"your_email_credentials", 
                "password":"your_password_credential" 
            }'
       </code>
       </pre>
       <br>You will receive a JWT Token as a response. 
       <br>
       <pre>
       <code>
             {
    "refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTczNzY1MzkzMSwianRpIjoiZGE3MjBlMmZlYmE4NGQ5ZTgxZGRkNzI5NDUxOGFkZjMiLCJ1c2VyX2lkIjoiMzgzZmE3MWQtZWJjMi00MjczLWI2NGYtNzEwZTc0NmI0ZjU2In0.2Fx1dn2oeA2IyBm8zDHtF2fig9FZ_UJkYfmw_dzi9fk",
    "access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzIyMTA5MTMxLCJqdGkiOiJmM2FkNzI2Y2VhZTI0NTJiOGQ2ZmM2ODJhMDhmMDc0NiIsInVzZXJfaWQiOiIzODNmYTcxZC1lYmMyLTQyNzMtYjY0Zi03MTBlNzQ2YjRmNTYifQ.lmvzfxaeQDx-rl__Ddol_TWBFc6I5r6cgcp2bSdcK04"
            }
        </code>
        </pre>
        <br>
        <b>2. Use the JWT Token to access the API endpoints.</b><br>
        <br>
        To use the API endpoints, you will need to send a "Authorization" header with the value "Bearer your_jwt_token". <i>your_jwt_token</i> is the access variable you received in the previous step.
        <br><br><b>Note:</b> The JWT Token will expire after 2 hours. You will need to get a new JWT Token to be able to use the API again or use the refresh token to get a new JWT Token.
        <br><br>
        <b>3. Register as an event organizer</b><br>
         <br>
        To register as an event organizer, you will need to send a POST request to the following endpoint: <a href="https://api.selltix.live/redoc_partner_api/#tag/Events/operation/register" target="_blank">/register/</a>
         and pass your main information
        <br><br>
        <b>4. Create and manage your events</b><br>
        <br>To create, update or get your events, please refer to the <a href="https://api.selltix.live/redoc_partner_api/#tag/Events" target="_blank">Events section</a> of this documentation.
        <br><br><b>Note:</b> You will need to create at least one ticket to be able to <b>publish your event</b>.
        <br><br>
        <b>5. Create and manage your tickets</b><br>
        <br>To manage your tickets, please refer to the <a href="https://api.selltix.live/redoc_partner_api/#tag/Tickets" target="_blank">Tickets section</a> of this documentation.
        <br><br>
        Once you have created your tickets, you will need to <b>publish</b> your event to be able to sell tickets. To publish your event, you need to call the 
        <a href="https://api.selltix.live/redoc_partner_api/#tag/Events/operation/publishEvent" target="_blank">publish</a> endpoint.
        <br>An event can be published only once and cannot be unpublished. It will automatically create on blockchain the event and the tickets.<br>
         <br><br><b>Note:</b><i>The blockchain publication is an asynchronous task. Once done you will be notify on the webhook url you have specified during your registration.</i>
        zcontact@selltix.liveTzpartner_api/zapi_partner.urlszauth/zdjoser.urls.jwtzhttps://api.selltix.live)r    r!   patternsr   zwebhook/r   zhome/r   zadmin/zdjoser.urlszapi/token/refresh/token_refreshzapi/zapi.urlszredoc_partner_api/redoc)cache_timeoutzschema-redoc-partnerzwebhookStripeTest/r   zwebhookStripe/r   zinvoice/<uuid>/r   )document_rootN)/__doc__django.contribr   django.template.defaulttagsr   django.urlsr   r   django.conf.urls.staticr   django.views.genericr   backoffice.viewsr	   r
   r   r   r   r   r   r   tixsellr   rest_framework_simplejwt.viewsr   r   rest_frameworkr   drf_yasg.viewsr   drf_yasgr   InfoContactLicenseAllowAnyschema_viewschema_view_partnersiteurlsas_viewwith_ui
STATIC_URLSTATIC_ROOT	MEDIA_URL
MEDIA_ROOTurlpatterns     /Users/christophesurbier/Dropbox/Mon Mac (MacBook-Air-de-christophe.local)/Documents/Programmation/SellTix/tixsellbackend/tixsell/urls.py<module>rE      sL   ! + % *   % - h  h  h  ' * 7<<+?goo$;<goo=1 "++- &7<<!<V @goo$:;goo=1aQd "++-NG$678GW./0	 "s[ | 	^*:;$V$5::??#'-()'+,-	7/779P$%	2::7RS:T[qr!345	07JK	=?	OGOO-I>$ 
(

X-A-AB%C$ EK8K]K]mu  nA  nA  EB%BrC   