
    `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 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mZmZm Z  d dl!m"Z"m#Z#m$Z$m%Z%m&Z& e&rZd 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 d dlBmCZC d dlDmEZE  G d ded   ed   e	d   ed   ed         ZFy)     )CreateableAPIResource)DeletableAPIResource)ExpandableField)
ListObject)ListableAPIResource)RequestOptions)SearchResultObject)SearchableAPIResource)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)	AsyncIteratorClassVarDictIteratorListOptionalUnioncastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Account)Application)BankAccount)Card)Customer)Discount)Invoice)PaymentMethod)SetupIntent)Source)SubscriptionItem)SubscriptionSchedule)TaxId)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 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      ZC G dv dwe      ZD G dx dye      ZE G dz d{e      ZF G d| d}e      ZG G d~ de      ZH G d de      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      ZU G d de      ZV G d de      ZW G d de      ZX G d de      ZY G d de      ZZ G d de      Z[ G d de      Z\ G d de      Z] G d de      Z^ G d de      Z_ G d de      Z` G d de      Za G d de      Zbecedd      ed<   	 ecee   ed<   	 e	ed<   efed<   	 ece
   ed<   	 ecef   ed<   	 eged<   	 ecef   ed<   	 ece   ed<   	 ed   ed<   	 efed<   	 ehed<   	 edd   ed<   	 ecef   ed<   	 ecedd      ed<   	 ecedeid         ed<   	 ecejd      ed<   	 eceh   ed<   	 ejedd      ed<   	 ecef   ed<   	 ehed<   	 eed<   ekd   ed<   	 ecedd      ed<   	 eged<   	 elehehf   ed<   	 ecef   ed<   	 ed   ed<   	 ecedd      ed<   	 ece   ed<   	 ece   ed<   	 ece   ed<   	 ecedd      ed<   	 ece   ed<   	 ecedd      ed<   	 efed<   	 ed   ed<   	 ecedd      ed<   	 ece   ed<   	 ecef   ed<   	 ece   ed<   	 ecef   ed<   	 emdehdend   dd fd       Zoepeqdehdend   dd fd              Zrepdend   dd fd       Zr esd      dend   dd fd       Zremdehdend   dd fd       Ztepeqdehdend   dd fd              Zuepdend   dd fd       Zu esd      dend   dd fd       Zuemdend   dd fd       Zvemdend   dd fd       Zwemdehdend   ddfd       Zxepeqdehdend   ddfd              Zyepdend   ddfd        Zy esd      dend   ddfd       Zyemdehdend   ddfd       Zzepeqdehdend   ddfd              Z{epdend   ddfd       Z{ esd      dend   ddfd       Z{emdend   dekd    fd	       Z|emdend   dekd    fd
       Z}emdehdend   dd fd       Z~emdehdend   dd fd       Zemdehdend   dd fd       Zepeqdehdend   dd fd              Zepdend   dd fd       Z esd      dend   dd fd       Zemdehdend   dd fd       Zepeqdehdend   dd fd              Zepdend   dd fd       Z esd      dend   dd fd       Zemdehdend   dd fd       Zemdehdend   dd fd       Zemdend   ded    fd       Zemdend   ded    fd       Zemdend   ded    fd        Zemdend   ded    fd!       Ze	e
eeeeeeeed"
Zy#($  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                   b    e Zd ZU  G d de      Zeed      ed<   	 eed<   	 ee   ed<   	 deiZ	y)Subscription.AutomaticTaxc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)#Subscription.AutomaticTax.Liabilityr   accountr4   selftypeN__name__
__module____qualname__r   r   __annotations__r        Q/var/www/html/Manimaran/venv/lib/python3.12/site-packages/stripe/_subscription.py	Liabilityr3   C   *    oi899 +,,r>   r@   requires_location_inputsdisabled_reasonenabled	liabilityN)
r9   r:   r;   r   r@   r   r   r<   bool_inner_class_typesr=   r>   r?   AutomaticTaxr1   B   sQ    	 	 "'*D"EFF	 	 I&&	 *95r>   rH   c                   `    e Zd ZU eed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)%Subscription.BillingCycleAnchorConfigday_of_monthhourminutemonthsecondN)r9   r:   r;   intr<   r   r=   r>   r?   BillingCycleAnchorConfigrJ   [   sQ    	 sm	 	 }	 	r>   rQ   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)r9   r:   r;   r   strr<   r   r=   r>   r?   CancellationDetailsrS   q   sQ    #	 	
 	
	 N
 	

	r>   rc   c                   T    e Zd ZU  G d de      Zeeed         ed<   	 eed<   deiZ	y)Subscription.InvoiceSettingsc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)#Subscription.InvoiceSettings.Issuerr   r4   r5   r7   Nr8   r=   r>   r?   Issuerrg      rA   r>   rh   r)   account_tax_idsissuerN)
r9   r:   r;   r   rh   r   r   r   r<   rG   r=   r>   r?   InvoiceSettingsre      s<    	\ 	 "$w'?"@AA	 &/r>   rk   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)r9   r:   r;   r   r<   r   rP   r=   r>   r?   PauseCollectionrm      s$    GHH	 SM!	r>   rt   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	 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d<   	 e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)r9   r:   r;   r   r   r<   r=   r>   r?   MandateOptionsr|      s    &.w7M/N&OOr>   r   mandate_options	automaticinstantmicrodepositsverification_methodN	r9   r:   r;   r   r   r   r<   r   rG   r=   r>   r?   	AcssDebitrz      sC    \  "*.!99%-CD&  '8%H"r>   r   c                       e Zd ZU ed   ed<   y)<Subscription.PaymentSettings.PaymentMethodOptions.Bancontactdeenfrnlpreferred_languageNr9   r:   r;   r   r<   r=   r>   r?   
Bancontactr      s    $+,B$CCr>   r   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)r9   r:   r;   r   rP   r<   r   rb   r=   r>   r?   r   r      s:    $SM) "*'2D*E!FF "*#.r>   r   r   amexcartes_bancairesdinersdiscover	eftpos_augirocardinteracjcblink
mastercardunionpayunknownvisanetworkanyr   	challengerequest_three_d_secureNr   r=   r>   r?   r    r      sd    \  "*.!99!  " )1;<)  '8%H"r>   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countryNr   r=   r>   r?   EuBankTransferr      s    !()K!LLr>   r   eu_bank_transferr7   N)	r9   r:   r;   r   r   r   r<   rb   rG   r=   r>   r?   BankTransferr      s7      '/~&>>"3-' +=n)M&r>   r   bank_transferfunding_typeN)	r9   r:   r;   r   r   r   r<   r   rG   r=   r>   r?   CustomerBalancer      s?    N< N  (55&w'?@@ '6|%D"r>   r   c                       e Zd Zy)9Subscription.PaymentSettings.PaymentMethodOptions.KonbiniNr9   r:   r;   r=   r>   r?   Konbinir         r>   r   c                       e Zd Zy);Subscription.PaymentSettings.PaymentMethodOptions.SepaDebitNr   r=   r>   r?   	SepaDebitr     r   r>   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                   x    e Zd ZU  G d de      Zee   ed<   eeed         ed<   	 eeed         ed<   	 deiZ	y)	TSubscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnectionsc                   *    e Zd ZU eeed         ed<   y)\Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filterscheckingsavingsaccount_subcategoriesN)r9   r:   r;   r   r   r   r<   r=   r>   r?   Filtersr     s"    /7 )>!?@0 r>   r   filtersbalances	ownershippayment_methodtransactionspermissionsr   r   r   prefetchN)
r9   r:   r;   r   r   r   r<   r   r   rG   r=   r>   r?   FinancialConnectionsr     sq    ,  &g..!)#!0	" 	 'W%LMN  +4W)=&r>   r   financial_connectionsr   r   N)	r9   r:   r;   r   r   r   r<   r   rG   r=   r>   r?   UsBankAccountr   
  sG    >< >> (00D'EE%-CD&  ,-A&"r>   r   
acss_debit
bancontactcardcustomer_balancekonbini
sepa_debitus_bank_account)r   r   r   r   r   r   r   N)r9   r:   r;   r   r   r   r    r   r   r   r   r   r<   rG   r=   r>   r?   PaymentMethodOptionsrx      s    IL I \ *I| *IXE, E,, L ) )V !++ !,, 4.  '77 g&& !++ &m44 (($3"'#0"r>   r   payment_method_options)%ach_credit_transfer	ach_debitr   
amazon_payau_becs_debit
bacs_debitr   boletor   cashappr   epsfpxgiropaygrabpayidealjp_credit_transfer	kakao_payklarnar   kr_cardr   
multibanco	naver_paynz_bank_accountp24paycopaynowpaypal	promptpayrevolut_paysepa_credit_transferr   sofortswishr   
wechat_paypayment_method_typesoffon_subscriptionsave_default_payment_methodN)
r9   r:   r;   r   r   r   r<   r   r   rG   r=   r>   r?   PaymentSettingsrv      sy    n	< n	` !))= >>	 '$"&(*
 *	
