a
    ù!f
  ã                   @   s\   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„ ded ƒZdS )é    )ÚCreateableAPIResource)ÚRequestOptions)ÚClassVarÚListÚOptionalÚcast)ÚLiteralÚNotRequiredÚUnpackc                	   @   sˆ   e Zd ZU dZdZeed  ed< G dd„ deƒZ	e
e ed< ed ed< eed< ede
e e
e e
e e
e ed
 d dœ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_NAMEc                   @   s&   e Zd ZU ed ed< ed ed< dS )úConnectionToken.CreateParamsz	List[str]ÚexpandÚstrÚlocationN)Ú__name__Ú
__module__Ú__qualname__r	   Ú__annotations__© r   r   úo/var/www/html/python-backend/venv/lib/python3.9/site-packages/stripe/api_resources/terminal/connection_token.pyÚCreateParams   s   
r   r   ÚobjectÚsecretNr   )Úapi_keyÚidempotency_keyÚstripe_versionÚstripe_accountÚparamsÚreturnc                 K   s    t d|  d|  ¡ |||||¡ƒS )zé
        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   Z_static_requestZ	class_url)Úclsr   r   r   r   r   r   r   r   Úcreate+   s    ùþzConnectionToken.create)NNNN)r   r   r   Ú__doc__r   r   r   r   r   r   r   r   Úclassmethodr
   r"   r   r   r   r   r   	   s0   
þÿ
    ûÿ÷r   N)Zstripe.api_resources.abstractr   Zstripe.request_optionsr   Útypingr   r   r   r   Ztyping_extensionsr   r	   r
   r   r   r   r   r   Ú<module>   s   