
    +h                     h    d dl mZ d dlmZ d dlmZ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Optionalcast)LiteralNotRequiredUnpackTYPE_CHECKINGc                       e Zd ZU dZdZeed      ed<   er G d de	      Z
eed<   	 eed<   	 ed   ed<   	 eed	<   	 e	 	 	 	 ddee   dee   dee   de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                   r    e Zd ZU eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)AccountLink.CreateParamsaccountz*Literal['currently_due', 'eventually_due']collectz	List[str]expandstrrefresh_url
return_url)account_onboardingaccount_updatetypeN)__name__
__module____qualname__r   __annotations__r
   r	        T/var/www/html/venv/lib/python3.12/site-packages/stripe/api_resources/account_link.pyCreateParamsr      sh    L !!MNN  ,, %U++ $E** @AAr!   r#   created
expires_atobjecturlNapi_keyidempotency_keystripe_versionstripe_accountparamsr   returnc                 `    t        d| j                  d| j                         |||||            S )z
        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   _static_request	class_url)clsr(   r)   r*   r+   r,   s         r"   createzAccountLink.create?   s=     
 	
r!   )NNNN)r   r   r   __doc__r   r   r	   r   r   r   r#   intr   classmethodr   r   r3   r    r!   r"   r   r   	   s     6DK'.12C	> 	4 L O N## 
H  "&)-(,(,
#
 "#
 !	

 !
 34
 

 
r!   r   N)stripe.api_resources.abstractr   stripe.request_optionsr   typingr   r   r   r   typing_extensionsr	   r
   r   r   r   r    r!   r"   <module>r;      s.    @ 1 1 1 I IM
'6 M
r!   