
    g                         d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZmZ d dlmZmZmZmZmZmZ d d	lmZmZmZmZmZ erd d
lmZ  G d ded   ed   ed         Zy)    )CreateableAPIResource)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)FinancialAccountFeaturesc                   :   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+ G dF dGe      Z, G dH dIe      Z- G dJ dKe      Z. G dL dMe      Z/ G dN dOe      Z0 G dP dQe      Z1 G dR dSe      Z2 G dT dUe      Z3 G dV dWe      Z4 G dX dYe      Z5 G dZ d[e      Z6 G d\ d]e      Z7 G d^ d_e      Z8 G d` dae      Z9 G db dce      Z: G dd dee      Z; G df dge      Z< G dh die      Z= G dj dke      Z> G dl dme      Z? G dn doe      Z@ G dp dqe      ZA G dr dse      ZB G dt due      ZCeDeEedv         edw<   	 e	edx<   	 eFedy<   	 eGedz<   	 eDd{   ed|<   	 eEe
   ed}<   	 eFed~<   	 eDeH   ed<   eHed<   	 eDeIeFeFf      ed<   	 eDeF   ed<   	 ed   ed<   	 eDeEedv         ed<   	 eDe   ed<   	 eDeEedv         ed<   	 ed   ed<   	 eed<   eEeF   ed<   	 eJdeFdeKd   dd fd       ZLeMeNdeFdeKd   dd fd              ZOeMdeKd   dd fd       ZO ePd      deKd   dd fd       ZOeJdeFdeKd   dd fd       ZQeMeNdeFdeKd   dd fd              ZReMdeKd   dd fd       ZR ePd      deKd   dd fd       ZReJdeKd   dd fd       ZSeJdeKd   dd fd       ZTeJdeKd   deUd    fd       ZVeJdeKd   deUd    fd       ZWeJd~eFdeKd   dd fd       ZXeJd~eFdeKd   dd fd       ZYeJd~eFdeKd   dd fd       ZZeJd~eFdeKd   dd fd       Z[eJdeFdeKd   dd{fd       Z\eMeNdeFdeKd   dd{fd              Z]eMdeKd   dd{fd       Z] ePd      deKd   dd{fd       Z]eJdeFdeKd   dd{fd       Z^eMeNdeFdeKd   dd{fd              Z_eMdeKd   dd{fd       Z_ ePd      deKd   dd{fd       Z_eJdeFdeKd   dd{fd       Z`eMeNdeFdeKd   dd{fd              ZaeMdeKd   dd{fd       Za ePd      deKd   dd{fd       ZaeJdeFdeKd   dd{fd       ZbeMeNdeFdeKd   dd{fd              ZceMdeKd   dd{fd       Zc ePd      deKd   dd{fd       Zce	e
eedZdy)FinancialAccountz
    Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance.
    FinancialAccounts serve as the source and destination of Treasury's money movement APIs.
    ztreasury.financial_accountOBJECT_NAMEc                   N    e Zd ZU eeef   ed<   	 eeef   ed<   	 eeef   ed<   y)FinancialAccount.Balancecashinbound_pendingoutbound_pendingN)__name__
__module____qualname__r   strint__annotations__     h/var/www/html/Kila-kolis-project/venv/lib/python3.12/site-packages/stripe/treasury/_financial_account.pyBalancer   '   s?    38n	 c3h'	 sCx.(	r&   r(   c                   n    e Zd ZU  G d de      Zee   ed<   	 eeed         ed<   	 ed   ed<   	 deiZ	y)!FinancialAccount.FinancialAddressc                   N    e Zd ZU eed<   	 ee   ed<   	 eed<   	 eed<   	 eed<   y)%FinancialAccount.FinancialAddress.Abaaccount_holder_nameaccount_numberaccount_number_last4	bank_namerouting_numberN)r   r    r!   r"   r$   r   r%   r&   r'   Abar,   6   sD    !$$ %SM) #&% N  r&   r2   aba)achus_domestic_wiresupported_networkstypeN)
r   r    r!   r   r2   r   r$   r   r   _inner_class_typesr%   r&   r'   FinancialAddressr*   5   sY    	, 	, c]	 %T'2K*L%MNN	 en	 $S\r&   r9   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)%FinancialAccount.PlatformRestrictions
restrictedunrestrictedinbound_flowsoutbound_flowsN)r   r    r!   r   r   r$   r%   r&   r'   PlatformRestrictionsr;   Z   s0    (D EFF	 !)E!FGG	r&   rA   c                   >    e Zd ZU  G d de      Zee   ed<   	 deiZy)FinancialAccount.StatusDetailsc                   $    e Zd ZU eed      ed<   y)%FinancialAccount.StatusDetails.Closed)account_rejectedclosed_by_platformotherreasonsN)r   r    r!   r   r   r$   r%   r&   r'   ClosedrE   e   s    IJ r&   rJ   closedN)r   r    r!   r   rJ   r   r$   r8   r%   r&   r'   StatusDetailsrC   d   s-    	\ 	   	 '/r&   rL   c                   6    e Zd ZU eee      ed<   	 ed   ed<   y)FinancialAccount.CloseParamsexpand.FinancialAccount.CloseParamsForwardingSettingsforwarding_settingsNr   r    r!   r   r   r"   r$   r%   r&   r'   CloseParamsrN   s   s-    DI&&	 )<
 	
	r&   rS   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)rP   financial_accountpayment_methodrU   rV   r7   Nr   r    r!   r   r"   r$   r   r%   r&   r'   CloseParamsForwardingSettingsz.FinancialAccount.CloseParamsForwardingSettings   7    &s++	 $C((	 ;<<	r&   rY   c                       e Zd ZU eee      ed<   	 ed   ed<   	 eeeef      ed<   	 ed   ed<   	 ed   ed<   	 ee   ed	<   y
)FinancialAccount.CreateParamsrO   %FinancialAccount.CreateParamsFeaturesfeaturesmetadataLiteral['']|strnickname1FinancialAccount.CreateParamsPlatformRestrictionsplatform_restrictionssupported_currenciesNr   r    r!   r   r   r"   r$   r   r%   r&   r'   CreateParamsr\      s~    DI&&	 EFF	 d38n--	 /00	  +? 
 	
	 #3i'	r&   rf   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<   y)r]   0FinancialAccount.CreateParamsFeaturesCardIssuingcard_issuing5FinancialAccount.CreateParamsFeaturesDepositInsurancedeposit_insurance7FinancialAccount.CreateParamsFeaturesFinancialAddressesfinancial_addresses5FinancialAccount.CreateParamsFeaturesInboundTransfersinbound_transfers5FinancialAccount.CreateParamsFeaturesIntraStripeFlowsintra_stripe_flows5FinancialAccount.CreateParamsFeaturesOutboundPaymentsoutbound_payments6FinancialAccount.CreateParamsFeaturesOutboundTransfersoutbound_transfersNr   r    r!   r   r$   r%   r&   r'   CreateParamsFeaturesz%FinancialAccount.CreateParamsFeatures       !>
 	
	 'C
 	
	 )E
 	
	 'C
 	
	 (C
 	
	 'C
 	
	 (D
 	
	r&   rw   c                       e Zd ZU eed<   y)rh   	requestedNr   r    r!   boolr$   r%   r&   r'   CreateParamsFeaturesCardIssuingz0FinancialAccount.CreateParamsFeaturesCardIssuing       	r&   r}   c                       e Zd ZU eed<   y)rj   rz   Nr{   r%   r&   r'   $CreateParamsFeaturesDepositInsurancez5FinancialAccount.CreateParamsFeaturesDepositInsurance   r~   r&   r   c                       e Zd ZU ed   ed<   y)rl   :FinancialAccount.CreateParamsFeaturesFinancialAddressesAbar3   Nrv   r%   r&   r'   &CreateParamsFeaturesFinancialAddressesz7FinancialAccount.CreateParamsFeaturesFinancialAddresses       H
 	
	r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   )CreateParamsFeaturesFinancialAddressesAbaz:FinancialAccount.CreateParamsFeaturesFinancialAddressesAba   r~   r&   r   c                       e Zd ZU ed   ed<   y)rn   8FinancialAccount.CreateParamsFeaturesInboundTransfersAchr4   Nrv   r%   r&   r'   $CreateParamsFeaturesInboundTransfersz5FinancialAccount.CreateParamsFeaturesInboundTransfers       F
 	
	r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   'CreateParamsFeaturesInboundTransfersAchz8FinancialAccount.CreateParamsFeaturesInboundTransfersAch   r~   r&   r   c                       e Zd ZU eed<   y)rp   rz   Nr{   r%   r&   r'   $CreateParamsFeaturesIntraStripeFlowsz5FinancialAccount.CreateParamsFeaturesIntraStripeFlows   r~   r&   r   c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rr   8FinancialAccount.CreateParamsFeaturesOutboundPaymentsAchr4   CFinancialAccount.CreateParamsFeaturesOutboundPaymentsUsDomesticWirer5   Nrv   r%   r&   r'   $CreateParamsFeaturesOutboundPaymentsz5FinancialAccount.CreateParamsFeaturesOutboundPayments  .    F
 	
	 &Q
 	
	r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   'CreateParamsFeaturesOutboundPaymentsAchz8FinancialAccount.CreateParamsFeaturesOutboundPaymentsAch  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   2CreateParamsFeaturesOutboundPaymentsUsDomesticWirezCFinancialAccount.CreateParamsFeaturesOutboundPaymentsUsDomesticWire  r~   r&   r   c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rt   9FinancialAccount.CreateParamsFeaturesOutboundTransfersAchr4   DFinancialAccount.CreateParamsFeaturesOutboundTransfersUsDomesticWirer5   Nrv   r%   r&   r'   %CreateParamsFeaturesOutboundTransfersz6FinancialAccount.CreateParamsFeaturesOutboundTransfers  .    G
 	
	 &R
 	
	r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   (CreateParamsFeaturesOutboundTransfersAchz9FinancialAccount.CreateParamsFeaturesOutboundTransfersAch+  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   3CreateParamsFeaturesOutboundTransfersUsDomesticWirezDFinancialAccount.CreateParamsFeaturesOutboundTransfersUsDomesticWire1  r~   r&   r   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)rb   r<   r?   r@   Nr   r    r!   r   r   r$   r%   r&   r'    CreateParamsPlatformRestrictionsz1FinancialAccount.CreateParamsPlatformRestrictions7  0    "7+G#HII	 $G,H$IJJ	r&   r   c                   l    e Zd ZU ed   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)FinancialAccount.ListParamsz&FinancialAccount.ListParamsCreated|intcreatedending_beforerO   limitstarting_afterN)r   r    r!   r   r$   r"   r   r#   r%   r&   r'   