V	 &.,-&
 	
	 78LMr>   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)'Subscription.PendingInvoiceItemIntervaldayrN   weekyearintervalinterval_countN)r9   r:   r;   r   r<   rP   r=   r>   r?   PendingInvoiceItemIntervalr    s     899	 	r>   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)r9   r:   r;   r   rP   r<   r   rF   r=   r>   r?   PendingUpdater    sW    &sm+	 	 %T*<%=>>	 C= 	 "$'	r>   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)Subscription.TransferDataamount_percentr   destinationN)r9   r:   r;   r   floatr<   r   r=   r>   r?   TransferDatar!    s#     '	 %Y//	r>   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_methodNr   r=   r>   r?   EndBehaviorr)    s    $+3% r>   r/  end_behaviorN)r9   r:   r;   r   r/  r<   rG   r=   r>   r?   TrialSettingsr'    s(    	, 	 "!	 -k:r>   r1  c                   Z    e Zd ZU ed   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)Subscription.CancelParams,Subscription.CancelParamsCancellationDetailscancellation_detailsexpandinvoice_nowprorateN)r9   r:   r;   r   r<   r   rb   rF   r=   r>   r?   CancelParamsr3    sQ    ):
 	
	 DI&&	 !&&	 T""	r>   r9  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r4  Literal['']|strrT   Literal['']|Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']r]   Nr9   r:   r;   r   r<   r=   r>   r?   CancelParamsCancellationDetailsz,Subscription.CancelParamsCancellationDetails  -    .//	  `
 	
	r>   r>  c                   j   e Zd ZU eed      ed<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ed	   ed
