
    (g                     p    S SK Jr  S SKJr  S SKJr  S SKJrJrJ	r	  S SK
JrJrJrJr   " S S\S   5      rg)	    )CreateableAPIResource)RequestOptions)StripeObject)ClassVarListcast)LiteralNotRequired	TypedDictUnpackc                      \ rS rSr% SrSr\\S      \S'    " S S\	5      r
 " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r  " S/ S0\5      r! " S1 S2\5      r" " S3 S4\5      r# " S5 S6\5      r$ " S7 S8\5      r% " S9 S:\5      r& " S; S<\5      r' " S= S>\5      r( " S? S@\5      r) " SA SB\5      r* " SC SD\5      r+ " SE SF\5      r,\-\SG'    \-\SH'    \
\SI'   \.\SJ'    \/\SK'    \S   \SL'    \0SM\1SN   SOS 4SP j5       r2\0SM\1SN   SOS 4SQ j5       r3SI\
0r4SRr5gS)TAccountSession
   a  
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                      \ rS rSr%  " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r\\S '   \\S!'   \\S"'   \\S#'   \	\S$'   \
\S%'   \\S&'   \\S''   \\S('   \\S)'   \\S*'   \\S+'   \\S,'   \\S-'   \\S.'   \\\\\	\
\\\\\\\\\S/.rS0rg1)2AccountSession.Components   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)+AccountSession.Components.AccountManagement   c                   ,    \ rS rSr% \\S'    \\S'   Srg)4AccountSession.Components.AccountManagement.Features   "disable_stripe_user_authenticationexternal_account_collection N__name__
__module____qualname____firstlineno__bool__annotations____static_attributes__r       \C:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\stripe/_account_session.pyFeaturesr          488 .21r&   r(   enabledfeaturesr   N
r   r    r!   r"   r   r(   r#   r$   _inner_class_typesr%   r   r&   r'   AccountManagementr      -    <  M ",h!7r&   r.   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)+AccountSession.Components.AccountOnboarding*   c                   ,    \ rS rSr% \\S'    \\S'   Srg)4AccountSession.Components.AccountOnboarding.Features+   r   r   r   Nr   r   r&   r'   r(   r4   +   r)   r&   r(   r*   r+   r   Nr,   r   r&   r'   AccountOnboardingr1   *   r/   r&   r6   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)"AccountSession.Components.Balances<   c                   P    \ rS rSr% \\S'    \\S'    \\S'    \\S'    \\S'   Srg)	+AccountSession.Components.Balances.Features=   r   edit_payout_scheduler   instant_payoutsstandard_payoutsr   Nr   r   r&   r'   r(   r;   =   A    488 '+* .21 "&% #'&r&   r(   r*   r+   r   Nr,   r   r&   r'   Balancesr8   <   -    < , M ",h!7r&   rA   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)#AccountSession.Components.DocumentsZ   c                       \ rS rSrSrg),AccountSession.Components.Documents.Features[   r   Nr   r    r!   r"   r%   r   r&   r'   r(   rG   [       r&   r(   r*   r+   r   Nr,   r   r&   r'   	DocumentsrD   Z   -    <  M ",h!7r&   rK   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)*AccountSession.Components.FinancialAccounte   c                   D    \ rS rSr% \\S'    \\S'    \\S'    \\S'   Srg)3AccountSession.Components.FinancialAccount.Featuresf   r   r   
send_moneytransfer_balancer   Nr   r   r&   r'   r(   rQ   f   s4    488 .21 !  #'&r&   r(   r*   r+   r   Nr,   r   r&   r'   FinancialAccountrN   e   -    < $ M ",h!7r&   rU   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)6AccountSession.Components.FinancialAccountTransactions   c                        \ rS rSr% \\S'   Srg)?AccountSession.Components.FinancialAccountTransactions.Features   card_spend_dispute_managementr   Nr   r   r&   r'   r(   r[      s    /33r&   r(   r*   r+   r   Nr,   r   r&   r'   FinancialAccountTransactionsrX      s-    <  M ",h!7r&   r^   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)%AccountSession.Components.IssuingCard   c                   D    \ rS rSr% \\S'    \\S'    \\S'    \\S'   Srg).AccountSession.Components.IssuingCard.Features   card_managementr]   cardholder_managementspend_control_managementr   Nr   r   r&   r'   r(   rc      s4    !%% 043 (,+ +/.r&   r(   r*   r+   r   Nr,   r   r&   r'   IssuingCardr`      rV   r&   rh   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)*AccountSession.Components.IssuingCardsList   c                   P    \ rS rSr% \\S'    \\S'    \\S'    \\S'    \\S'   Srg)	3AccountSession.Components.IssuingCardsList.Features   re   r]   rf   r   rg   r   Nr   r   r&   r'   r(   rm      sA    !%% 043 (,+ 598 +/.r&   r(   r*   r+   r   Nr,   r   r&   r'   IssuingCardsListrj      rB   r&   ro   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g),AccountSession.Components.NotificationBanner   c                   ,    \ rS rSr% \\S'    \\S'   Srg)5AccountSession.Components.NotificationBanner.Features   r   r   r   Nr   r   r&   r'   r(   rt      r)   r&   r(   r*   r+   r   Nr,   r   r&   r'   NotificationBannerrq      r/   r&   rv   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)(AccountSession.Components.PaymentDetails   c                   D    \ rS rSr% \\S'    \\S'    \\S'    \\S'   Srg)1AccountSession.Components.PaymentDetails.Features   capture_payments*destination_on_behalf_of_charge_managementdispute_managementrefund_managementr   Nr   r   r&   r'   r(   r{      5    "&& =A@ %)( $('r&   r(   r*   r+   r   Nr,   r   r&   r'   PaymentDetailsrx      rV   r&   r   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)"AccountSession.Components.Payments   c                   D    \ rS rSr% \\S'    \\S'    \\S'    \\S'   Srg)+AccountSession.Components.Payments.Features   r}   r~   r   r   r   Nr   r   r&   r'   r(   r      r   r&   r(   r*   r+   r   Nr,   r   r&   r'   Paymentsr      rV   r&   r   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)!AccountSession.Components.Payoutsi  c                   P    \ rS rSr% \\S'    \\S'    \\S'    \\S'    \\S'   Srg)	*AccountSession.Components.Payouts.Featuresi  r   r=   r   r>   r?   r   Nr   r   r&   r'   r(   r     r@   r&   r(   r*   r+   r   Nr,   r   r&   r'   Payoutsr     rB   r&   r   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)%AccountSession.Components.PayoutsListi)  c                       \ rS rSrSrg).AccountSession.Components.PayoutsList.Featuresi*  r   NrI   r   r&   r'   r(   r   *  rJ   r&   r(   r*   r+   r   Nr,   r   r&   r'   PayoutsListr   )  rL   r&   r   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)*AccountSession.Components.TaxRegistrationsi4  c                       \ rS rSrSrg)3AccountSession.Components.TaxRegistrations.Featuresi5  r   NrI   r   r&   r'   r(   r   5  rJ   r&   r(   r*   r+   r   Nr,   r   r&   r'   TaxRegistrationsr   4  rL   r&   r   c                   J    \ rS rSr%  " S S\5      r\\S'    \\S'   S\0rSr	g)%AccountSession.Components.TaxSettingsi?  c                       \ rS rSrSrg).AccountSession.Components.TaxSettings.Featuresi@  r   NrI   r   r&   r'   r(   r   @  rJ   r&   r(   r*   r+   r   Nr,   r   r&   r'   TaxSettingsr   ?  rL   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   r   N)r   r    r!   r"   r   r.   r6   rA   rK   rU   r^   rh   ro   rv   r   r   r   r   r   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                   D    \ rS rSr% \\S'    S\S'    \\\      \S'   Srg)AccountSession.CreateParamsik  account%AccountSession.CreateParamsComponents
componentsexpandr   N)	r   r    r!   r"   strr$   r
   r   r%   r   r&   r'   CreateParamsr   k  s/    	 <;	 DI&&	r&   r   c                   "   \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S	'    \S
   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'   S rg!)"r   iy  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   r   N)r   r    r!   r"   r
   r$   r%   r   r&   r'   CreateParamsComponents%AccountSession.CreateParamsComponentsy  sM   'D
 	
	 (D
 	
	 MNN	 <
 	
	 'C
 	
	 )4O)
 	
	 ">
 	
	 (C
 	
	 )E
 	
	 %A
 	
	 MNN	 KLL	 ">
 	
	 'C
 	
	 ">
 	
	r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   >AccountSession.CreateParamsComponentsAccountManagementFeaturesr+   r   Nr   r    r!   r"   r#   r$   r
   r%   r   r&   r'   'CreateParamsComponentsAccountManagement6AccountSession.CreateParamsComponentsAccountManagement  #    	 L
 	
	r&   r   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r   i  r   r   r   Nr   r    r!   r"   r
   r#   r$   r%   r   r&   r'   /CreateParamsComponentsAccountManagementFeatures>AccountSession.CreateParamsComponentsAccountManagementFeatures  $    ,7,==	 &1%66	r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   >AccountSession.CreateParamsComponentsAccountOnboardingFeaturesr+   r   Nr   r   r&   r'   'CreateParamsComponentsAccountOnboarding6AccountSession.CreateParamsComponentsAccountOnboarding  r   r&   r   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r   i  r   r   r   Nr   r   r&   r'   /CreateParamsComponentsAccountOnboardingFeatures>AccountSession.CreateParamsComponentsAccountOnboardingFeatures  r   r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   5AccountSession.CreateParamsComponentsBalancesFeaturesr+   r   Nr   r   r&   r'   CreateParamsComponentsBalances-AccountSession.CreateParamsComponentsBalances  #    	 C
 	
	r&   r   c                   n    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)	r   i  r   r=   r   r>   r?   r   Nr   r   r&   r'   &CreateParamsComponentsBalancesFeatures5AccountSession.CreateParamsComponentsBalancesFeatures  Z    ,7,==	 *$//	 &1%66	 %T**	 &d++	r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   6AccountSession.CreateParamsComponentsDocumentsFeaturesr+   r   Nr   r   r&   r'   CreateParamsComponentsDocuments.AccountSession.CreateParamsComponentsDocuments  s#    	 D
 	
	r&   r   c                       \ rS rSrSrg)r   i)  r   NrI   r   r&   r'   'CreateParamsComponentsDocumentsFeatures6AccountSession.CreateParamsComponentsDocumentsFeatures)      r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i,  r*   =AccountSession.CreateParamsComponentsFinancialAccountFeaturesr+   r   Nr   r   r&   r'   &CreateParamsComponentsFinancialAccount5AccountSession.CreateParamsComponentsFinancialAccount,  #    	 K
 	
	r&   r   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)r   i8  r   r   rS   rT   r   Nr   r   r&   r'   .CreateParamsComponentsFinancialAccountFeatures=AccountSession.CreateParamsComponentsFinancialAccountFeatures8  sH    ,7,==	 &1%66	  %%	 &d++	r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   iJ  r*   IAccountSession.CreateParamsComponentsFinancialAccountTransactionsFeaturesr+   r   Nr   r   r&   r'   2CreateParamsComponentsFinancialAccountTransactionsAAccountSession.CreateParamsComponentsFinancialAccountTransactionsJ  s#    	 W
 	
	r&   r   c                   &    \ rS rSr% \\   \S'   Srg)r   iV  r]   r   Nr   r   r&   r'   :CreateParamsComponentsFinancialAccountTransactionsFeaturesIAccountSession.CreateParamsComponentsFinancialAccountTransactionsFeaturesV  s     (34'88	r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i^  r*   8AccountSession.CreateParamsComponentsIssuingCardFeaturesr+   r   Nr   r   r&   r'   !CreateParamsComponentsIssuingCard0AccountSession.CreateParamsComponentsIssuingCard^  #    	 F
 	
	r&   r   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)r   ij  re   r]   rf   rg   r   Nr   r   r&   r'   )CreateParamsComponentsIssuingCardFeatures8AccountSession.CreateParamsComponentsIssuingCardFeaturesj  sH    $T**	 (34'88	  +400	 #.d"33	r&   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i|  r*   =AccountSession.CreateParamsComponentsIssuingCardsListFeaturesr+   r   Nr   r   r&   r'   &CreateParamsComponentsIssuingCardsList5AccountSession.CreateParamsComponentsIssuingCardsList|  r   r&   r  c                   n    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)	r  i  re   r]   rf   r   rg   r   Nr   r   r&   r'   .CreateParamsComponentsIssuingCardsListFeatures=AccountSession.CreateParamsComponentsIssuingCardsListFeatures  sZ    $T**	 (34'88	  +400	 -8,==	 #.d"33	r&   r  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   ?AccountSession.CreateParamsComponentsNotificationBannerFeaturesr+   r   Nr   r   r&   r'   (CreateParamsComponentsNotificationBanner7AccountSession.CreateParamsComponentsNotificationBanner  s#    	 M
 	
	r&   r  c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r
  i  r   r   r   Nr   r   r&   r'   0CreateParamsComponentsNotificationBannerFeatures?AccountSession.CreateParamsComponentsNotificationBannerFeatures  r   r&   r  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   ;AccountSession.CreateParamsComponentsPaymentDetailsFeaturesr+   r   Nr   r   r&   r'   $CreateParamsComponentsPaymentDetails3AccountSession.CreateParamsComponentsPaymentDetails  s#    	 I
 	
	r&   r  c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)r  i  r}   r~   r   r   r   Nr   r   r&   r'   ,CreateParamsComponentsPaymentDetailsFeatures;AccountSession.CreateParamsComponentsPaymentDetailsFeatures  I    %d++	 5@4EE	 (--	 't,,	r&   r  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   5AccountSession.CreateParamsComponentsPaymentsFeaturesr+   r   Nr   r   r&   r'   CreateParamsComponentsPayments-AccountSession.CreateParamsComponentsPayments  r   r&   r  c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)r  i  r}   r~   r   r   r   Nr   r   r&   r'   &CreateParamsComponentsPaymentsFeatures5AccountSession.CreateParamsComponentsPaymentsFeatures  r  r&   r  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   4AccountSession.CreateParamsComponentsPayoutsFeaturesr+   r   Nr   r   r&   r'   CreateParamsComponentsPayouts,AccountSession.CreateParamsComponentsPayouts  s#    	 B
 	
	r&   r!  c                   n    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)	r   i  r   r=   r   r>   r?   r   Nr   r   r&   r'   %CreateParamsComponentsPayoutsFeatures4AccountSession.CreateParamsComponentsPayoutsFeatures  r   r&   r$  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  r*   8AccountSession.CreateParamsComponentsPayoutsListFeaturesr+   r   Nr   r   r&   r'   !CreateParamsComponentsPayoutsList0AccountSession.CreateParamsComponentsPayoutsList  r   r&   r(  c                       \ rS rSrSrg)r'  i  r   NrI   r   r&   r'   )CreateParamsComponentsPayoutsListFeatures8AccountSession.CreateParamsComponentsPayoutsListFeatures  r   r&   r+  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i!  r*   =AccountSession.CreateParamsComponentsTaxRegistrationsFeaturesr+   r   Nr   r   r&   r'   &CreateParamsComponentsTaxRegistrations5AccountSession.CreateParamsComponentsTaxRegistrations!  r   r&   r/  c                       \ rS rSrSrg)r.  i-  r   NrI   r   r&   r'   .CreateParamsComponentsTaxRegistrationsFeatures=AccountSession.CreateParamsComponentsTaxRegistrationsFeatures-  r   r&   r2  c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i0  r*   8AccountSession.CreateParamsComponentsTaxSettingsFeaturesr+   r   Nr   r   r&   r'   !CreateParamsComponentsTaxSettings0AccountSession.CreateParamsComponentsTaxSettings0  r   r&   r6  c                       \ rS rSrSrg)r5  i<  r   NrI   r   r&   r'   )CreateParamsComponentsTaxSettingsFeatures8AccountSession.CreateParamsComponentsTaxSettingsFeatures<  r   r&   r9  r   client_secretr   
expires_atlivemodeobjectparamsr   returnc           	      T    [        SU R                  SU R                  5       US95      $ )
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'   createAccountSession.createY  s6        
 	
r&   c           	      p   #    [        SU R                  SU R                  5       US9I Sh  vN 5      $  N7f)rB  r   rC  rD  N)r   _static_request_asyncrF  rG  s     r'   create_asyncAccountSession.create_asynci  sC      ++ ,  
 	
s   )64
	6r   N)6r   r    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/  r2  r6  r9  r   intr#   classmethodr   rI  rM  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>rW     s2    B 2 . ' ' E Eo4*+;< o4r&   