o
    Bi                     @   sd   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
 d dlmZmZ G dd deZd	S )
    )	LoginLink)RequestOptions)StripeService)sanitize_id)Listcast)NotRequired	TypedDictc                	   @   s\   e Zd ZG dd deZi i fdedddedefdd	Zi i fdedddedefd
dZ	dS )AccountLoginLinkServicec                   @   s   e Zd ZU eee  ed< dS )$AccountLoginLinkService.CreateParamsexpandN)__name__
__module____qualname__r   r   str__annotations__ r   r   b/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_account_login_link_service.pyCreateParams   s   
 r   accountparamsr   optionsreturnc              	   C   s&   t t| jddjt|dd||dS )  
        Creates a single-use login link for a connected account to access the Express Dashboard.

        You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
        post"/v1/accounts/{account}/login_linksr   apibase_addressr   r   )r   r   _requestformatr   selfr   r   r   r   r   r   create   s   zAccountLoginLinkService.createc              	      s.   t t| jddjt|dd||dI dH S )r   r   r   r   r   r   N)r   r   _request_asyncr!   r   r"   r   r   r   create_async*   s   
z$AccountLoginLinkService.create_asyncN)
r   r   r   r	   r   r   r   r   r$   r&   r   r   r   r   r
      s0    	
r
   N)stripe._login_linkr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   r	   r
   r   r   r   r   <module>   s   