<   	 ee   ed<   	 ee   ed<   	 eed      ed<   	 ee	   ed<   	 e	ed<   	 ee   ed<   	 ee	   ed<   	 ee	   ed<   	 ed   ed<   	 ee	   ed<   	 ed   ed<   	 eee	      ed<   	 ed   ed<   	 eed      ed<   	 ed   ed<   	 ee   ed <   	 ed!   ed"<   	 e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e   ed/<   	 ee   ed0<   	 ed1   ed2<   y3)4Subscription.CreateParams'Subscription.CreateParamsAddInvoiceItemadd_invoice_itemsLiteral['']|floatapplication_fee_percent%Subscription.CreateParamsAutomaticTaxautomatic_taxbackdate_start_dater  1Subscription.CreateParamsBillingCycleAnchorConfigbilling_cycle_anchor_config	cancel_atcancel_at_period_endcharge_automaticallysend_invoicecollection_methodcurrencycustomerdays_until_duedefault_payment_methoddefault_sourceLiteral['']|List[str]default_tax_ratesr   z3Literal['']|List[Subscription.CreateParamsDiscount]	discountsr6  (Subscription.CreateParamsInvoiceSettingsinvoice_settingsSubscription.CreateParamsItemitemsLiteral['']|Dict[str, str]metadataoff_sessionr;  on_behalf_ofallow_incompletedefault_incompleteerror_if_incompletepending_if_incompletepayment_behavior(Subscription.CreateParamsPaymentSettingspayment_settingsz?Literal['']|Subscription.CreateParamsPendingInvoiceItemIntervalpending_invoice_item_intervalalways_invoicecreate_prorationsnoneproration_behavior%Subscription.CreateParamsTransferDatatransfer_dataLiteral['now']|intr  r  trial_period_days&Subscription.CreateParamsTrialSettingstrial_settingsN)
r9   r:   r;   r   r   r<   rP   rF   r   rb   r=   r>   r?   CreateParamsrA    s   &:;
 	
	 "--@!AA	 ##JKK	 )--	 *#..	 &1?&
 	
	 s##	 *$//	 ':;
 	
	 c""	 	 $C((	 !,C 00	 $C((	 ''>??	 !%%	 A
 	
	 DI&&	 &6
 	
	 4 ?@AA	 :;;	 !&&	 ""344	 &)
 	
	 &6
 	
	 (3M(
 	
	 (AB
 	
	 ##JKK	 344	 %T**	 's++	 $$LMM	r>   ru  c                   l    e Zd ZU eed      ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y	)
rB  /Subscription.CreateParamsAddInvoiceItemDiscountrX  price0Subscription.CreateParamsAddInvoiceItemPriceData
price_dataquantityrV  	tax_ratesNr9   r:   r;   r   r   r<   rb   rP   r=   r>   r?   CreateParamsAddInvoiceItemz'Subscription.CreateParamsAddInvoiceItem  k    BC
 	
	 3	  >
 	
	 c""	 677	r>   r~  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)rw  coupondiscountpromotion_codeNr9   r:   r;   r   rb   r<   r=   r>   r?   "CreateParamsAddInvoiceItemDiscountz/Subscription.CreateParamsAddInvoiceItemDiscount  6    C  	 c""	 $C((	r>   r  c                   `    e Zd ZU eed<   	 eed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y)ry  rQ  product	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr9   r:   r;   rb   r<   r   r   rP   r=   r>   r?   #CreateParamsAddInvoiceItemPriceDataz0Subscription.CreateParamsAddInvoiceItemPriceData  Y    	 	 ";<
 	
	 !%%	 )--	r>   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)rF  rD   .Subscription.CreateParamsAutomaticTaxLiabilityrE   Nr9   r:   r;   rF   r<   r   r=   r>   r?   CreateParamsAutomaticTaxz%Subscription.CreateParamsAutomaticTax  #    	 <
 	
	r>   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r4   r5   r7   Nr9   r:   r;   r   rb   r<   r   r=   r>   r?   !CreateParamsAutomaticTaxLiabilityz.Subscription.CreateParamsAutomaticTaxLiability  %    S!!	 '((	r>   r  c                   `    e Zd ZU eed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)rI  rK   rL   rM   rN   rO   N)r9   r:   r;   rP   r<   r   r=   r>   r?   $CreateParamsBillingCycleAnchorConfigz1Subscription.CreateParamsBillingCycleAnchorConfig  sU    	 #	 C  	 3	 C  	r>   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)!Subscription.CreateParamsDiscountr  r  r  Nr  r=   r>   r?   CreateParamsDiscountr    r  r>   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rY  rV  ri   .Subscription.CreateParamsInvoiceSettingsIssuerrj   Nr=  r=   r>   r?   CreateParamsInvoiceSettingsz(Subscription.CreateParamsInvoiceSettings  &    $%<==	 LMM	r>   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r4   r5   r7   Nr  r=   r>   r?   !CreateParamsInvoiceSettingsIssuerz.Subscription.CreateParamsInvoiceSettingsIssuer  r  r>   r  c                       e Zd ZU ed   ed<   	 eeeef      ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed	   ed
<   y)r[  z7Literal['']|List[Subscription.CreateParamsItemDiscount]rX  r^  planrx  &Subscription.CreateParamsItemPriceDatarz  r{  rV  r|  N)r9   r:   r;   r   r<   r   rb   rP   r=   r>   r?   CreateParamsItemzSubscription.CreateParamsItem  s    E
 	
	 d38n--	 #	 3	   HII	 c""	 677	r>   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)%Subscription.CreateParamsItemDiscountr  r  r  Nr  r=   r>   r?   CreateParamsItemDiscountr  ?  r  r>   r  c                   l    e Zd ZU eed<   	 eed<   	 ded<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y	)
r  rQ  r  /Subscription.CreateParamsItemPriceDataRecurring	recurringr  r  r  r  Nr  r=   r>   r?   CreateParamsItemPriceDataz&Subscription.CreateParamsItemPriceDataM  g    	 	 ED	 ";<
 	
	 !%%	 )--	r>   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  r  r  r  Nr9   r:   r;   r   r<   r   rP   r=   r>   r?   "CreateParamsItemPriceDataRecurringz/Subscription.CreateParamsItemPriceDataRecurringi  %    899	 $C((	r>   r  c                   H    e Zd ZU ed   ed<   	 ed   ed<   	 eed      ed<   y)rg  <Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsr     Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]r	  r
  r  Nr9   r:   r;   r   r<   r   r=   r>   r?   CreateParamsPaymentSettingsz(Subscription.CreateParamsPaymentSettingss  N     +J!
 	
	 * F
 	
	 &1,-&
 	
	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  zQLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zRLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   zLLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardr   zWLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zOLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir   zQLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr   zULiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr=  r=   r>   r?   /CreateParamsPaymentSettingsPaymentMethodOptionsz<Subscription.CreateParamsPaymentSettingsPaymentMethodOptions      _
 	
	  `
 	
	 Z
 	
	 &e
 	
	 ]
 	
	  _
 	
	 %c
 	
	r>   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)ESubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitSSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr   r   r   Nr  r=   r>   r?   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr    4    $a
 	
	 );<
 	
	r>   r  c                   $    e Zd ZU eed      ed<   y)r  r}   r   Nr9   r:   r;   r   r   r<   r=   r>   r?   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions       &g.D&EFF	r>   r  c                   $    e Zd ZU eed      ed<   y)FSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   r   Nr  r=   r>   r?   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr        '0F(GHH	r>   r  c                   N    e Zd ZU ed   ed<   	 eed      ed<   	 eed      ed<   y)@Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsr   r   r   r   r   Nr  r=   r>   r?   3CreateParamsPaymentSettingsPaymentMethodOptionsCardr    U    $\
 	
	 
 	
"	 !,34!
 	
	r>   r  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ee   ed<   y)r  r   r   r   r   Nr9   r:   r;   r   rP   r<   r   rb   r=   r>   r?   ACreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions  >     C  	 !);!<==	 !%%	r>   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)KSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceWSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   r   Nr9   r:   r;   r   r<   rb   r=   r>   r?   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer    +     #e
 	
	 "#&&	r>   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  eSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   r7   Nr  r=   r>   r?   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzWSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  +     &s
 	
	 #	r>   r  c                       e Zd ZU eed<   y)r  r   Nr9   r:   r;   rb   r<   r=   r>   r?   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer       	r>   r  c                       e Zd Zy)CSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r=   r>   r?   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  %      r>   r  c                       e Zd Zy)ESubscription.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr   r=   r>   r?   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  (  r  r>   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)ISubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount]Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   r   r   Nr  r=   r>   r?   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  +  6      +k 
 	
	 );<
 	
	r>   r  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)r  dSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr   r   r   r   r   Nr9   r:   r;   r   r<   r   r   r=   r>   r?   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz]Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections;  b     r
 	
	 !M
 	
	 @AB
 	
	r>   r  c                   *    e Zd ZU eeed         ed<   y)r  r   r   Nr9   r:   r;   r   r   r   r<   r=   r>   r?   WCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszdSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersU  $      +./0 
 	
	r>   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)3Subscription.CreateParamsPendingInvoiceItemIntervalr  r  r  Nr  r=   r>   r?   &CreateParamsPendingInvoiceItemIntervalr  _  r  r>   r  c                   *    e Zd ZU ee   ed<   	 eed<   y)ro  r"  r#  Nr9   r:   r;   r   r$  r<   rb   r=   r>   r?   CreateParamsTransferDataz%Subscription.CreateParamsTransferDatai      #E**	 	r>   r  c                       e Zd ZU ded<   y)rs  1Subscription.CreateParamsTrialSettingsEndBehaviorr0  Nr9   r:   r;   r<   r=   r>   r?   CreateParamsTrialSettingsz&Subscription.CreateParamsTrialSettingss      II	r>   r  c                       e Zd ZU ed   ed<   y)r  r*  r.  Nr   r=   r>   r?   $CreateParamsTrialSettingsEndBehaviorz1Subscription.CreateParamsTrialSettingsEndBehaviory       '(K LL	r>   r  c                       e Zd Zy)!Subscription.DeleteDiscountParamsNr   r=   r>   r?   DeleteDiscountParamsr	    r  r>   r
  c                      e Zd ZU ed   ed<   	 eed      ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ee   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eed      ed<   	 ee   ed<   y)Subscription.ListParams#Subscription.ListParamsAutomaticTaxrG  rM  rP  z"Subscription.ListParamsCreated|intcreatedz+Subscription.ListParamsCurrentPeriodEnd|intcurrent_period_endz-Subscription.ListParamsCurrentPeriodStart|intcurrent_period_startrR  ending_beforer6  limitr  rx  starting_after)
activeallcanceledended
incompleteincomplete_expiredpast_duepausedtrialingunpaidstatus
test_clockN)	r9   r:   r;   r   r<   r   rb   r   rP   r=   r>   r?   
ListParamsr    s&   "#HII	 ':;
 	
	 ABB	 (9
 	
	 *;
 	
	 c""	 #3''	 DI&&	 3	 #	 3	 $C((	 	
 	
	  $$	r>   r   c                       e Zd ZU eed<   y)r  rD   N)r9   r:   r;   rF   r<   r=   r>   r?   ListParamsAutomaticTaxz#Subscription.ListParamsAutomaticTax  s    	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)Subscription.ListParamsCreatedgtgteltlteNr9   r:   r;   r   rP   r<   r=   r>   r?   ListParamsCreatedr$    H    	 	 	 	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)'Subscription.ListParamsCurrentPeriodEndr%  r&  r'  r(  Nr)  r=   r>   r?   ListParamsCurrentPeriodEndr-    r+  r>   r.  c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y))Subscription.ListParamsCurrentPeriodStartr%  r&  r'  r(  Nr)  r=   r>   r?   ListParamsCurrentPeriodStartr0    r+  r>   r1  c                   R   e Zd ZU eed      ed<   	 ed   ed<   	 ed   ed<   	 eed      ed<   	 ed	   ed
<   	 ee   ed<   	 ed   ed<   	 eed      ed<   	 ee   ed<   	 ee	   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 eee	      ed<   	 ed   ed<   	 eed      ed<   	 ed   ed<   	 ee   ed <   	 ed   ed!<   	 ed"   ed#<   	 eed$      ed%<   	 ed&   ed'<   	 ed(   ed)<   	 eed*      ed+<   	 ee   ed,<   	 ed-   ed.<   	 ed/   ed0<   	 ee   ed1<   	 ed2   ed3<   y4)5Subscription.ModifyParams'Subscription.ModifyParamsAddInvoiceItemrC  rD  rE  %Subscription.ModifyParamsAutomaticTaxrG  now	unchangedr  zLiteral['']|intrK  rL  ,Subscription.ModifyParamsCancellationDetailsr5  rM  rP  rS  rT  r;  rU  rV  rW  r   z3Literal['']|List[Subscription.ModifyParamsDiscount]rX  r6  (Subscription.ModifyParamsInvoiceSettingsrZ  Subscription.ModifyParamsItemr\  r]  r^  r_  r`  z4Literal['']|Subscription.ModifyParamsPauseCollectionpause_collectionra  rf  (Subscription.ModifyParamsPaymentSettingsrh  z?Literal['']|Subscription.ModifyParamsPendingInvoiceItemIntervalri  rj  rn  proration_datez1Literal['']|Subscription.ModifyParamsTransferDatarp  rq  r  r  &Subscription.ModifyParamsTrialSettingsrt  N)
r9   r:   r;   r   r   r<   r   rF   rP   rb   r=   r>   r?   ModifyParamsr3    s   &:;
 	
	 "--@!AA	 ##JKK	 *'2D*EFF	 011	 *$//	 *:
 	
	 ':;
 	
	 $C((	 !,C 00	 $$566	 ''>??	 !!233	 A
 	
	 DI&&	 &6
 	
	 4 ?@AA	 :;;	 !&&	 ""344	 &B
 	
	 &)
 	
	 &6
 	
	 (3M(
 	
	 (AB
 	
	 $C((	 #?
 	
	 344	 %T**	 $$LMM	r>   r@  c                   l    e Zd ZU eed      ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y	)
r4  /Subscription.ModifyParamsAddInvoiceItemDiscountrX  rx  0Subscription.ModifyParamsAddInvoiceItemPriceDatarz  r{  rV  r|  Nr}  r=   r>   r?   ModifyParamsAddInvoiceItemz'Subscription.ModifyParamsAddInvoiceItem  r  r>   rD  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)rB  r  r  r  Nr  r=   r>   r?   "ModifyParamsAddInvoiceItemDiscountz/Subscription.ModifyParamsAddInvoiceItemDiscount  r  r>   rF  c                   `    e Zd ZU eed<   	 eed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y)rC  rQ  r  r  r  r  r  Nr  r=   r>   r?   #ModifyParamsAddInvoiceItemPriceDataz0Subscription.ModifyParamsAddInvoiceItemPriceData  r  r>   rH  c                   *    e Zd ZU eed<   	 ed   ed<   y)r5  rD   .Subscription.ModifyParamsAutomaticTaxLiabilityrE   Nr  r=   r>   r?   ModifyParamsAutomaticTaxz%Subscription.ModifyParamsAutomaticTax  r  r>   rK  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rJ  r4   r5   r7   Nr  r=   r>   r?   !ModifyParamsAutomaticTaxLiabilityz.Subscription.ModifyParamsAutomaticTaxLiability  r  r>   rM  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r9  r;  rT   r<  r]   Nr=  r=   r>   r?   ModifyParamsCancellationDetailsz,Subscription.ModifyParamsCancellationDetails  r?  r>   rO  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)!Subscription.ModifyParamsDiscountr  r  r  Nr  r=   r>   r?   ModifyParamsDiscountrQ    r  r>   rR  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r:  rV  ri   .Subscription.ModifyParamsInvoiceSettingsIssuerrj   Nr=  r=   r>   r?   ModifyParamsInvoiceSettingsz(Subscription.ModifyParamsInvoiceSettings  r  r>   rU  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rT  r4   r5   r7   Nr  r=   r>   r?   !ModifyParamsInvoiceSettingsIssuerz.Subscription.ModifyParamsInvoiceSettingsIssuer   r  r>   rW  c                       e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   	 ed
   ed<   	 ee   ed<   	 ed   ed<   y)r;  clear_usagedeletedz7Literal['']|List[Subscription.ModifyParamsItemDiscount]rX  idr]  r^  r  rx  &Subscription.ModifyParamsItemPriceDatarz  r{  rV  r|  N)r9   r:   r;   r   rF   r<   rb   rP   r=   r>   r?   ModifyParamsItemzSubscription.ModifyParamsItem*  s     &&	 T""	 E
 	
	 	 :;;	 #	 3	   HII	 c""	 677	r>   r]  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)%Subscription.ModifyParamsItemDiscountr  r  r  Nr  r=   r>   r?   ModifyParamsItemDiscountr_  V  r  r>   r`  c                   l    e Zd ZU eed<   	 eed<   	 ded<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y	)
r\  rQ  r  /Subscription.ModifyParamsItemPriceDataRecurringr  r  r  r  r  Nr  r=   r>   r?   ModifyParamsItemPriceDataz&Subscription.ModifyParamsItemPriceDatad  r  r>   rc  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rb  r  r  r  Nr  r=   r>   r?   "ModifyParamsItemPriceDataRecurringz/Subscription.ModifyParamsItemPriceDataRecurring  r  r>   re  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)(Subscription.ModifyParamsPauseCollectionrn   rr   rs   Nr  r=   r>   r?   ModifyParamsPauseCollectionrg    s%    GHH	  $$	r>   rh  c                   H    e Zd ZU ed   ed<   	 ed   ed<   	 eed      ed<   y)r=  <Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsr   r  r	  r
  r  Nr  r=   r>   r?   ModifyParamsPaymentSettingsz(Subscription.ModifyParamsPaymentSettings  r  r>   rk  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)rj  zQLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zRLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   zLLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr   zWLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zOLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir   zQLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr   zULiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr=  r=   r>   r?   /ModifyParamsPaymentSettingsPaymentMethodOptionsz<Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions  r  r>   rm  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)ESubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr   r   r   Nr  r=   r>   r?   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitro    r  r>   rq  c                   $    e Zd ZU eed      ed<   y)rp  r}   r   Nr  r=   r>   r?   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  r  r>   rs  c                   $    e Zd ZU eed      ed<   y)FSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   r   Nr  r=   r>   r?   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactru    r  r>   rv  c                   N    e Zd ZU ed   ed<   	 eed      ed<   	 eed      ed<   y)@Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsr   r   r   r   r   Nr  r=   r>   r?   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardrx    r  r>   rz  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ee   ed<   y)ry  r   r   r   r   Nr  r=   r>   r?   AModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions  r  r>   r|  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)KSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceWSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   r   Nr  r=   r>   r?   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer~  "  r  r>   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  eSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   r7   Nr  r=   r>   r?   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzWSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer0  r  r>   r  c                       e Zd ZU eed<   y)r  r   Nr  r=   r>   r?   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer>  r  r>   r  c                       e Zd Zy)CSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r=   r>   r?   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir  F  r  r>   r  c                       e Zd Zy)ESubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr   r=   r>   r?   8ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  I  r  r>   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)ISubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount]Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   r   r   Nr  r=   r>   r?   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  L  r  r>   r  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)r  dSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr   r   r   r   r   Nr  r=   r>   r?   PModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz]Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections\  r  r>   r  c                   *    e Zd ZU eeed         ed<   y)r  r   r   Nr  r=   r>   r?   WModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszdSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersv  r  r>   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)3Subscription.ModifyParamsPendingInvoiceItemIntervalr  r  r  Nr  r=   r>   r?   &ModifyParamsPendingInvoiceItemIntervalr    r  r>   r  c                   *    e Zd ZU ee   ed<   	 eed<   y)%Subscription.ModifyParamsTransferDatar"  r#  Nr  r=   r>   r?   ModifyParamsTransferDatar    r  r>   r  c                       e Zd ZU ded<   y)r?  1Subscription.ModifyParamsTrialSettingsEndBehaviorr0  Nr  r=   r>   r?   ModifyParamsTrialSettingsz&Subscription.ModifyParamsTrialSettings  r  r>   r  c                       e Zd ZU ed   ed<   y)r  r*  r.  Nr   r=   r>   r?   $ModifyParamsTrialSettingsEndBehaviorz1Subscription.ModifyParamsTrialSettingsEndBehavior  r  r>   r  c                   f    e Zd ZU eed      ed<   	 eee      ed<   	 eed      ed<   	 ee   ed<   y)Subscription.ResumeParamsr6  r  r6  rj  rn  r>  N)	r9   r:   r;   r   r   r<   r   rb   rP   r=   r>   r?   ResumeParamsr    s]    )'2D*EFF	 DI&&	 (AB
 	
	 $C((	r>   r  c                   $    e Zd ZU eee      ed<   y)Subscription.RetrieveParamsr6  N)r9   r:   r;   r   r   rb   r<   r=   r>   r?   RetrieveParamsr    s    DI&&	r>   r  c                   T    e Zd ZU eee      ed<   	 ee   ed<   	 ee   ed<   	 eed<   y)Subscription.SearchParamsr6  r  pagequeryN)r9   r:   r;   r   r   rb   r<   rP   r=   r>   r?   SearchParamsr    sF    DI&&	 3	 #	 
	r>   r  r   applicationrE  rG  r  rJ  rK  rL  canceled_atr5  rM  rP  r  rQ  r!   rR  rS  r$   rT  )r   r   CardResourcer&   rU  r*   rW  r   r"   rX  ended_atr[  rZ  r'   r\  r#   latest_invoicelivemoder^  !next_pending_invoice_item_invoiceobjectr   r`  r<  rh  ri  r%   pending_setup_intentpending_updater(   schedule
