
    Aik                         d dl mZ d dlmZ d dlmZmZ d dlmZ erd dl	m
Z
 d dlmZ d dlmZ d dlmZ  G d	 d
e      Zy)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)RequestOptions)Token)TokenCreateParams)TokenRetrieveParamsc            	           e Zd Z	 	 ddeded   ded   ddfd	Z	 	 ddeded   ded   ddfd
Z	 	 dded   ded   ddfdZ	 	 dded   ded   ddfdZy)TokenServiceNtokenparamsr   optionsr   returnr	   c                 t    t        d| j                  ddj                  t        |            d||            S )8
        Retrieves the token with the given ID.
        r	   get/v1/tokens/{token}r   apibase_addressr   r   )r   _requestformatr   selfr   r   r   s       H/var/www/html/immo/lib/python3.12/site-packages/stripe/_token_service.pyretrievezTokenService.retrieve   sG     MM$+++e2D+E"  	
 		
    c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r   r	   r   r   r   r   r   N)r   _request_asyncr   r   r   s       r   retrieve_asynczTokenService.retrieve_async$   sW      %%$+++e2D+E" &  	
 		
s   9AA
	Ar
   c           
      B    t        d| j                  ddd||            S )  
        Creates a single-use token that represents a bank account's details.
        You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
        r	   post
/v1/tokensr   r   )r   r   r   r   r   s      r   createzTokenService.create8   s4     MM"  	
 		
r    c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r%   r	   r&   r'   r   r   N)r   r"   r(   s      r   create_asynczTokenService.create_asyncL   sD      %%" &  	
 		
s    -+
	-)NN)	__name__
__module____qualname__strr   r   r#   r)   r+    r    r   r   r      s     37.2	

 ./
 *+	

 

. 37.2	

 ./
 *+	

 

, 15.2
,-
 *+
 
	
, 15.2
,-
 *+
 
	
r    r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._request_optionsr   stripe._tokenr	   "stripe.params._token_create_paramsr
   $stripe.params._token_retrieve_paramsr   r   r0   r    r   <module>r9      s0    1 $ ! +6#DHO
= O
r    