
    <@gA                     d    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ed         Zy)    )CreateableAPIResource)RequestOptions)ClassVarListcast)LiteralNotRequired	TypedDictUnpackc                       e Zd ZU dZdZeed      ed<    G d de      Z	 G 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       Zeded   dd fd       Zy)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                       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
<   y)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        S/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_account_link.pyCreateParamsr      s    	 W%FGHH	 (7
 	
	 DI&&	 !%%	  $$	 <==	r%   r'   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)r   r   fields)includeomitfuture_requirementsN)r   r    r!   r	   r   r#   r$   r%   r&   CreateParamsCollectionOptionsz)AccountLink.CreateParamsCollectionOptions3   s0    G$EFGG	 )1B)CDD	r%   r-   created
expires_atobjecturlparamsr   returnc                 Z    t        d| j                  d| j                         |            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r2   )r   _static_request	class_urlclsr2   s     r&   createzAccountLink.createN   s6        
 	
r%   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r5   r   r6   r7   N)r   _static_request_asyncr9   r:   s     r&   create_asynczAccountLink.create_async^   sD      ++ ,  
 	
s   ,97
	9N)r   r    r!   __doc__r   r   r   r#   r   r'   r
   r-   intr"   classmethodr   r<   r?   r$   r%   r&   r   r   	   s     6DK'.12C~ @	  L O N## 
H 
89
	
 
 
89
	
 
r%   r   N)stripe._createable_api_resourcer   stripe._request_optionsr   typingr   r   r   typing_extensionsr   r	   r
   r   r   r$   r%   r&   <module>rG      s.    B 2 ' ' E Ec
'6 c
r%   