ListParamsr   A  s_    EFF	 #3''	 DI&&	 3	 $C((	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)"FinancialAccount.ListParamsCreatedgtgteltlteN)r   r    r!   r   r#   r$   r%   r&   r'   ListParamsCreatedr   W  sH    	 	 	 	r&   r   c                       e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   	 eeeef      ed<   	 ed   ed<   	 ed	   ed
<   y)FinancialAccount.ModifyParamsrO   %FinancialAccount.ModifyParamsFeaturesr^   /FinancialAccount.ModifyParamsForwardingSettingsrQ   r_   r`   ra   1FinancialAccount.ModifyParamsPlatformRestrictionsrc   Nre   r%   r&   r'   ModifyParamsr   i  s    DI&&	 EFF	 )=
 	
	 d38n--	 /00	  +? 
 	
	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<   y)r   0FinancialAccount.ModifyParamsFeaturesCardIssuingri   5FinancialAccount.ModifyParamsFeaturesDepositInsurancerk   7FinancialAccount.ModifyParamsFeaturesFinancialAddressesrm   5FinancialAccount.ModifyParamsFeaturesInboundTransfersro   5FinancialAccount.ModifyParamsFeaturesIntraStripeFlowsrq   5FinancialAccount.ModifyParamsFeaturesOutboundPaymentsrs   6FinancialAccount.ModifyParamsFeaturesOutboundTransfersru   Nrv   r%   r&   r'   ModifyParamsFeaturesz%FinancialAccount.ModifyParamsFeatures  rx   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   ModifyParamsFeaturesCardIssuingz0FinancialAccount.ModifyParamsFeaturesCardIssuing  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   $ModifyParamsFeaturesDepositInsurancez5FinancialAccount.ModifyParamsFeaturesDepositInsurance  r~   r&   r   c                       e Zd ZU ed   ed<   y)r   :FinancialAccount.ModifyParamsFeaturesFinancialAddressesAbar3   Nrv   r%   r&   r'   &ModifyParamsFeaturesFinancialAddressesz7FinancialAccount.ModifyParamsFeaturesFinancialAddresses  r   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   )ModifyParamsFeaturesFinancialAddressesAbaz:FinancialAccount.ModifyParamsFeaturesFinancialAddressesAba  r~   r&   r   c                       e Zd ZU ed   ed<   y)r   8FinancialAccount.ModifyParamsFeaturesInboundTransfersAchr4   Nrv   r%   r&   r'   $ModifyParamsFeaturesInboundTransfersz5FinancialAccount.ModifyParamsFeaturesInboundTransfers  r   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   'ModifyParamsFeaturesInboundTransfersAchz8FinancialAccount.ModifyParamsFeaturesInboundTransfersAch  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   $ModifyParamsFeaturesIntraStripeFlowsz5FinancialAccount.ModifyParamsFeaturesIntraStripeFlows  r~   r&   r   c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r   8FinancialAccount.ModifyParamsFeaturesOutboundPaymentsAchr4   CFinancialAccount.ModifyParamsFeaturesOutboundPaymentsUsDomesticWirer5   Nrv   r%   r&   r'   $ModifyParamsFeaturesOutboundPaymentsz5FinancialAccount.ModifyParamsFeaturesOutboundPayments  r   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   'ModifyParamsFeaturesOutboundPaymentsAchz8FinancialAccount.ModifyParamsFeaturesOutboundPaymentsAch  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   2ModifyParamsFeaturesOutboundPaymentsUsDomesticWirezCFinancialAccount.ModifyParamsFeaturesOutboundPaymentsUsDomesticWire  r~   r&   r   c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r   9FinancialAccount.ModifyParamsFeaturesOutboundTransfersAchr4   DFinancialAccount.ModifyParamsFeaturesOutboundTransfersUsDomesticWirer5   Nrv   r%   r&   r'   %ModifyParamsFeaturesOutboundTransfersz6FinancialAccount.ModifyParamsFeaturesOutboundTransfers  r   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   (ModifyParamsFeaturesOutboundTransfersAchz9FinancialAccount.ModifyParamsFeaturesOutboundTransfersAch	  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   3ModifyParamsFeaturesOutboundTransfersUsDomesticWirezDFinancialAccount.ModifyParamsFeaturesOutboundTransfersUsDomesticWire  r~   r&   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)r   rU   rV   rW   r7   NrX   r%   r&   r'   ModifyParamsForwardingSettingsz/FinancialAccount.ModifyParamsForwardingSettings  rZ   r&   r   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)r   r<   r?   r@   Nr   r%   r&   r'    ModifyParamsPlatformRestrictionsz1FinancialAccount.ModifyParamsPlatformRestrictions#  r   r&   r   c                   $    e Zd ZU eee      ed<   y)'FinancialAccount.RetrieveFeaturesParamsrO   NrR   r%   r&   r'   RetrieveFeaturesParamsr   -      DI&&	r&   r   c                   $    e Zd ZU eee      ed<   y)FinancialAccount.RetrieveParamsrO   NrR   r%   r&   r'   RetrieveParamsr   3  r   r&   r   c                       e Zd ZU ed   ed<   	 ed   ed<   	 eee      ed<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   	 ed   ed<   y)%FinancialAccount.UpdateFeaturesParams0FinancialAccount.UpdateFeaturesParamsCardIssuingri   5FinancialAccount.UpdateFeaturesParamsDepositInsurancerk   rO   7FinancialAccount.UpdateFeaturesParamsFinancialAddressesrm   5FinancialAccount.UpdateFeaturesParamsInboundTransfersro   5FinancialAccount.UpdateFeaturesParamsIntraStripeFlowsrq   5FinancialAccount.UpdateFeaturesParamsOutboundPaymentsrs   6FinancialAccount.UpdateFeaturesParamsOutboundTransfersru   N)r   r    r!   r   r$   r   r"   r%   r&   r'   UpdateFeaturesParamsr   9  s    !>
 	
	 'C
 	
	 DI&&	 )E
 	
	 'C
 	
	 (C
 	
	 'C
 	
	 (D
 	
	r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   UpdateFeaturesParamsCardIssuingz0FinancialAccount.UpdateFeaturesParamsCardIssuingi  r~   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   $UpdateFeaturesParamsDepositInsurancez5FinancialAccount.UpdateFeaturesParamsDepositInsuranceo  r~   r&   r   c                       e Zd ZU ed   ed<   y)r   :FinancialAccount.UpdateFeaturesParamsFinancialAddressesAbar3   Nrv   r%   r&   r'   &UpdateFeaturesParamsFinancialAddressesz7FinancialAccount.UpdateFeaturesParamsFinancialAddressesu  r   r&   r   c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   )UpdateFeaturesParamsFinancialAddressesAbaz:FinancialAccount.UpdateFeaturesParamsFinancialAddressesAba}  r~   r&   r   c                       e Zd ZU ed   ed<   y)r   8FinancialAccount.UpdateFeaturesParamsInboundTransfersAchr4   Nrv   r%   r&   r'   $UpdateFeaturesParamsInboundTransfersz5FinancialAccount.UpdateFeaturesParamsInboundTransfers  r   r&   r  c                       e Zd ZU eed<   y)r  rz   Nr{   r%   r&   r'   'UpdateFeaturesParamsInboundTransfersAchz8FinancialAccount.UpdateFeaturesParamsInboundTransfersAch  r~   r&   r  c                       e Zd ZU eed<   y)r   rz   Nr{   r%   r&   r'   $UpdateFeaturesParamsIntraStripeFlowsz5FinancialAccount.UpdateFeaturesParamsIntraStripeFlows  r~   r&   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r   8FinancialAccount.UpdateFeaturesParamsOutboundPaymentsAchr4   CFinancialAccount.UpdateFeaturesParamsOutboundPaymentsUsDomesticWirer5   Nrv   r%   r&   r'   $UpdateFeaturesParamsOutboundPaymentsz5FinancialAccount.UpdateFeaturesParamsOutboundPayments  r   r&   r
  c                       e Zd ZU eed<   y)r  rz   Nr{   r%   r&   r'   'UpdateFeaturesParamsOutboundPaymentsAchz8FinancialAccount.UpdateFeaturesParamsOutboundPaymentsAch  r~   r&   r  c                       e Zd ZU eed<   y)r	  rz   Nr{   r%   r&   r'   2UpdateFeaturesParamsOutboundPaymentsUsDomesticWirezCFinancialAccount.UpdateFeaturesParamsOutboundPaymentsUsDomesticWire  r~   r&   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r   9FinancialAccount.UpdateFeaturesParamsOutboundTransfersAchr4   DFinancialAccount.UpdateFeaturesParamsOutboundTransfersUsDomesticWirer5   Nrv   r%   r&   r'   %UpdateFeaturesParamsOutboundTransfersz6FinancialAccount.UpdateFeaturesParamsOutboundTransfers  r   r&   r  c                       e Zd ZU eed<   y)r  rz   Nr{   r%   r&   r'   (UpdateFeaturesParamsOutboundTransfersAchz9FinancialAccount.UpdateFeaturesParamsOutboundTransfersAch  r~   r&   r  c                       e Zd ZU eed<   y)r  rz   Nr{   r%   r&   r'   3UpdateFeaturesParamsOutboundTransfersUsDomesticWirezDFinancialAccount.UpdateFeaturesParamsOutboundTransfersUsDomesticWire  r~   r&   r  )ri   rk   zfinancial_addresses.abaz"financial_addresses.aba.forwardingzinbound_transfers.achrq   zoutbound_payments.achz"outbound_payments.us_domestic_wirezoutbound_transfers.achz#outbound_transfers.us_domestic_wireremote_deposit_captureactive_featuresbalancecountryr   r   r^   rm   id
is_defaultlivemoder_   ra   objectpending_featuresrc   restricted_features)rK   openstatusstatus_detailsrd   rU   paramsrN   returnc                 p    t        d| j                  ddj                  t        |            |            S )
        Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.
        r   post9/v1/treasury/financial_accounts/{financial_account}/closerU   r$  r   _static_requestformatr
   clsrU   r$  s      r'   
_cls_closezFinancialAccount._cls_close?  sL     KRR&12C&D S     	
 		
r&   c                      yr'  Nr%   rU   r$  s     r'   closezFinancialAccount.closeS       	r&   c                      yr3  r%   selfr$  s     r'   r5  zFinancialAccount.close^       	r&   r1  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r'  r   r(  r)  r  r*  r+  r   _requestr.  r
   getr8  s     r'   r5  zFinancialAccount.closeg  sQ     MMKRR&1$((4.&A S    	
 		
r&   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r'  r   r(  r)  r*  r+  Nr   _static_request_asyncr.  r
   r/  s      r'   _cls_close_asyncz!FinancialAccount._cls_close_asyncy  sZ      ++KRR&12C&D S   ,  	
 		
   7AA
	Ac                    K   ywr3  r%   r4  s     r'   close_asynczFinancialAccount.close_async        	   c                    K   ywr3  r%   r8  s     r'   rE  zFinancialAccount.close_async        	rG  rB  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r'  r   r(  r)  r  r*  r+  Nr   _request_asyncr.  r
   r>  r8  s     r'   rE  zFinancialAccount.close_async  sa      %%KRR&1$((4.&A S   &  	
 		
   AAA
		Ar\   c                 Z    t        d| j                  d| j                         |            S ){
        Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.
        r   r(  r+  )r   r-  	class_urlr0  r$  s     r'   createzFinancialAccount.create  s6        
 	
r&   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)rO  r   r(  r+  N)r   rA  rP  rQ  s     r'   create_asynczFinancialAccount.create_async  sD      ++ ,  
 	
s   ,97
	9r   c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |S )6
        Returns a list of FinancialAccounts.
        r>  r+  %Expected list object from API, got %s)r-  rP  
isinstancer   	TypeErrorr7   r   r0  r$  results      r'   listzFinancialAccount.list  s]     $$MMO % 

 &*-7<((* 
 r&   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)rV  r>  r+  NrW  )rA  rP  rX  r   rY  r7   r   rZ  s      r'   
list_asynczFinancialAccount.list_async  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r   c                 z    | j                         dt        |      }t        d| j                  d||            S )<
        Updates the details of a FinancialAccount.
        /r   r(  r+  )rP  r
   r   r-  r0  r  r$  urls       r'   modifyzFinancialAccount.modify  sD     +b/:   
 	
r&   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r`  ra  r   r(  r+  N)rP  r
   r   rA  rb  s       r'   modify_asynczFinancialAccount.modify_async  sR      +b/:++ ,  
 	
