
    +h             
          d dl mZ d dlmZmZmZmZ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 d d	lmZmZ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" d dl#m$Z$ e"rTd 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l0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7 d dl8m9Z9 d dl:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZA  G d ded   ed   ed   ed   ed         ZBy)    )util)CreateableAPIResourceDeletableAPIResourceListableAPIResourceSearchableAPIResourceUpdateableAPIResource)ExpandableField)
ListObject)SearchResultObject)RequestOptions)StripeObject)class_method_variant)ClassVarDictIteratorListOptionalUnioncastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)
quote_plus)Account)Application)BankAccount)Card)Customer)Discount)Invoice)PaymentMethod)SetupIntent)Source)SubscriptionItem)SubscriptionSchedule)TaxRate)	TestClockc                      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er 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      Z0 G dN dOe      Z1 G dP dQe      Z2 G dR dSe      Z3 G dT dUe      Z4 G dV dWe      Z5 G dX dYe      Z6 G dZ d[e      Z7 G d\ d]e      Z8 G d^ d_e      Z9 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      ZA G dp dqe      ZB G dr dse      ZC G dt due      ZD G dv dwe      ZE G dx dye      ZF G dz d{e      ZG G d| d}e      ZH G d~ de      ZI G d de      ZJ G d de      ZK G d de      ZL G d de      ZM G d de      ZN G d de      ZO G d de      ZP G d de      ZQ G d de      ZR G d de      ZS G d de      ZT G d de      ZUeVeWd      ed<   	 eVeX   ed<   	 e	ed<   eYed<   	 eVe
   ed<   	 eVeY   ed<   	 eZed<   	 eVeY   ed<   	 eVe   ed<   	 ed   ed<   	 eYed<   	 e[ed<   	 eYed<   	 eYed<   	 eWd   ed<   	 eVeY   ed<   	 eVeWd      ed<   	 eVeWe\d         ed<   	 eVe]d      ed<   	 eVe[   ed<   	 eVd   ed<   	 eVeY   ed<   	 e[ed<   	 e^d   ed<   	 eVeWd      ed<   	 eZed<   	 e_e[e[f   ed<   	 eVeY   ed<   	 ed   ed<   	 eVeWd      ed<   	 eVe   ed<   	 eVe   ed<   	 eVe   ed<   	 eVeWd      ed<   	 eVe   ed<   	 eVeWd      ed<   	 eYed<   	 ed   ed<   	 eVeWd      ed<   	 eVe   ed<   	 eVeY   ed<   	 eVe   ed<   	 eVeY   ed<   	 e`	 	 	 dde[deVe[   deVe[   deVe[   dead   dd fdل       Zbeced	 	 	 dde[deVe[   deVe[   deVe[   dead   dd fdڄ              Zeec	 ddeVe[   dead   dd fd܄       Ze efdݫ      	 ddeVe[   dead   dd fdބ       Zee`	 	 	 	 ddeVe[   deVe[   deVe[   deVe[   dead   dd fd       Zge`	 	 	 dde[deVe[   deVe[   deVe[   dead   ddfd       Zheced	 	 	 dde[deVe[   deVe[   deVe[   dead   ddfd              Ziec	 ddeVe[   dead   ddfd       Zi efd      	 ddeVe[   dead   ddfd       Zie`	 	 	 ddeVe[   deVe[   deVe[   dead   de^d    f
d       Zje`de[dead   dd fd       Zke`	 	 	 dde[deVe[   deVe[   deVe[   dead   dd fd       Zleced	 	 	 dde[deVe[   deVe[   deVe[   dead   dd fd              Zmec	 ddeVe[   dead   dd fd       Zm efd      	 ddeVe[   dead   dd fd       Zme`de[dead   dd fd       Zne`dead   deod    fd       Zpe`dead   deqd    fd       Zre	e
eeeeeeed	Zsy)Subscriptionz
    Subscriptions allow you to charge a customer on a recurring basis.

    Related guide: [Creating subscriptions](https://stripe.com/docs/billing/subscriptions/creating)
    subscriptionOBJECT_NAMEc                       e Zd ZU eed<   y)Subscription.AutomaticTaxenabledN__name__
__module____qualname__bool__annotations__     T/var/www/html/venv/lib/python3.12/site-packages/stripe/api_resources/subscription.pyAutomaticTaxr0   D   s    	r9   r;   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)Subscription.BillingThresholds
amount_gtereset_billing_cycle_anchorN)r3   r4   r5   r   intr7   r6   r8   r9   r:   BillingThresholdsr=   J   s"    SM!	 %-TN2	r9   rA   c                   N    e Zd ZU ee   ed<   	 eed      ed<   	 eed      ed<   y) Subscription.CancellationDetailscomment)customer_servicelow_qualitymissing_featuresotherswitched_servicetoo_complextoo_expensiveunusedfeedback)cancellation_requestedpayment_disputedpayment_failedreasonN)r3   r4   r5   r   strr7   r   r8   r9   r:   CancellationDetailsrC   T   sQ    #	 	
 	
	 N
 	

	r9   rS   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)Subscription.PauseCollectionkeep_as_draftmark_uncollectiblevoidbehavior
resumes_atN)r3   r4   r5   r   r7   r   r@   r8   r9   r:   PauseCollectionrU   q   s$    GHH	 SM!	r9   r\   c                   t    e Zd ZU  G d de      Zee   ed<   	 eeed         ed<   	 eed      ed<   	 deiZ	y)	Subscription.PaymentSettingsc                      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	e
e   ed<   	 e
e   ed<   	 e
e   ed<   	 e
e   ed<   	 e
e   ed<   	 e
e	   ed<   	 eeeeee	dZy)1Subscription.PaymentSettings.PaymentMethodOptionsc                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy);Subscription.PaymentSettings.PaymentMethodOptions.AcssDebitc                   $    e Zd ZU eed      ed<   y)JSubscription.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions)businesspersonaltransaction_typeN)r3   r4   r5   r   r   r7   r8   r9   r:   MandateOptionsrd   ~   s    &.w7M/N&OOr9   rh   mandate_options	automaticinstantmicrodepositsverification_methodN	r3   r4   r5   r   rh   r   r7   r   _inner_class_typesr8   r9   r:   	AcssDebitrb   }   sC    \  "*.!99%-CD&  '8%H"r9   rq   c                       e Zd ZU ed   ed<   y)<Subscription.PaymentSettings.PaymentMethodOptions.Bancontact)deenfrnlpreferred_languageNr3   r4   r5   r   r7   r8   r9   r:   
Bancontactrs      s    $+,B$CCr9   rz   c                   l    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 eed      ed<   	 deiZy)	6Subscription.PaymentSettings.PaymentMethodOptions.Cardc                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ee   ed<   y)ESubscription.PaymentSettings.PaymentMethodOptions.Card.MandateOptionsamount)fixedmaximumamount_typedescriptionN)r3   r4   r5   r   r@   r7   r   rR   r8   r9   r:   rh   r~      s:    $SM) "*'2D*E!FF "*#.r9   rh   ri   )amexcartes_bancairesdinersdiscover	eftpos_auinteracjcb
mastercardunionpayunknownvisanetwork)anyrk   request_three_d_secureNro   r8   r9   r:   r    r|      s_    \  "*.!99!
   )19K1L(MM '8%H"r9   r    c                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy)ASubscription.PaymentSettings.PaymentMethodOptions.CustomerBalancec                   N    e Zd ZU  G d de      Zee   ed<   ee   ed<   	 deiZy)NSubscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransferc                       e Zd ZU ed   ed<   y)]Subscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)BEDEESFRIENLcountryNry   r8   r9   r:   EuBankTransferr      s    !()K!LLr9   r   eu_bank_transfertypeN)	r3   r4   r5   r   r   r   r7   rR   rp   r8   r9   r:   BankTransferr      s7      '/~&>>"3-' +=n)M&r9   r   bank_transferfunding_typeN)	r3   r4   r5   r   r   r   r7   r   rp   r8   r9   r:   CustomerBalancer      s?    N< N  (55&w'?@@ '6|%D"r9   r   c                       e Zd Zy)9Subscription.PaymentSettings.PaymentMethodOptions.KonbiniNr3   r4   r5   r8   r9   r:   Konbinir      s    r9   r   c                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy)?Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccountc                   H    e Zd ZU eeed         ed<   	 eeed         ed<   y)TSubscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections)balancespayment_methodtransactionspermissionsr   prefetchN)r3   r4   r5   r   r   r   r7   r8   r9   r:   FinancialConnectionsr      sC    !)# L"  'tGJ,?'@AAr9   r   financial_connectionsrj   rn   N)	r3   r4   r5   r   r   r   r7   r   rp   r8   r9   r:   UsBankAccountr      sG    <   (00D'EE%-CD&  ,-A&"r9   r   
acss_debit
bancontactcardcustomer_balancekonbinius_bank_account)r   r   r   r   r   r   N)r3   r4   r5   r   rq   rz   r    r   r   r   r   r7   rp   r8   r9   r:   PaymentMethodOptionsr`   |   s    IL I \ &I| &IPE, E,,  8 !++ !,, 4.  '77 g&& &m44 (($3"#0"r9   r   payment_method_options)ach_credit_transfer	ach_debitr   au_becs_debit
bacs_debitr   boletor   cashappr   fpxgiropaygrabpayidealr   linkpaynowpaypal	promptpaysepa_credit_transfer
sepa_debitsofortr   
wechat_paypayment_method_types)offon_subscriptionsave_default_payment_methodN)
r3   r4   r5   r   r   r   r7   r   r   rp   r8   r9   r:   PaymentSettingsr^   {   sx    S	< S	j !))= >>	 '"
 	
<	 &.,-&
 	
	 78LMr9   r   c                   *    e Zd ZU ed   ed<   	 eed<   y)'Subscription.PendingInvoiceItemIntervaldaymonthweekyearintervalinterval_countN)r3   r4   r5   r   r7   r@   r8   r9   r:   PendingInvoiceItemIntervalr   >  s     899	 	r9   r   c                   f    e Zd ZU ee   ed<   	 eed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y)Subscription.PendingUpdatebilling_cycle_anchor
expires_atr'   subscription_items	trial_endtrial_from_planN)r3   r4   r5   r   r@   r7   r   r6   r8   r9   r:   PendingUpdater   H  sW    &sm+	 	 %T*<%=>>	 C= 	 "$'	r9   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)Subscription.TransferDataamount_percentr   destinationN)r3   r4   r5   r   floatr7   r	   r8   r9   r:   TransferDatar   ^  s#     '	 %Y//	r9   r   c                   8    e Zd ZU  G d de      Zeed<   	 deiZy)Subscription.TrialSettingsc                       e Zd ZU ed   ed<   y)&Subscription.TrialSettings.EndBehaviorcancelcreate_invoicepausemissing_payment_methodNry   r8   r9   r:   EndBehaviorr   i      $+3% r9   r   end_behaviorN)r3   r4   r5   r   r   r7   rp   r8   r9   r:   TrialSettingsr   h  s(    	, 	 "!	 -k:r9   r   c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)	Subscription.CancelParams,Subscription.CancelParamsCancellationDetailscancellation_details	List[str]expandr6   invoice_nowprorateNr3   r4   r5   r   r7   r8   r9   r:   CancelParamsr   y  sM    "->#   ,, %V,, !((r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r   Literal['']|strrD   Literal['']|Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']rM   Nr  r8   r9   r:   CancelParamsCancellationDetailsz,Subscription.CancelParamsCancellationDetails  -     !233 " d r9   r  c                   F   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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+   ed,<   	 ed-   ed.<   	 ed/   ed0<   	 ed   ed1<   	 ed   ed2<   	 ed3   ed4<   y5)6Subscription.CreateParamsz-List[Subscription.CreateParamsAddInvoiceItem]add_invoice_itemsr   application_fee_percent%Subscription.CreateParamsAutomaticTaxautomatic_taxr@   backdate_start_dater   z6Literal['']|Subscription.CreateParamsBillingThresholdsbilling_thresholds	cancel_atr6   cancel_at_period_end/Literal['charge_automatically', 'send_invoice']collection_methodrR   couponcurrencycustomerdays_until_duedefault_payment_methoddefault_sourceLiteral['']|List[str]default_tax_ratesr   r   r   z#List[Subscription.CreateParamsItem]itemsLiteral['']|Dict[str, str]metadataoff_sessionr  on_behalf_ofaLiteral['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']payment_behavior(Subscription.CreateParamsPaymentSettingspayment_settingsz?Literal['']|Subscription.CreateParamsPendingInvoiceItemIntervalpending_invoice_item_intervalpromotion_code6Literal['always_invoice', 'create_prorations', 'none']proration_behavior%Subscription.CreateParamsTransferDatatransfer_dataLiteral['now']|intr   r   trial_period_days&Subscription.CreateParamsTrialSettingstrial_settingsNr3   r4   r5   r   r7   rR   r8   r9   r:   CreateParamsr
    si   *?   &1%99 ''NOO "-U!33 #.e"44 !,H!  #5)) #.f"55  +A    && "%(( M (.. %0$66 (..  ++BCC %U++  ,, DEE "">?? %V,, &&788 *s  *:  ,7Q,  (.. !,H!  ''NOO ##788 )00  +511 (8 r9   r1  c                       e Zd ZU ded<   y)r.  1Subscription.CreateParamsTrialSettingsEndBehaviorr   Nr3   r4   r5   r7   r8   r9   r:   CreateParamsTrialSettingsz&Subscription.CreateParamsTrialSettings5      MMr9   r5  c                       e Zd ZU ed   ed<   y)r3  r   r   Nry   r8   r9   r:   $CreateParamsTrialSettingsEndBehaviorz1Subscription.CreateParamsTrialSettingsEndBehavior;  r   r9   r8  c                   *    e Zd ZU ed   ed<   	 eed<   y)r*  r   r   r   Nr0  r8   r9   r:   CreateParamsTransferDataz%Subscription.CreateParamsTransferDataC      '00 r9   r:  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)3Subscription.CreateParamsPendingInvoiceItemIntervalr   r   r@   r   Nr3   r4   r5   r   r7   r   r8   r9   r:   &CreateParamsPendingInvoiceItemIntervalr=  M  %    <== (..r9   r?  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r$  <Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsr   T  Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'paynow', 'paypal', 'promptpay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay']]r   !Literal['off', 'on_subscription']r   Nr  r8   r9   r:   CreateParamsPaymentSettingsz(Subscription.CreateParamsPaymentSettingsW  H    $/N%  #. g#  *53* r9   rE  c                   x    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<   y)rB  zQLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zRLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   zLLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardr   zWLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zOLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir   zULiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr  r8   r9   r:   /CreateParamsPaymentSettingsPaymentMethodOptionsz<Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsk      #c  $d  ^  *i  !a  )g r9   rH  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)ISubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount]Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   0Literal['automatic', 'instant', 'microdeposits']rn   Nr  r8   r9   r:   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountrK    0     $/o$  "-B" r9   rN  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rL  HList[Literal['balances', 'ownership', 'payment_method', 'transactions']]r   List[Literal['balances']]r   Nr  r8   r9   r:   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz]Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  ,     %Z  ""=>>r9   rS  c                       e Zd Zy)CSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r8   r9   r:   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinirV         r9   rW  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)KSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceWSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   rR   r   Nr  r8   r9   r:   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancerZ    +     'i  &e,,r9   r\  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r[  eSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   rR   r   Nr  r8   r9   r:   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzWSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  +     *w  e$$r9   r`  c                       e Zd ZU eed<   y)r_  r   Nr3   r4   r5   rR   r7   r8   r9   r:   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer       Lr9   rd  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)@Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsri   Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'interac', 'jcb', 'mastercard', 'unionpay', 'unknown', 'visa']r   Literal['any', 'automatic']r   Nr  r8   r9   r:   3CreateParamsPaymentSettingsPaymentMethodOptionsCardrg    D    (`  ! X  %00M$NNr9   rk  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)rh  r@   r   Literal['fixed', 'maximum']r   rR   r   Nr  r8   r9   r:   ACreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions  9      && %%BCC %U++r9   ro  c                       e Zd ZU ed   ed<   y)FSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactLiteral['de', 'en', 'fr', 'nl']rx   Nr  r8   r9   r:   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactrr         !,,M NNr9   rt  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)ESubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitSSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsri   rM  rn   Nr  r8   r9   r:   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitrw    0     )e  "-B" r9   ry  c                       e Zd ZU ed   ed<   y)rx  Literal['business', 'personal']rg   Nr  r8   r9   r:   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions       **KLLr9   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)Subscription.CreateParamsItemz:Literal['']|Subscription.CreateParamsItemBillingThresholdsr  zDict[str, str]r  rR   planprice&Subscription.CreateParamsItemPriceData
price_datar@   quantityr  	tax_ratesNr  r8   r9   r:   CreateParamsItemr    s     +L!  ""233 e$$ u%% $$LMM "%(( ##:;;r9   r  c                   f    e Zd ZU eed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)r  r  product/Subscription.CreateParamsItemPriceDataRecurring	recurring0Literal['exclusive', 'inclusive', 'unspecified']tax_behaviorr@   unit_amountrR   unit_amount_decimalNr3   r4   r5   rR   r7   r   r8   r9   r:   CreateParamsItemPriceDataz&Subscription.CreateParamsItemPriceData:  a    M L IH &B  %U++ "-U!33r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r   r   r@   r   Nr>  r8   r9   r:   "CreateParamsItemPriceDataRecurringz/Subscription.CreateParamsItemPriceDataRecurringV  r@  r9   r  c                       e Zd ZU eed<   y).Subscription.CreateParamsItemBillingThresholds	usage_gteNr3   r4   r5   r@   r7   r8   r9   r:   !CreateParamsItemBillingThresholdsr  `      Nr9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)*Subscription.CreateParamsBillingThresholdsr@   r>   r6   r?   Nr  r8   r9   r:   CreateParamsBillingThresholdsr  f  $    #E** )4F(;;r9   r  c                       e Zd ZU eed<   y)r  r1   Nr2   r8   r9   r:   CreateParamsAutomaticTaxz%Subscription.CreateParamsAutomaticTaxp      Mr9   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
'Subscription.CreateParamsAddInvoiceItemrR   r  0Subscription.CreateParamsAddInvoiceItemPriceDatar  r@   r  r  r  Nr  r8   r9   r:   CreateParamsAddInvoiceItemr  v  N    u%% $B  "%(( ##:;;r9   r  c                   Z    e Zd ZU eed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
r  r  r  r  r  r@   r  rR   r  Nr  r8   r9   r:   #CreateParamsAddInvoiceItemPriceDataz0Subscription.CreateParamsAddInvoiceItemPriceData  S    M L &B  %U++ "-U!33r9   r  c                       e Zd Zy)!Subscription.DeleteDiscountParamsNr   r8   r9   r:   DeleteDiscountParamsr    s    r9   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<   y)Subscription.ListParams#Subscription.ListParamsAutomaticTaxr  r  r  z"Subscription.ListParamsCreated|intcreatedz+Subscription.ListParamsCurrentPeriodEnd|intcurrent_period_endz-Subscription.ListParamsCurrentPeriodStart|intcurrent_period_startrR   r  ending_beforer   r   r@   limitr  r  starting_afterz}Literal['active', 'all', 'canceled', 'ended', 'incomplete', 'incomplete_expired', 'past_due', 'paused', 'trialing', 'unpaid']status
test_clockNr  r8   r9   r:   
ListParamsr    s   &'LMM  +A   !!EFF +=!  #.?#  "%(( 'u--  ,, u%% e$$ u%% (..   P  $E**r9   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y))Subscription.ListParamsCurrentPeriodStartr@   gtgteltlteNr  r8   r9   r:   ListParamsCurrentPeriodStartr    H    E"" U## E"" U##r9   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)'Subscription.ListParamsCurrentPeriodEndr@   r  r  r  r  Nr  r8   r9   r:   ListParamsCurrentPeriodEndr    r  r9   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)Subscription.ListParamsCreatedr@   r  r  r  r  Nr  r8   r9   r:   ListParamsCreatedr    r  r9   r  c                       e Zd ZU eed<   y)r  r1   Nr2   r8   r9   r:   ListParamsAutomaticTaxz#Subscription.ListParamsAutomaticTax  r  r9   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<   	 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d0<   	 ed1   ed2<   	 ed3   ed4<   	 ed   ed5<   	 ed6   ed7<   y8)9Subscription.ModifyParamsz-List[Subscription.ModifyParamsAddInvoiceItem]r  r   r  %Subscription.ModifyParamsAutomaticTaxr  Literal['now', 'unchanged']r   z6Literal['']|Subscription.ModifyParamsBillingThresholdsr  zLiteral['']|intr  r6   r  ,Subscription.ModifyParamsCancellationDetailsr   r  r  rR   r  r@   r  r  r  r  r  r  r   r   r   z#List[Subscription.ModifyParamsItem]r  r  r  r   r!  z4Literal['']|Subscription.ModifyParamsPauseCollectionpause_collectionr"  r#  (Subscription.ModifyParamsPaymentSettingsr%  z?Literal['']|Subscription.ModifyParamsPendingInvoiceItemIntervalr&  r'  r(  r)  proration_datez1Literal['']|Subscription.ModifyParamsTransferDatar+  r,  r   r   &Subscription.ModifyParamsTrialSettingsr/  Nr  r8   r9   r:   ModifyParamsr    so   *?   &1%99 ''NOO #..K"LL !,H!  ##455 #.f"55 #.>#   +A    && (.. %0$66 ((9::  ++BCC %%677  ,, DEE "">?? %V,, &&788 *F  *s  *:  ,7Q,  (.. !,H!  (.. 'C  ##788 )00 (8 r9   r  c                       e Zd ZU ded<   y)r  1Subscription.ModifyParamsTrialSettingsEndBehaviorr   Nr4  r8   r9   r:   ModifyParamsTrialSettingsz&Subscription.ModifyParamsTrialSettings  r6  r9   r  c                       e Zd ZU ed   ed<   y)r  r   r   Nry   r8   r9   r:   $ModifyParamsTrialSettingsEndBehaviorz1Subscription.ModifyParamsTrialSettingsEndBehavior  r   r9   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)%Subscription.ModifyParamsTransferDatar   r   r   Nr0  r8   r9   r:   ModifyParamsTransferDatar    r;  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)3Subscription.ModifyParamsPendingInvoiceItemIntervalr   r   r@   r   Nr>  r8   r9   r:   &ModifyParamsPendingInvoiceItemIntervalr    r@  r9   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  <Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsr   rC  r   rD  r   Nr  r8   r9   r:   ModifyParamsPaymentSettingsz(Subscription.ModifyParamsPaymentSettings  rF  r9   r  c                   x    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<   y)r  zQLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zRLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   zLLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr   zWLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zOLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir   zULiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr  r8   r9   r:   /ModifyParamsPaymentSettingsPaymentMethodOptionsz<Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions  rI  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)ISubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount]Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   rM  rn   Nr  r8   r9   r:   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr    rO  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  rQ  r   rR  r   Nr  r8   r9   r:   PModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz]Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections   rT  r9   r  c                       e Zd Zy)CSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r8   r9   r:   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir  .  rX  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)KSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceWSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   rR   r   Nr  r8   r9   r:   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  3  r]  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  eSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   rR   r   Nr  r8   r9   r:   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzWSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferA  ra  r9   r  c                       e Zd ZU eed<   y)r  r   Nrc  r8   r9   r:   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferO  re  r9   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)@Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsri   ri  r   rj  r   Nr  r8   r9   r:   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardr  W  rl  r9   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r@   r   rn  r   rR   r   Nr  r8   r9   r:   AModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsi  rp  r9   r  c                       e Zd ZU ed   ed<   y)FSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactrs  rx   Nr  r8   r9   r:   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  y  ru  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)ESubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsri   rM  rn   Nr  r8   r9   r:   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr    rz  r9   r  c                       e Zd ZU ed   ed<   y)r   r|  rg   Nr  r8   r9   r:   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  r~  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)(Subscription.ModifyParamsPauseCollectionrV   rZ   r@   r[   Nr>  r8   r9   r:   ModifyParamsPauseCollectionr    s%    KLL $E**r9   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<   y)Subscription.ModifyParamsItemz:Literal['']|Subscription.ModifyParamsItemBillingThresholdsr  r6   clear_usagedeletedrR   idr  r  r  r  &Subscription.ModifyParamsItemPriceDatar  r@   r  r  r  Nr  r8   r9   r:   ModifyParamsItemr    s     +L!  %V,, !(( E"" "">?? e$$ u%% $$LMM "%(( ##:;;r9   r  c                   f    e Zd ZU eed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)r  r  r  /Subscription.ModifyParamsItemPriceDataRecurringr  r  r  r@   r  rR   r  Nr  r8   r9   r:   ModifyParamsItemPriceDataz&Subscription.ModifyParamsItemPriceData  r  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r   r   r@   r   Nr>  r8   r9   r:   "ModifyParamsItemPriceDataRecurringz/Subscription.ModifyParamsItemPriceDataRecurring  r@  r9   r  c                       e Zd ZU eed<   y).Subscription.ModifyParamsItemBillingThresholdsr  Nr  r8   r9   r:   !ModifyParamsItemBillingThresholdsr    r  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r  rD   r  rM   Nr  r8   r9   r:   ModifyParamsCancellationDetailsz,Subscription.ModifyParamsCancellationDetails  r  r9   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)*Subscription.ModifyParamsBillingThresholdsr@   r>   r6   r?   Nr  r8   r9   r:   ModifyParamsBillingThresholdsr    r  r9   r  c                       e Zd ZU eed<   y)r  r1   Nr2   r8   r9   r:   ModifyParamsAutomaticTaxz%Subscription.ModifyParamsAutomaticTax  r  r9   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
'Subscription.ModifyParamsAddInvoiceItemrR   r  0Subscription.ModifyParamsAddInvoiceItemPriceDatar  r@   r  r  r  Nr  r8   r9   r:   ModifyParamsAddInvoiceItemr    r  r9   r   c                   Z    e Zd ZU eed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
r  r  r  r  r  r@   r  rR   r  Nr  r8   r9   r:   #ModifyParamsAddInvoiceItemPriceDataz0Subscription.ModifyParamsAddInvoiceItemPriceData+  r  r9   r"  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
Subscription.ResumeParamsr  r   r   r   r(  r)  r@   r  Nr  r8   r9   r:   ResumeParamsr$  C  sN    "-.K"LL  ,, !,H!  (..r9   r%  c                       e Zd ZU ed   ed<   y)Subscription.RetrieveParamsr   r   Nr  r8   r9   r:   RetrieveParamsr'  W  s    ,,r9   r(  c                   N    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 eed<   y)	Subscription.SearchParamsr   r   r@   r  rR   pagequeryNr0  r8   r9   r:   SearchParamsr*  ]  sB    ,, u%% e$$ Jr9   r-  r   applicationr  r  r   r  r  r  canceled_atr   )charge_automaticallysend_invoicer  r  r  r  r  r!   r  r  r$   r  )r   r   CardResourcer&   r  r)   r  r   r"   discountended_atr  r'   r  r#   latest_invoicelivemoder  !next_pending_invoice_item_invoiceobjectr   r!  r  r%  r&  r%   pending_setup_intentpending_updater(   schedule
start_date)activecanceled
incompleteincomplete_expiredpast_duepausedtrialingunpaidr  r*   r  r+  r   r/  trial_startNsubscription_exposed_idapi_keystripe_versionstripe_accountparamsr   returnc                     t        d| j                  ddj                  t        j                  |            ||||            S )  
        Cancels a customer's subscription immediately. The customer will not be charged again for the subscription.

        Note, however, that any pending invoice items that you've created will still be charged for at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.

        By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
        r,   delete+/v1/subscriptions/{subscription_exposed_id}rF  rG  rH  rI  rJ  r   _static_requestformatr   sanitize_idclsrF  rG  rH  rI  rJ  s         r:   _cls_cancelzSubscription._cls_cancel.  s]      =DD,0,<,</- E 
  --   
 	
r9   c                      yrM  Nr8   rF  rG  rH  rI  rJ  s        r:   r   zSubscription.cancelN  s      	r9   idempotency_keyc                      yrZ  r8   selfr\  rJ  s      r:   r   zSubscription.cancel`  s     	r9   rX  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )rM  r,   rN  rO  r  rP  r\  rJ  r   _requestrT  r   rU  getr^  s      r:   r   zSubscription.cancelo  sZ     MM=DD,0,<,<TXXd^,L E  !0  

 
	
r9   r
  c                 `    t        d| j                  d| j                         |||||            S )a  
        Creates a new subscription on an existing customer. Each customer can have up to 500 active or scheduled subscriptions.

        When you create a subscription with collection_method=charge_automatically, the first invoice is finalized as part of the request.
        The payment_behavior parameter determines the exact behavior of the initial payment.

        To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead.
        Schedules provide the flexibility to model more complex billing configurations that change over time.
        r,   post)r   rS  	class_url)rW  rG  r\  rH  rI  rJ  s         r:   createzSubscription.create  s=    $ 
 	
r9   r  c                     t        d| j                  ddj                  t        j                  |            ||||            S )K
        Removes the currently applied discount on a subscription.
        r"   rN  4/v1/subscriptions/{subscription_exposed_id}/discountrP  rQ  rR  rV  s         r:   _cls_delete_discountz!Subscription._cls_delete_discount  s]     FMM,0,<,</- N 
  --   
 	
r9   c                      yrj  Nr8   r[  s        r:   delete_discountzSubscription.delete_discount       	r9   c                      yrn  r8   r^  s      r:   ro  zSubscription.delete_discount       	r9   rl  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )rj  r"   rN  rk  r  rP  ra  rb  r^  s      r:   ro  zSubscription.delete_discount  sZ     MMFMM,0,<,<TXXd^,L N  !0  

 
	
r9   r  c                     | j                  d| j                         ||||      }t        |t              s!t	        dt        |      j                  z        |S )z
        By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.
        rd  rQ  z%Expected list object from API, got %s)rS  rg  
isinstancer
   	TypeErrorr   r3   )rW  rG  rH  rI  rJ  results         r:   listzSubscription.list  sf     $$MMO)) % 
 &*-7<((* 
 r9   r  c                 z    | j                         dt        |      }t        d| j                  d||            S )a	  
        Updates an existing subscription to match the specified parameters.
        When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
        To preview how the proration is calculated, use the [upcoming invoice](https://stripe.com/docs/api/invoices/upcoming) endpoint.

        By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.

        Switching prices does not normally change the billing date or generate an immediate charge unless:


        The billing interval is changed (for example, from monthly to yearly).
        The subscription moves from free to paid, or paid to free.
        A trial starts or ends.


        In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date.

        If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create).

        If you don't want to prorate, set the proration_behavior option to none. With this option, the customer is billed 100 on May 1 and 200 on June 1. Similarly, if you set proration_behavior to none when switching between different billing intervals (for example, from monthly to yearly), we don't generate any credits for the old subscription's unused time. We still reset the billing date and bill immediately for the new subscription.

        Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing](https://stripe.com/docs/rate-limits) instead.
        /r,   rf  )rJ  )rg  r   r   rS  )rW  r  rJ  urls       r:   modifyzSubscription.modify  s=    6 *R.9F;
 	
