
    Chc                     d    S SK Jr  S SKJr  S SKJrJrJr  S SKJ	r	J
r
JrJr   " S S\S   5      rg)    )CreateableAPIResource)RequestOptions)ClassVarListcast)LiteralNotRequired	TypedDictUnpackc                       \ rS rSr% SrSr\\S      \S'    " S S\	5      r
 " S S\5      r\\S	'    \\S
'    \S   \S'    \\S'    \S\S   SS 4S j5       r\S\S   SS 4S j5       rSrg)AccountLink	   a   
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                       \ rS rSr% \\S'    \\S      \S'    \S   \S'    \\\      \S'    \\   \S'    \\   \S	'    \S
   \S'   Sr	g)AccountLink.CreateParams   accountcurrently_dueeventually_duecollect)AccountLink.CreateParamsCollectionOptionscollection_optionsexpandrefresh_url
return_url)account_onboardingaccount_updatetype N)
__name__
__module____qualname____firstlineno__str__annotations__r	   r   r   __static_attributes__r!       W/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_account_link.pyCreateParamsr      s    	 W%FGHH	 (7
 	
	 DI&&	 !%%	  $$	 <==	r)   r+   c                   D    \ rS rSr% \\S      \S'    \\S      \S'   Srg)r   5   r   fields)includeomitfuture_requirementsr!   N)r"   r#   r$   r%   r	   r   r'   r(   r!   r)   r*   CreateParamsCollectionOptions)AccountLink.CreateParamsCollectionOptions5   s0    G$EFGG	 )1B)CDD	r)   r2   created
expires_atobjecturlparamsr   returnc           	      T    [        SU R                  SU R                  5       US95      $ )
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r8   )r   _static_request	class_urlclsr8   s     r*   createAccountLink.createP   s6        
 	
r)   c           	      p   #    [        SU R                  SU R                  5       US9I Sh  vN 5      $  N7f)r;   r   r<   r=   N)r   _static_request_asyncr?   r@   s     r*   create_asyncAccountLink.create_async`   sC      ++ ,  
 	
s   )64
	6r!   N)r"   r#   r$   r%   __doc__r   r   r   r'   r   r+   r
   r2   intr&   classmethodr   rB   rF   r(   r!   r)   r*   r   r   	   s     6DK'.12C ~  D	  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>rO      s.    B 2 ' ' E Ee
'6 e
r)   