
    Dhx	                     ^    S SK Jr  S SKJr  S SKJr  S SKJrJr  S SK	J
r
Jr   " S S\5      rg)	    )RequestOptions)StripeService)ConnectionToken)Listcast)NotRequired	TypedDictc                   f    \ rS rSr " S S\5      r0 0 4SSS\S\4S jjr0 0 4SSS\S\4S	 jjr	S
r
g)ConnectionTokenService
   c                   >    \ rS rSr% \\\      \S'    \\   \S'   Srg)#ConnectionTokenService.CreateParams   expandlocation N)	__name__
__module____qualname____firstlineno__r   r   str__annotations____static_attributes__r       l/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/terminal/_connection_token_service.pyCreateParamsr      s(    DI&&	 c""	r   r   paramsr   optionsreturnc                 D    [        [        U R                  SSSUUS95      $ )
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.
post/v1/terminal/connection_tokensapibase_addressr   r   )r   r   _requestselfr   r   s      r   createConnectionTokenService.create   s4     MM0"  	
 		
r   c                 `   #    [        [        U R                  SSSUUS9I Sh  vN 5      $  N7f)r!   r"   r#   r$   r%   N)r   r   _request_asyncr(   s      r   create_async#ConnectionTokenService.create_async(   sC      %%0" &  	
 		
s   !.,
	.r   N)r   r   r   r   r	   r   r   r   r*   r.   r   r   r   r   r   r   
   se    y  9;"$
5
  
 
	
* 9;"$
5
  
 
	
 
r   r   N)stripe._request_optionsr   stripe._stripe_servicer   !stripe.terminal._connection_tokenr   typingr   r   typing_extensionsr   r	   r   r   r   r   <module>r5      s"    3 0 =  4/
] /
r   