r9   r$  c                     t        d| j                  ddj                  t        j                  |            ||||            S )  
        Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date.
        r,   rf  '/v1/subscriptions/{subscription}/resumer-   rQ  rR  )rW  r-   rG  rH  rI  rJ  s         r:   _cls_resumezSubscription._cls_resume.  sZ     9@@!%!1!1,!? A   --   	
 	
r9   c                      yr~  Nr8   )r-   rG  rH  rI  rJ  s        r:   resumezSubscription.resumeH  rp  r9   c                      yr  r8   r^  s      r:   r  zSubscription.resumeV  rr  r9   r  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )r~  r,   rf  r  r  r  ra  rb  r^  s      r:   r  zSubscription.resumea  sZ     MM9@@!%!1!1$((4.!A A  !0  

 
	
r9   r'  c                 8     | |fi |}|j                          |S )z?
        Retrieves the subscription with the given ID.
        )refresh)rW  r  rJ  instances       r:   retrievezSubscription.retrievev  s$     r$V$r9   kwargsr*  c                 *     | j                   |ddi|S )a  
        Search for subscriptions you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
        Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
        conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
        to an hour behind during outages. Search functionality is not available to merchants in India.
        
search_urlz/v1/subscriptions/search)_searchrW  argsr  s      r:   searchzSubscription.search  s*     s{{48
1
<B
 	
r9   c                 B     | j                   |i |j                         S N)r  auto_paging_iterr  s      r:   search_auto_paging_iterz$Subscription.search_auto_paging_iter  s#     szz4*6*;;==r9   )	r  r  r   r  r%  r&  r:  r+  r/  )NNNr  )NNNN)tr3   r4   r5   __doc__r.   r   r   r7   r   r;   rA   rS   r\   r   r   r   r   r   r   r   r  r   r  r1  r5  r8  r:  r?  rE  rH  rN  rS  rW  r\  r`  rd  rk  ro  rt  ry  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@   r6   rR   r   r   r
   r   classmethodr   rX  r   staticmethodr   r   rh  rl  ro  rx  r|  r  r  r  r   r  r   r  rp   r8   r9   r:   r,   r,   5   s    6DK'.12C| L l :, AN, ANF\  ,| ; ; 	> 	(
	i 
	Z	> Z	x		 		9 		y 		Y 		) 	($	i $	L		 				
							) 	$		 				 			y 	@		 	8	 			 		I 		y 		 	(	) 	0	> 	7	 7	r	9 	$	 	$		 	$	Y 	X	> X	t		 		9 		y 		Y 		) 	($	i $	L		 				
							) 	$		 				 			) 	*	y *	X		 	8	 			 	
	i 
		I 		y 		 	(	) 	0	> 	(	^ 		> 	$ /-899 &e_,   !!233 }  # ##677 EFF L M   j)) SM! %__%EFF DE	
 
  Y00 # z"" sm 	G ()) _Y788 N 38n (0}4 N## ?9566 // // $,,F#GG #?=#ABB ]++ '=>?? O 		 	
 566 L)) } ]++ #  "&(,(,
