o
    BiA                     @   s\   d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	m
Z
mZmZ G dd ded ZdS )    )CreateableAPIResource)RequestOptions)ClassVarListcast)LiteralNotRequired	TypedDictUnpackc                   @   s   e Zd ZU dZdZeed  ed< G dd deZ	G dd de
Z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_NAMEc                   @   sr   e Zd ZU eed< 	 eed  ed< 	 ed ed< 	 eee  ed< 	 ee ed< 	 ee ed< 	 ed	 ed
< dS )AccountLink.CreateParamsaccountcurrently_dueeventually_duecollect)AccountLink.CreateParamsCollectionOptionscollection_optionsexpandrefresh_url
return_url)account_onboardingaccount_updatetypeN)__name__
__module____qualname__str__annotations__r   r   r    r!   r!   T/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_account_link.pyCreateParams   s"   
 r#   c                   @   s0   e Zd ZU eed  ed< 	 eed  ed< dS )r   r   fields)includeomitfuture_requirementsN)r   r   r   r   r   r    r!   r!   r!   r"   CreateParamsCollectionOptions3   s
   
 r(   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!   r!   r"   createN   s   zAccountLink.createc                    s"   t d| jd|  |dI dH S )r/   r   r0   r1   N)r   _static_request_asyncr3   r4   r!   r!   r"   create_async^   s   
zAccountLink.create_asyncN)r   r   r   __doc__r   r   r   r    r   r#   r	   r(   intr   classmethodr
   r6   r8   r!   r!   r!   r"   r   	   s2   
  
r   N)stripe._createable_api_resourcer   stripe._request_optionsr   typingr   r   r   typing_extensionsr   r   r	   r
   r   r!   r!   r!   r"   <module>   s
   