
    kh	                     d    d dl mZ d dlmZmZmZ d dlmZmZm	Z	 e	rd dl
mZ  G d ded         Zy)    )CreateableAPIResource)ClassVarOptionalcast)LiteralUnpackTYPE_CHECKING)ConnectionTokenCreateParamsc                       e Zd ZU dZdZeed      ed<   ee	   ed<   	 ed   ed<   	 e	ed<   	 e
ded   d	d fd
       Ze
ded   d	d fd       Zy)ConnectionTokenz
    A Connection Token is used by the Stripe Terminal SDK to connect to a reader.

    Related guide: [Fleet management](https://stripe.com/docs/terminal/fleet/locations)
    zterminal.connection_tokenOBJECT_NAMElocationobjectsecretparamsr
   returnc                 Z    t        d| j                  d| j                         |            S )
        To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
        r   postr   )r   _static_request	class_urlclsr   s     a/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/terminal/_connection_token.pycreatezConnectionToken.create$   s6        
 	
    c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r   r   r   r   N)r   _static_request_asyncr   r   s     r   create_asynczConnectionToken.create_async4   sD      ++ ,  
 	
s   ,97
	9N)__name__
__module____qualname____doc__r   r   r   __annotations__r   strclassmethodr   r   r     r   r   r   r      s     	$ '"=>?  sm /00 K 
;<
	
 
 
;<
	
 
r   r   N)stripe._createable_api_resourcer   typingr   r   r   typing_extensionsr   r   r	   6stripe.params.terminal._connection_token_create_paramsr
   r   r(   r   r   <module>r-      s2    B + + < <
5
+,=> 5
r   