start_date)r  r  r  r  r  r  r  r  r  r+   r  rp  r  rt  trial_startsubscription_exposed_idparamsr3  returnc                 p    t        d| j                  ddj                  t        |            |            S )S  
        Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://stripe.com/metadata).

        Any pending invoice items that you've created are still charged 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 are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed.

        By default, upon subscription cancellation, Stripe stops 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}r  r  r   _static_requestformatr   clsr  r  s      r?   _cls_cancelzSubscription._cls_cancel  sN     =DD,7/- E 
    
 	
r>   c                      yr  Nr=   r  r  s     r?   r+  zSubscription.cancel  s     	r>   c                      yr  r=   r6   r  s     r?   r+  zSubscription.cancel  s     	r>   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r-   r  r  r[  r  r  r   _requestr  r   getr  s     r?   r+  zSubscription.cancel  sQ     MM=DD,7,G E    	
 		
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_cancel_asynczSubscription._cls_cancel_async  s\      ++=DD,7/- E 
  ,  
 	
   7AA
	Ac                    K   ywr  r=   r  s     r?   cancel_asynczSubscription.cancel_async  s      	   c                    K   ywr  r=   r  s     r?   r  zSubscription.cancel_async  s      	r  r  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  r  s     r?   r  zSubscription.cancel_async	  sa      %%=DD,7,G E   &  	
 		
   AAA
		ArA  c                 Z    t        d| j                  d| j                         |            S )  
        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-   postr  )r   r  	class_urlr  r  s     r?   createzSubscription.create	  s6        
 	
