o
    i                     @   sX   d dl mZ d dlmZmZ d dlmZmZmZ er d dl	m
Z
 G dd ded ZdS )    )CreateableAPIResource)ClassVarcast)LiteralUnpackTYPE_CHECKING)AccountLinkCreateParamsc                   @   s   e Zd ZU dZdZeed  ed< eed< 	 eed< 	 ed ed< 	 e	ed< 	 e
ded	 d
d fddZe
ded	 d
d fddZdS )AccountLinka  
    Account Links are the means by which a Connect platform grants a connected account permission to access
    Stripe-hosted applications, such as Connect Onboarding.

    Related guide: [Connect Onboarding](https://stripe.com/docs/connect/custom/hosted-onboarding)
    account_linkOBJECT_NAMEcreated
expires_atobjecturlparamsr   returnc                 K   s   t d| jd|  |dS )
        Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
        r	   postr   )r   _static_request	class_urlclsr    r   t/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/_account_link.pycreate'   s   zAccountLink.createc                    s"   t d| jd|  |dI dH S )r   r	   r   r   N)r   _static_request_asyncr   r   r   r   r   create_async7   s   
zAccountLink.create_asyncN)__name__
__module____qualname____doc__r   r   r   __annotations__intstrclassmethodr   r   r   r   r   r   r   r	      s.   
 r	   N)stripe._createable_api_resourcer   typingr   r   typing_extensionsr   r   r   )stripe.params._account_link_create_paramsr   r	   r   r   r   r   <module>   s   