!$
 #
 !	

 !
 45
 

 
>  "&(,(,	!$# ! !	
 45 
     *.!# 45 
	  -( *.
!#
 45
 
	
 )
0  "&)-(,(,
#
 "#
 !	

 !
 45
 

 
<  "&(,(,
!$
 #
 !	

 !
 <=
 

 
6  "&(,(,	
!$
#
 !
 !	

 <=
 

  
  *.!# <= 
	  01 *.
!#
 <=
 
	
 2
(  "&(,(,	# ! !	
 23 
N	# 6 

 &'B C
	
 
@  "&(,(,

 #
 !	

 !
 45
 

 
2  "&(,(,	

#
 !
 !	

 45
 

  
  *.!# 45 
	  -( *.
!#
 45
 
	
 )
(  &'D E	  
$%@A
	N	+
 
 >$%@A>	.	!> > &/ 3++)C'%'
r9   r,   N)Cstriper   stripe.api_resources.abstractr   r   r   r   r   %stripe.api_resources.expandable_fieldr	    stripe.api_resources.list_objectr
   )stripe.api_resources.search_result_objectr   stripe.request_optionsr   stripe.stripe_objectr   stripe.utilr   typingr   r   r   r   r   r   r   r   typing_extensionsr   r   r   r   r   urllib.parser   stripe.api_resources.accountr    stripe.api_resources.applicationr   !stripe.api_resources.bank_accountr   stripe.api_resources.cardr    r2  stripe.api_resources.customerr!   stripe.api_resources.discountr"   stripe.api_resources.invoicer#   #stripe.api_resources.payment_methodr$   !stripe.api_resources.setup_intentr%   stripe.api_resources.sourcer&   &stripe.api_resources.subscription_itemr'   *stripe.api_resources.subscription_scheduler(   stripe.api_resources.tax_rater)   ,stripe.api_resources.test_helpers.test_clockr*   r,   r8   r9   r:   <module>r     s      B 7 H 1 - ,	 	 	  $4<=>664A=2GO5Fj!.)('.).)j!r9   