
    h                     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# G d6 d7e      Z$ G d8 d9e      Z% G d: d;e      Z& G d< d=e      Z' G d> d?e      Z( G d@ dAe      Z) G dB dCe      Z* G dD dEe      Z+e,edF<   	 e,edG<   	 e	edH<   e-edI<   	 e.edJ<   	 ed   edK<   	 e/dLe0dM   dNd fdO       Z1e/dLe0dM   dNd fdP       Z2dHe	iZ3yQ)R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 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d*<   eed+<   eed,<   eed-<   eeeeee	e
eeeeeeeed.Zy/)0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__     W/var/www/api/v1/venv_getwork_v1/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.FinancialAccountc                   <    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   y)3AccountSession.Components.FinancialAccount.Featuresr   r   
send_moneytransfer_balanceNr   r   r    r!   r"   rD   f   s4    488 .21 !  #'&r    r"   r$   r%   Nr&   r   r    r!   FinancialAccountrB   e   -    < $ M ",h!7r    rG   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)6AccountSession.Components.FinancialAccountTransactionsc                       e Zd ZU eed<   y)?AccountSession.Components.FinancialAccountTransactions.Featurescard_spend_dispute_managementNr   r   r    r!   r"   rL      s    /33r    r"   r$   r%   Nr&   r   r    r!   FinancialAccountTransactionsrJ      s-    <  M ",h!7r    rN   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.IssuingCardc                   <    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   y).AccountSession.Components.IssuingCard.Featurescard_managementrM   cardholder_managementspend_control_managementNr   r   r    r!   r"   rR      s4    !%% 043 (,+ +/.r    r"   r$   r%   Nr&   r   r    r!   IssuingCardrP      rH   r    rV   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.IssuingCardsListc                   H    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   	 eed<   y)3AccountSession.Components.IssuingCardsList.FeaturesrS   rM   rT   r   rU   Nr   r   r    r!   r"   rZ      sA    !%% 043 (,+ 598 +/.r    r"   r$   r%   Nr&   r   r    r!   IssuingCardsListrX      r8   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"   r_      r#   r    r"   r$   r%   Nr&   r   r    r!   NotificationBannerr]      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.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"   rd      5    "&& =A@ %)( $('r    r"   r$   r%   Nr&   r   r    r!   PaymentDetailsrb      rH   r    rj   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.Featuresre   rf   rg   rh   Nr   r   r    r!   r"   rn      ri   r    r"   r$   r%   Nr&   r   r    r!   Paymentsrl      rH   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.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"   rs     r6   r    r"   r$   r%   Nr&   r   r    r!   Payoutsrq     r8   r    rt   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"   rx   *  r>   r    r"   r$   r%   Nr&   r   r    r!   PayoutsListrv   )  r@   r    ry   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"   r}   5  r>   r    r"   r$   r%   Nr&   r   r    r!   TaxRegistrationsr{   4  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.TaxSettingsc                       e Zd Zy).AccountSession.Components.TaxSettings.FeaturesNr=   r   r    r!   r"   r   @  r>   r    r"   r$   r%   Nr&   r   r    r!   TaxSettingsr   ?  r@   r    r   account_managementaccount_onboardingbalances	documentsfinancial_accountfinancial_account_transactionsissuing_cardissuing_cards_listnotification_bannerpayment_detailspaymentspayoutspayouts_listtax_registrationstax_settings)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   N)r   r   r   r   r(   r.   r7   r?   rG   rN   rV   r[   r`   rj   ro   rt   ry   r~   r   r   r'   r   r    r!   
Componentsr      sG   	8 	8$	8 	8$	8| 	8<		8 		8	8| 	84	8< 	8	8, 	84	8| 	8<	8 	8$	8\ 	84	8| 	84	8l 	8<		8, 		8		8| 		8		8, 		8 .---++(DD!!,,//''!!++!!"3"3 "!1.J'"2#5- '!1'
r    r   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!   CreateParamsr   k  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<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y) r   6AccountSession.CreateParamsComponentsAccountManagementr   6AccountSession.CreateParamsComponentsAccountOnboardingr   -AccountSession.CreateParamsComponentsBalancesr   .AccountSession.CreateParamsComponentsDocumentsr   5AccountSession.CreateParamsComponentsFinancialAccountr   AAccountSession.CreateParamsComponentsFinancialAccountTransactionsr   0AccountSession.CreateParamsComponentsIssuingCardr   5AccountSession.CreateParamsComponentsIssuingCardsListr   7AccountSession.CreateParamsComponentsNotificationBannerr   3AccountSession.CreateParamsComponentsPaymentDetailsr   -AccountSession.CreateParamsComponentsPaymentsr   ,AccountSession.CreateParamsComponentsPayoutsr   0AccountSession.CreateParamsComponentsPayoutsListr   5AccountSession.CreateParamsComponentsTaxRegistrationsr   0AccountSession.CreateParamsComponentsTaxSettingsr   N)r   r   r   r
   r   r   r    r!   CreateParamsComponentsz%AccountSession.CreateParamsComponentsy  sM   'D
 	
	 (D
 	
	 MNN	 <
 	
	 'C
 	
	 )4O)
 	
	 ">
 	
	 (C
 	
	 )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.CreateParamsComponentsAccountManagement  #    	 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.CreateParamsComponentsAccountOnboarding  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.CreateParamsComponentsAccountOnboardingFeatures  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.CreateParamsComponentsFinancialAccountFeaturesr%   Nr   r   r    r!   &CreateParamsComponentsFinancialAccountz5AccountSession.CreateParamsComponentsFinancialAccount,  #    	 K
 	
	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   r   r   rE   rF   Nr   r   r    r!   .CreateParamsComponentsFinancialAccountFeaturesz=AccountSession.CreateParamsComponentsFinancialAccountFeatures8  sH    ,7,==	 &1%66	  %%	 &d++	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   IAccountSession.CreateParamsComponentsFinancialAccountTransactionsFeaturesr%   Nr   r   r    r!   2CreateParamsComponentsFinancialAccountTransactionszAAccountSession.CreateParamsComponentsFinancialAccountTransactionsJ  s#    	 W
 	
	r    r   c                       e Zd ZU ee   ed<   y)r   rM   Nr   r   r    r!   :CreateParamsComponentsFinancialAccountTransactionsFeatureszIAccountSession.CreateParamsComponentsFinancialAccountTransactionsFeaturesV  s     (34'88	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   8AccountSession.CreateParamsComponentsIssuingCardFeaturesr%   Nr   r   r    r!   !CreateParamsComponentsIssuingCardz0AccountSession.CreateParamsComponentsIssuingCard^  #    	 F
 	
	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   rS   rM   rT   rU   Nr   r   r    r!   )CreateParamsComponentsIssuingCardFeaturesz8AccountSession.CreateParamsComponentsIssuingCardFeaturesj  sH    $T**	 (34'88	  +400	 #.d"33	r    r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r$   =AccountSession.CreateParamsComponentsIssuingCardsListFeaturesr%   Nr   r   r    r!   &CreateParamsComponentsIssuingCardsListz5AccountSession.CreateParamsComponentsIssuingCardsList|  r   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   rS   rM   rT   r   rU   Nr   r   r    r!   .CreateParamsComponentsIssuingCardsListFeaturesz=AccountSession.CreateParamsComponentsIssuingCardsListFeatures  sZ    $T**	 (34'88	  +400	 -8,==	 #.d"33	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   re   rf   rg   rh   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   re   rf   rg   rh   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  r   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!  r   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.CreateParamsComponentsTaxSettings0  r   r    r   c                       e Zd Zy)r   Nr=   r   r    r!   )CreateParamsComponentsTaxSettingsFeaturesz8AccountSession.CreateParamsComponentsTaxSettingsFeatures<  r   r    r  r   client_secretr   
expires_atlivemodeobjectparamsr   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.createY  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_asynci  sD      ++ ,  
 	
s   ,97
	9N)4r   r   r   __doc__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   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R
\ R
h
~ T Tl
) 
) 
) 
) 
 
 ,
) 
) 
 
 $
Y 

I 
I $
 
 ,
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o4*+;< o4r    