r>   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r  r-   r  r  N)r   r  r  r  s     r?   create_asynczSubscription.create_async4	  sD      ++ ,  
 	
s   ,97
	9r	  c                 p    t        d| j                  ddj                  t        |            |            S )K
        Removes the currently applied discount on a subscription.
        r"   r  4/v1/subscriptions/{subscription_exposed_id}/discountr  r  r  r  s      r?   _cls_delete_discountz!Subscription._cls_delete_discountJ	  sN     FMM,7/- N 
    
 	
r>   c                      yr  Nr=   r  s     r?   delete_discountzSubscription.delete_discount`	  s     	r>   c                      yr  r=   r  s     r?   r  zSubscription.delete_discountk	       	r>   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r"   r  r  r[  r  r  r  r  s     r?   r  zSubscription.delete_discountt	  sQ     MMFMM,7,G N    	
 		
r>   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r"   r  r  r  r  Nr  r  s      r?   _cls_delete_discount_asyncz'Subscription._cls_delete_discount_async	  s\      ++FMM,7/- N 
  ,  
 	
r  c                    K   ywr  r=   r  s     r?   delete_discount_asyncz"Subscription.delete_discount_async	  s      	r  c                    K   ywr  r=   r  s     r?   r  z"Subscription.delete_discount_async	        	r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r"   r  r  r[  r  r  Nr  r  s     r?   r  z"Subscription.delete_discount_async	  sa      %%FMM,7,G N   &  	
 		
r  r  c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |S )
        By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.
        r  r  %Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorr7   r9   r  r  results      r?   listzSubscription.list	  s]     $$MMO % 

 &*-7<((* 
 r>   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)r  r  r  Nr  )r  r  r  r   r  r7   r9   r  s      r?   
list_asynczSubscription.list_async	  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r3  c                 z    | j                         dt        |      }t        d| j                  d||            S )l
  
        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 [create preview](https://stripe.com/docs/api/invoices/create_preview) 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.
        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. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).

        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-   r  r  )r  r   r   r  r  r[  r  urls       r?   modifyzSubscription.modify	  sD    6 +b/:   
 	
r>   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r-   r  r  N)r  r   r   r  r  s       r?   modify_asynczSubscription.modify_async
  sR     6 +b/:++ ,  
 	
s   <A	A
	A	r  c                 p    t        d| j                  ddj                  t        |            |            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-   r  '/v1/subscriptions/{subscription}/resumer.   r  r  r  r.   r  s      r?   _cls_resumezSubscription._cls_resume4
  sK     9@@!,\!: A     	
 		
r>   c                      yr	  Nr=   r.   r  s     r?   resumezSubscription.resumeF
  s     	r>   c                      yr  r=   r  s     r?   r  zSubscription.resumeP
  r  r>   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r	  r-   r  r
  r[  r  r  r  r  s     r?   r  zSubscription.resumeY
  sQ     MM9@@!,TXXd^!< A    	
 		
r>   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r	  r-   r  r
  r  r  Nr  r  s      r?   _cls_resume_asynczSubscription._cls_resume_asynck
  sY      ++9@@!,\!: A   ,  	
 		
r  c                    K   ywr  r=   r  s     r?   resume_asynczSubscription.resume_async}
  s      	r  c                    K   ywr  r=   r  s     r?   r  zSubscription.resume_async
  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r	  r-   r  r
  r[  r  r  Nr  r  s     r?   r  zSubscription.resume_async
  sa      %%9@@!,TXXd^!< A   &  	
 		
r  r  c                 8     | |fi |}|j                          |S )?
        Retrieves the subscription with the given ID.
        )refreshr  r[  r  instances       r?   retrievezSubscription.retrieve
  s$     r$V$r>   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       r?   retrieve_asynczSubscription.retrieve_async
  s3      r$V$$$&&& 	's   (&(kwargsr  c                 *     | j                   |ddi|S )  
        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_url/v1/subscriptions/search)_searchr  argsr#  s      r?   searchzSubscription.search
  s*     s{{48
1
<B
 	
r>   c                 F   K    | j                   |ddi| d{   S 7 w)r%  r&  r'  N)_search_asyncr)  s      r?   search_asynczSubscription.search_async
  s:      'S&&48
1
<B
 
 	
 
s   !!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*;;==r>   c                 ^   K    | j                   |i | d {   j                         S 7 wr0  )r.  r1  r)  s      r?   search_auto_paging_iter_asyncz*Subscription.search_auto_paging_iter_async
  s/      'c&&777IIKK7s   -+-)
rG  rJ  r5  rZ  r<  rh  ri  r  rp  rt  N)r9   r:   r;   __doc__r/   r   r   r<   r   rH   rQ   rc   rk   rt   r  r  r  r%  r1  r   r9  r   r>  ru  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r   r"  r*  r.  r1  r@  rD  rF  rH  rK  rM  rO  rR  rU  rW  r]  r`  rc  re  rh  rk  rm  rq  rs  rv  rz  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r   r$  rP   rF   rb   r   r   r   r   classmethodr   r  r   staticmethodr+  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r"  r	   r+  r.  r   r2  r   r4  rG   r=   r>   r?   r-   r-   3   sz    6DK'.12C6| 62< ,l :0, 0$, iN, iNV\  ,| ; ;~ (
) 
a~ aFY 4Y i 0
9 
I y ,y i I 9 @9 I 8Y i (*) *X9 I  i  D  9  4 9 I y ~ K^ KZ I $Y $y $Y~ YvY 4Y i 0
9 
I 
) 
y i I *9 *X9 I 8Y i i (*) *X9 I  i  D  9  4 9 I y ~ ( ~ $ /-899 &e_,   "**B!CC }  # ##677 EFF L M j)) SM! %__%EFF DE	
 
  Y00 # OJ/00 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
 
	
 
2 !$45 
   
:;
	
 
 -(
:;
	
 )
* 
!$
 45
 
	
 
2 !$45 
   
:;
	
 
 -.
:;
	
 /
* 
9:
	
 
* 
9:
	
 
* 
!$
 <=
 
	
 
* !$<= 
   BC	  01
BC
	
 2
" 
!$
 <=
 
	
 
* !$<= 
   BC	  67
BC
	
 8
" 78	N	# & 78	N	# & "
"
 &'B C"
	"
 "
H "
"
 &'B C"
	"
 "
H 

*01L*M
	
 
" %+,G%H	   :;	  -(
:;
	
 )
" 

*01L*M
	
 
" %+,G%H	   :;	  -.
:;
	
 /
"  &'D E	   &'D E	  
$%@A
	N	+
 
 
$%@A
	N	+
 
 >$%@A>	.	!> >
 L$%@AL	~	&L L &'? 3+++)C'%'r>   r-   N)Gstripe._createable_api_resourcer   stripe._deletable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._search_result_objectr	   stripe._searchable_api_resourcer
   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr   r   typingr   r   r   r   r   r   r   r   r   typing_extensionsr   r   r   r   r   stripe._accountr   stripe._applicationr   stripe._bank_accountr   stripe._cardr    r  stripe._customerr!   stripe._discountr"   stripe._invoicer#   stripe._payment_methodr$   stripe._setup_intentr%   stripe._sourcer&   stripe._subscription_itemr'   stripe._subscription_scheduler(   stripe._tax_idr)   stripe._tax_rater*   stripe.test_helpers._test_clockr+   r-   r=   r>   r?   <module>rT     s    B ? 4 * = 2 ; A . A :
 
 
  '/01))'40%:B$(9x*.)('.).)x*r>   