
    <@gu                     p    d dl mZ 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)StripeObject)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 G d d	e      Z G d
 de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d  d!e      Z G d" d#e      Z G d$ d%e      Z G d& d'e      Z G d( d)e      Z G d* d+e      Z G d, d-e      Z G d. d/e      Z  G d0 d1e      Z! G d2 d3e      Z" G d4 d5e      Z#e$ed6<   	 e$ed7<   	 e	ed8<   e%ed9<   	 e&ed:<   	 ed   ed;<   	 e'd<e(d=   d>d fd?       Z)e'd<e(d=   d>d fd@       Z*d8e	iZ+yA)BAccountSessiona  
    An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.

    We recommend that you create an AccountSession each time you need to display an embedded component
    to your user. Do not save AccountSessions to your database as they expire relatively
    quickly, and cannot be used more than once.

    Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
    account_sessionOBJECT_NAMEc                      e Zd ZU  G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Zeed<   eed<   eed<   eed<   eed<   e	ed<   e
ed<   eed<   eed<   eed <   eed!<   eeeeee	e
eeeed"Zy#)$AccountSession.Componentsc                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)+AccountSession.Components.AccountManagementc                   $    e Zd ZU eed<   	 eed<   y)4AccountSession.Components.AccountManagement.Features"disable_stripe_user_authenticationexternal_account_collectionN__name__
__module____qualname__bool__annotations__     V/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_account_session.pyFeaturesr          488 .21r    r"   enabledfeaturesNr   r   r   r   r"   r   r   _inner_class_typesr   r    r!   AccountManagementr      -    <  M ",h!7r    r(   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)+AccountSession.Components.AccountOnboardingc                   $    e Zd ZU eed<   	 eed<   y)4AccountSession.Components.AccountOnboarding.Featuresr   r   Nr   r   r    r!   r"   r-   +   r#   r    r"   r$   r%   Nr&   r   r    r!   AccountOnboardingr+   *   r)   r    r.   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)"AccountSession.Components.Balancesc                   H    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   	 eed<   y)+AccountSession.Components.Balances.Featuresr   edit_payout_scheduler   instant_payoutsstandard_payoutsNr   r   r    r!   r"   r2   =   A    488 '+* .21 "&% #'&r    r"   r$   r%   Nr&   r   r    r!   Balancesr0   <   -    < , M ",h!7r    r7   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)#AccountSession.Components.Documentsc                       e Zd Zy),AccountSession.Components.Documents.FeaturesNr   r   r   r   r    r!   r"   r<   [       r    r"   r$   r%   Nr&   r   r    r!   	Documentsr:   Z   -    <  M ",h!7r    r?   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy),AccountSession.Components.NotificationBannerc                   $    e Zd ZU eed<   	 eed<   y)5AccountSession.Components.NotificationBanner.Featuresr   r   Nr   r   r    r!   r"   rD   f   r#   r    r"   r$   r%   Nr&   r   r    r!   NotificationBannerrB   e   r)   r    rE   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)(AccountSession.Components.PaymentDetailsc                   <    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   y)1AccountSession.Components.PaymentDetails.Featurescapture_payments*destination_on_behalf_of_charge_managementdispute_managementrefund_managementNr   r   r    r!   r"   rI   x   5    "&& =A@ %)( $('r    r"   r$   r%   Nr&   r   r    r!   PaymentDetailsrG   w   -    < $ M ",h!7r    rO   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)"AccountSession.Components.Paymentsc                   <    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   y)+AccountSession.Components.Payments.FeaturesrJ   rK   rL   rM   Nr   r   r    r!   r"   rT      rN   r    r"   r$   r%   Nr&   r   r    r!   PaymentsrR      rP   r    rU   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)!AccountSession.Components.Payoutsc                   H    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   	 eed<   y)*AccountSession.Components.Payouts.Featuresr   r3   r   r4   r5   Nr   r   r    r!   r"   rY      r6   r    r"   r$   r%   Nr&   r   r    r!   PayoutsrW      r8   r    rZ   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)%AccountSession.Components.PayoutsListc                       e Zd Zy).AccountSession.Components.PayoutsList.FeaturesNr=   r   r    r!   r"   r^      r>   r    r"   r$   r%   Nr&   r   r    r!   PayoutsListr\      r@   r    r_   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)*AccountSession.Components.TaxRegistrationsc                       e Zd Zy)3AccountSession.Components.TaxRegistrations.FeaturesNr=   r   r    r!   r"   rc      r>   r    r"   r$   r%   Nr&   r   r    r!   TaxRegistrationsra      r@   r    rd   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)%AccountSession.Components.TaxSettingsc                       e Zd Zy).AccountSession.Components.TaxSettings.FeaturesNr=   r   r    r!   r"   rh      r>   r    r"   r$   r%   Nr&   r   r    r!   TaxSettingsrf      r@   r    ri   account_managementaccount_onboardingbalances	documentsnotification_bannerpayment_detailspaymentspayoutspayouts_listtax_registrationstax_settings)rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   N)r   r   r   r   r(   r.   r7   r?   rE   rO   rU   rZ   r_   rd   ri   r   r'   r   r    r!   
Componentsr      s    	8 	8$	8 	8$	8| 	8<		8 		8	8 	8$	8\ 	84	8| 	84	8l 	8<		8, 		8		8| 		8		8, 		8 .---//''!!++!!"3"3 "#5- '!1'
r    ru   c                   <    e Zd ZU eed<   	 ded<   	 eee      ed<   y)AccountSession.CreateParamsaccount%AccountSession.CreateParamsComponents
componentsexpandN)r   r   r   strr   r
   r   r   r    r!   CreateParamsrw     s/    	 <;	 DI&&	r    r}   c                       e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)ry   6AccountSession.CreateParamsComponentsAccountManagementrj   6AccountSession.CreateParamsComponentsAccountOnboardingrk   -AccountSession.CreateParamsComponentsBalancesrl   .AccountSession.CreateParamsComponentsDocumentsrm   7AccountSession.CreateParamsComponentsNotificationBannerrn   3AccountSession.CreateParamsComponentsPaymentDetailsro   -AccountSession.CreateParamsComponentsPaymentsrp   ,AccountSession.CreateParamsComponentsPayoutsrq   0AccountSession.CreateParamsComponentsPayoutsListrr   5AccountSession.CreateParamsComponentsTaxRegistrationsrs   0AccountSession.CreateParamsComponentsTaxSettingsrt   N)r   r   r   r
   r   r   r    r!   CreateParamsComponentsz%AccountSession.CreateParamsComponents  s    'D
 	
	 (D
 	
	 MNN	 <
 	
	 )E
 	
	 %A
 	
	 MNN	 KLL	 ">
 	
	 'C
 	
	 ">
 	
	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   >AccountSession.CreateParamsComponentsAccountManagementFeaturesr%   Nr   r   r   r   r   r
   r   r    r!   'CreateParamsComponentsAccountManagementz6AccountSession.CreateParamsComponentsAccountManagementO  #    	 L
 	
	r    r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   r   r   Nr   r   r   r
   r   r   r   r    r!   /CreateParamsComponentsAccountManagementFeaturesz>AccountSession.CreateParamsComponentsAccountManagementFeatures[  $    ,7,==	 &1%66	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   >AccountSession.CreateParamsComponentsAccountOnboardingFeaturesr%   Nr   r   r    r!   'CreateParamsComponentsAccountOnboardingz6AccountSession.CreateParamsComponentsAccountOnboardinge  r   r    r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   r   r   Nr   r   r    r!   /CreateParamsComponentsAccountOnboardingFeaturesz>AccountSession.CreateParamsComponentsAccountOnboardingFeaturesq  r   r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   5AccountSession.CreateParamsComponentsBalancesFeaturesr%   Nr   r   r    r!   CreateParamsComponentsBalancesz-AccountSession.CreateParamsComponentsBalances{  #    	 C
 	
	r    r   c                   f    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   r   r3   r   r4   r5   Nr   r   r    r!   &CreateParamsComponentsBalancesFeaturesz5AccountSession.CreateParamsComponentsBalancesFeatures  Z    ,7,==	 *$//	 &1%66	 %T**	 &d++	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   6AccountSession.CreateParamsComponentsDocumentsFeaturesr%   Nr   r   r    r!   CreateParamsComponentsDocumentsz.AccountSession.CreateParamsComponentsDocuments  s#    	 D
 	
	r    r   c                       e Zd Zy)r   Nr=   r   r    r!   'CreateParamsComponentsDocumentsFeaturesz6AccountSession.CreateParamsComponentsDocumentsFeatures      r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   ?AccountSession.CreateParamsComponentsNotificationBannerFeaturesr%   Nr   r   r    r!   (CreateParamsComponentsNotificationBannerz7AccountSession.CreateParamsComponentsNotificationBanner  s#    	 M
 	
	r    r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   r   r   Nr   r   r    r!   0CreateParamsComponentsNotificationBannerFeaturesz?AccountSession.CreateParamsComponentsNotificationBannerFeatures  r   r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   ;AccountSession.CreateParamsComponentsPaymentDetailsFeaturesr%   Nr   r   r    r!   $CreateParamsComponentsPaymentDetailsz3AccountSession.CreateParamsComponentsPaymentDetails  s#    	 I
 	
	r    r   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   rJ   rK   rL   rM   Nr   r   r    r!   ,CreateParamsComponentsPaymentDetailsFeaturesz;AccountSession.CreateParamsComponentsPaymentDetailsFeatures  I    %d++	 5@4EE	 (--	 't,,	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   5AccountSession.CreateParamsComponentsPaymentsFeaturesr%   Nr   r   r    r!   CreateParamsComponentsPaymentsz-AccountSession.CreateParamsComponentsPayments  r   r    r   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   rJ   rK   rL   rM   Nr   r   r    r!   &CreateParamsComponentsPaymentsFeaturesz5AccountSession.CreateParamsComponentsPaymentsFeatures  r   r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   4AccountSession.CreateParamsComponentsPayoutsFeaturesr%   Nr   r   r    r!   CreateParamsComponentsPayoutsz,AccountSession.CreateParamsComponentsPayouts  s#    	 B
 	
	r    r   c                   f    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r   r   r3   r   r4   r5   Nr   r   r    r!   %CreateParamsComponentsPayoutsFeaturesz4AccountSession.CreateParamsComponentsPayoutsFeatures
  r   r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   8AccountSession.CreateParamsComponentsPayoutsListFeaturesr%   Nr   r   r    r!   !CreateParamsComponentsPayoutsListz0AccountSession.CreateParamsComponentsPayoutsList   #    	 F
 	
	r    r   c                       e Zd Zy)r   Nr=   r   r    r!   )CreateParamsComponentsPayoutsListFeaturesz8AccountSession.CreateParamsComponentsPayoutsListFeatures,  r   r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   =AccountSession.CreateParamsComponentsTaxRegistrationsFeaturesr%   Nr   r   r    r!   &CreateParamsComponentsTaxRegistrationsz5AccountSession.CreateParamsComponentsTaxRegistrations/  s#    	 K
 	
	r    r   c                       e Zd Zy)r   Nr=   r   r    r!   .CreateParamsComponentsTaxRegistrationsFeaturesz=AccountSession.CreateParamsComponentsTaxRegistrationsFeatures;  r   r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   8AccountSession.CreateParamsComponentsTaxSettingsFeaturesr%   Nr   r   r    r!   !CreateParamsComponentsTaxSettingsz0AccountSession.CreateParamsComponentsTaxSettings>  r   r    r   c                       e Zd Zy)r   Nr=   r   r    r!   )CreateParamsComponentsTaxSettingsFeaturesz8AccountSession.CreateParamsComponentsTaxSettingsFeaturesJ  r   r    r   rx   client_secretrz   
expires_atlivemodeobjectparamsrw   returnc                 Z    t        d| j                  d| j                         |            S )
        Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
        r   postr   )r   _static_request	class_urlclsr   s     r!   createzAccountSession.createg  s6        
 	
r    c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r   r   r   r   N)r   _static_request_asyncr   r   s     r!   create_asynczAccountSession.create_asyncw  sD      ++ ,  
 	
s   ,97
	9N),r   r   r   __doc__r   r   r	   r   r   ru   r   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r|   intr   classmethodr   r   r   r'   r   r    r!   r   r   
   s    9JK'"345Ij
\ j
X~ < <|
) 
) 
) 
) 
 
 ,
) 
) 
9 
9 
y 
y $
 
 $
	 
	 ,
I 
I 
 
 
I 
I  L  O N %&& 
;<
	
 
 
;<
	
 
 '
3r    r   N)stripe._createable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   typingr   r   r   typing_extensionsr	   r
   r   r   r   r   r    r!   <module>r      s2    B 2 . ' ' E E}	4*+;< }	4r    