
    <@g,                     d    d dl mZ d dlmZ d dlmZmZmZmZ d dl	m
Z
mZmZ  G d ded         Zy)    )CreateableAPIResource)RequestOptions)ClassVarListOptionalcast)LiteralNotRequiredUnpackc                       e Zd ZU dZdZeed      ed<    G d de      Z	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_NAMEc                   6    e Zd ZU eee      ed<   	 ee   ed<   y)ConnectionToken.CreateParamsexpandlocationN)__name__
__module____qualname__r
   r   str__annotations__     `/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/terminal/_connection_token.pyCreateParamsr      s(    DI&&	 c""	r   r   r   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     r   createzConnectionToken.create+   s6        
 	
r   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_async;   sD      ++ ,  
 	
s   ,97
	9N)r   r   r   __doc__r   r   r	   r   r   r   r   r   classmethodr   r(   r+   r   r   r   r   r   	   s     	$ '"=>? ~  sm /00 K 
<=
	
 
 
<=
	
 
r   r   N)stripe._createable_api_resourcer   stripe._request_optionsr   typingr   r   r   r   typing_extensionsr	   r
   r   r   r   r   r   <module>r2      s/    B 2 1 1 : :@
+,=> @
r   