o
    i	                     @   s\   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 ded ZdS )    )CreateableAPIResource)ClassVarOptionalcast)LiteralUnpackTYPE_CHECKING)ConnectionTokenCreateParamsc                   @   s   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
dZe
ded d	d fddZdS )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                 K   s   t d| jd|  |d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    r   /var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/terminal/_connection_token.pycreate$   s   zConnectionToken.createc                    s"   t d| jd|  |dI dH S )r   r
   r   r   N)r   _static_request_asyncr   r   r   r   r   create_async4   s   
zConnectionToken.create_asyncN)__name__
__module____qualname____doc__r   r   r   __annotations__r   strclassmethodr   r   r   r   r   r   r   r
      s,   
 r
   N)stripe._createable_api_resourcer   typingr   r   r   typing_extensionsr   r   r   6stripe.params.terminal._connection_token_create_paramsr	   r
   r   r   r   r   <module>   s   