a
    ù!fd  ã                   @   s\   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 G dd„ ded ƒZdS )é    )ÚCreateableAPIResource)ÚRequestOptions)ÚClassVarÚListÚOptionalÚcast)ÚLiteralÚNotRequiredÚUnpackc                	   @   sŒ   e Zd ZU dZdZeed  ed< G dd„ deƒZ	e
ed< e
ed< ed ed< eed	< edee ee ee ee ed d dœ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)
    Zaccount_linkÚOBJECT_NAMEc                   @   sR   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
< dS )úAccountLink.CreateParamsÚaccountz*Literal['currently_due', 'eventually_due']Zcollectz	List[str]ÚexpandÚstrZrefresh_urlZ
return_url)Zaccount_onboardingZaccount_updateÚtypeN)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__r	   r   © r   r   úb/var/www/html/python-backend/venv/lib/python3.9/site-packages/stripe/api_resources/account_link.pyÚCreateParams   s   
r   ÚcreatedZ
expires_atÚobjectÚurlNr   )Úapi_keyÚidempotency_keyÚstripe_versionÚstripe_accountÚparamsÚreturnc                 K   s    t d|  d|  ¡ |||||¡ƒ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   Z_static_requestZ	class_url)Úclsr   r   r   r   r    r   r   r   Úcreate>   s    ùþzAccountLink.create)NNNN)r   r   r   Ú__doc__r   r   r   r   r   r   Úintr   Úclassmethodr   r
   r$   r   r   r   r   r   	   s,   
    ûÿ÷r   N)Zstripe.api_resources.abstractr   Zstripe.request_optionsr   Útypingr   r   r   r   Ztyping_extensionsr   r	   r
   r   r   r   r   r   Ú<module>   s   