o
    &i                     @   sp   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 G dd	 d	eZd
S )    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)	LoginLink)RequestOptions)AccountLoginLinkCreateParamsc                	   @   s\   e Zd Z		ddeded ded ddfd	d
Z		ddeded ded ddfddZdS )AccountLoginLinkServiceNaccountparamsr	   optionsr   returnr   c              	   C   s&   t d| jddjt|dd||dS )  
        Creates a 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://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
        r   post"/v1/accounts/{account}/login_linksr   apibase_addressr   r   )r   _requestformatr   selfr   r   r    r   c/var/www/html/humari/django-venv/lib/python3.10/site-packages/stripe/_account_login_link_service.pycreate   s   zAccountLoginLinkService.createc              	      s.   t d| jddjt|dd||dI dH S )r   r   r   r   r   r   r   N)r   _request_asyncr   r   r   r   r   r   create_async)   s   
z$AccountLoginLinkService.create_async)NN)__name__
__module____qualname__strr   r   r   r   r   r   r   r
      s.    
r
   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._login_linkr   stripe._request_optionsr   /stripe.params._account_login_link_create_paramsr	   r
   r   r   r   r   <module>   s   