s   <A	A
	A	r   c                 8     | |fi |}|j                          |S )>
        Retrieves the details of a FinancialAccount.
        )refreshr0  r  r$  instances       r'   retrievezFinancialAccount.retrieve  s$     r$V$r&   c                 T   K    | |fi |}|j                          d{    |S 7 w)rh  N)refresh_asyncrj  s       r'   retrieve_asynczFinancialAccount.retrieve_async(  s3      r$V$$$&&& 	's   (&(r   c                 p    t        d| j                  ddj                  t        |            |            S )V
        Retrieves Features information associated with the FinancialAccount.
        r   r>  </v1/treasury/financial_accounts/{financial_account}/featuresr*  r+  r,  r/  s      r'   _cls_retrieve_featuresz'FinancialAccount._cls_retrieve_features3  sL     &NUU&12C&D V     	
 		
r&   c                      yrq  Nr%   r4  s     r'   retrieve_featuresz"FinancialAccount.retrieve_featuresG  r6  r&   c                      yru  r%   r8  s     r'   rv  z"FinancialAccount.retrieve_featuresR  r:  r&   rs  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )rq  r   r>  rr  r  r*  r+  r<  r8  s     r'   rv  z"FinancialAccount.retrieve_features[  sQ     &MMNUU&1$((4.&A V    	
 		
r&   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)rq  r   r>  rr  r*  r+  Nr@  r/  s      r'   _cls_retrieve_features_asyncz-FinancialAccount._cls_retrieve_features_asyncm  sZ      &++NUU&12C&D V   ,  	
 		
rC  c                    K   ywru  r%   r4  s     r'   retrieve_features_asyncz(FinancialAccount.retrieve_features_async  rF  rG  c                    K   ywru  r%   r8  s     r'   r|  z(FinancialAccount.retrieve_features_async  rI  rG  rz  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)rq  r   r>  rr  r  r*  r+  NrK  r8  s     r'   r|  z(FinancialAccount.retrieve_features_async  sa      &%%NUU&1$((4.&A V   &  	
 		
rM  r   c                 p    t        d| j                  ddj                  t        |            |            S )J
        Updates the Features associated with a FinancialAccount.
        r   r(  rr  r*  r+  r,  r/  s      r'   _cls_update_featuresz%FinancialAccount._cls_update_features  sL     &NUU&12C&D V     	
 		
r&   c                      yr  Nr%   r4  s     r'   update_featuresz FinancialAccount.update_features  r6  r&   c                      yr  r%   r8  s     r'   r  z FinancialAccount.update_features  r:  r&   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r   r(  rr  r  r*  r+  r<  r8  s     r'   r  z FinancialAccount.update_features  sQ     &MMNUU&1$((4.&A V    	
 		
r&   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r(  rr  r*  r+  Nr@  r/  s      r'   _cls_update_features_asyncz+FinancialAccount._cls_update_features_async  sZ      &++NUU&12C&D V   ,  	
 		
rC  c                    K   ywr  r%   r4  s     r'   update_features_asyncz&FinancialAccount.update_features_async  rF  rG  c                    K   ywr  r%   r8  s     r'   r  z&FinancialAccount.update_features_async   rI  rG  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r   r(  rr  r  r*  r+  NrK  r8  s     r'   r  z&FinancialAccount.update_features_async	  sa      &%%NUU&1$((4.&A V   &  	
 		
rM  )r  rm   rc   r#  N)er   r    r!   __doc__r   r   r   r$   r   r(   r9   rA   rL   r   rS   r   rY   rf   rw   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  r  r  r
  r  r  r  r  r  r   r   r"   r#   r|   r   classmethodr   r1  r   staticmethodr5  r	   rB  rE  rR  rT  r   r\  r^  rd  rf  rl  ro  rs  rv  rz  r|  r  r  r  r  r8   r%   r&   r'   r   r      s
   
 	% '">?@ , #*< #*J| 0 0
n 
	 ~ 8*y *X) y  I y ) y y ) Y 	 9 i 9 ^ ,I $~ <*y *X) y  I y ) y y ) Y 	 9 i  9   .~ .`) y  I y ) y y ) Y 	 9 i  
*	
 "  L L 122 .// 	G N tCH~&& sm 011 
*	
 " $$899 "
*	
 " $%% "!s)# 

 78
 
	
 
& 78 
   =>	  ,'
=>
	
 (
" 

 78
 
	
 
& 78 
   =>	  ,-
=>
	
 .
" 
=>
	
 
 
=>
	
 
 ;<	&	' & ;<	&	' & 

 &'F G
	
 
  

 &'F G
	
 
   &'H I	   &'H I	  

 BC
 
$	
 
& BC 
$   HI	#  23
HI
	#
 4
" 

 BC
 
$	
 
& BC 
$   HI	#  89
HI
	#
 :
" 

 @A
 
$	
 
& @A 
$   FG	#  01
FG
	#
 2
" 

 @A
 
$	
 
& @A 
$   FG	#  67
FG
	#
 8
$ /!5'	r&   r   N)stripe._createable_api_resourcer   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr	   r
   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   +stripe.treasury._financial_account_featuresr   r   r%   r&   r'   <module>r     s^    B * = 2 . A : A A  
G,-*+,-Gr&   