
    jof4                     r    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dS )    )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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                       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        N/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_account_link.pyCreateParamsr      s         	 W%FGHHHH	 (7
 	
 	
 	
	 DI&&&&	 !%%%%	  $$$$	 <====	 	r%   r'   c                   J    e Zd ZU 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&   CreateParamsCollectionOptionsz)AccountLink.CreateParamsCollectionOptions3   sF         9::::	 )1B)CDDDD	 	r%   r-   created
expires_atobjecturlparamsr   returnc                 r    t          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r2   )r   _static_request	class_urlclsr2   s     r&   createzAccountLink.createN   sB         
 
 	
r%   c                    K   t          d|                     d|                                 |           d{V           S )r5   r   r6   r7   N)r   _static_request_asyncr9   r:   s     r&   create_asynczAccountLink.create_async^   sd       ++ ,        
 
 	
r%   N)r   r    r!   __doc__r   r   r   r#   r   r'   r
   r-   intr"   classmethodr   r<   r?   r$   r%   r&   r   r   	   sF          6DK'.12CCC    ~   @    	    LLL OOO N#### 
HHH 
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 A A A A A 2 2 2 2 2 2 ' ' ' ' ' ' ' ' ' ' E E E E E E E E E E E Ec
 c
 c
 c
 c
'6 c
 c
 c
 c
 c
r%   