
    <@gA             
          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      Zb G d de      Zc G d de      Zd G d de      Ze G d de      Zf G d de      Zgeheid      ed<   	 ehej   ed<   	 e	ed<   eked<   	 ehe
   ed<   	 ehe   ed<   	 ehek   ed<   	 eled<   	 ehek   ed<   	 ehe   ed<   	 ed   ed<   	 eked<   	 emed<   	 eked<   	 eked<   	 eid   ed<   	 ehek   ed<   	 eheid      ed<   	 eheiend         ed<   	 eheod      ed<   	 ehem   ed<   	 ehd   ed<   	 eoeid      ed<   	 ehek   ed<   	 emed<   	 eed<   epd   ed<   	 eheid      ed<   	 eled<   	 eqememf   ed<   	 ehek   ed<   	 ed   ed<   	 eheid      ed<   	 ehe   ed<   	 ehe   ed<   	 ehe   ed<   	 eheid      ed<   	 ehe   ed<   	 eheid      ed<   	 eked<   	 ed   ed<   	 eheid      ed<   	 ehe   ed<   	 ehek   ed<   	 ehe   ed<   	 ehek   ed<   	 erdemdesd   dd fd       Zteuevdemdesd   dd fd              Zweudesd   dd fd        Zw exd      desd   dd fd       Zwerdemdesd   dd fd       Zyeuevdemdesd   dd fd              Zzeudesd   dd fd       Zz exd      desd   dd fd       Zzerdesd   dd fd	       Z{erdesd   dd fd
       Z|erdemdesd   ddfd       Z}euevdemdesd   ddfd              Z~eudesd   ddfd       Z~ exd      desd   ddfd       Z~erdemdesd   ddfd       Zeuevdemdesd   ddfd              Zeudesd   ddfd       Z exd      desd   ddfd       Zerdesd   depd    fd       Zerdesd   depd    fd       Zerdemdesd   dd fd       Zerdemdesd   dd fd       Zerdemdesd   dd fd       Zeuevdemdesd   dd fd              Zeudesd   dd fd       Z exd       desd   dd fd!       Zerdemdesd   dd fd"       Zeuevdemdesd   dd fd#              Zeudesd   dd fd$       Z exd%      desd   dd fd&       Zerdemdesd'   dd fd(       Zerdemdesd'   dd fd)       Zerd*esd+   ded    fd,       Zerd*esd+   ded    fd-       Zerd*esd+   ded    fd.       Zerd*esd+   ded    fd/       Ze	e
eeeeeeeeed0Zy1(2  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        S/var/www/html/AdoubleTech/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                   0    e Zd ZU ee   ed<   	 ee   ed<   y)Subscription.BillingThresholds
amount_gtereset_billing_cycle_anchorN)r9   r:   r;   r   rP   r<   rF   r=   r>   r?   BillingThresholdsrS   q   s"    SM!	 %-TN2	r>   rV   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?   CancellationDetailsrX   {   sQ    #	 	
 	
	 N
 	

	r>   rh   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?   Issuerrl      rA   r>   rm   r)   account_tax_idsissuerN)
r9   r:   r;   r   rm   r   r   r   r<   rG   r=   r>   r?   InvoiceSettingsrj      s<    	\ 	 "$w'?"@AA	 &/r>   rp   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?   PauseCollectionrr      s$    GHH	 SM!	r>   ry   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?   	AcssDebitr      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   rg   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<   rg   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?   PaymentMethodOptionsr}      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_payr   kr_cardr   
multibanco	naver_pay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?   PaymentSettingsr{      sy    n	< n	` !))= >>	 '""$&(
 (	
R	 &.,-&
 	
	 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>   r2  end_behaviorN)r9   r:   r;   r   r2  r<   rG   r=   r>   r?   TrialSettingsr*    s(    	, 	 "!	 -k:r>   r4  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   rg   rF   r=   r>   r?   CancelParamsr6    sQ    ):
 	
	 DI&&	 !&&	 T""	r>   r<  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r7  Literal['']|strrY   Literal['']|Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']rb   Nr9   r:   r;   r   r<   r=   r>   r?   CancelParamsCancellationDetailsz,Subscription.CancelParamsCancellationDetails  -    .//	  `
 	
	r>   rA  c                      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d   ed<   	 ee   ed<   	 ee   ed<   	 eed      ed<   	 ee	   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	   ed,<   	 eed-      ed.<   	 ed/   ed0<   	 ed1   ed2<   	 ee   ed3<   	 ee   ed4<   	 ed5   ed6<   y7)8Subscription.CreateParams'Subscription.CreateParamsAddInvoiceItemadd_invoice_itemsLiteral['']|floatapplication_fee_percent%Subscription.CreateParamsAutomaticTaxautomatic_taxbackdate_start_dater  1Subscription.CreateParamsBillingCycleAnchorConfigbilling_cycle_anchor_configz6Literal['']|Subscription.CreateParamsBillingThresholdsbilling_thresholds	cancel_atcancel_at_period_endcharge_automaticallysend_invoicecollection_methodcouponcurrencycustomerdays_until_duedefault_payment_methoddefault_sourceLiteral['']|List[str]default_tax_ratesr   z3Literal['']|List[Subscription.CreateParamsDiscount]	discountsr9  (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promotion_code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   rg   r=   r>   r?   CreateParamsrD    s   &:;
 	
	 "--@!AA	 ##JKK	 )--	 *#..	 &1?&
 	
	 (D
 	
	 s##	 *$//	 ':;
 	
	 C  	 c""	 	 $C((	 !,C 00	 $C((	 ''>??	 !%%	 A
 	
	 DI&&	 &6
 	
	 4 ?@AA	 :;;	 !&&	 ""344	 &)
 	
	 &6
 	
	 (3M(
 	
	 $C((	 (AB
 	
	 ##JKK	 344	 %T**	 's++	 $$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	)
rE  /Subscription.CreateParamsAddInvoiceItemDiscountr]  price0Subscription.CreateParamsAddInvoiceItemPriceData
price_dataquantityr[  	tax_ratesNr9   r:   r;   r   r   r<   rg   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)r}  rU  discountro  Nr9   r:   r;   r   rg   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)r  rV  product	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr9   r:   r;   rg   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)rI  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   rg   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)rL  rK   rL   rM   rN   rO   N)r9   r:   r;   rP   r<   r   r=   r>   r?   $CreateParamsBillingCycleAnchorConfigz1Subscription.CreateParamsBillingCycleAnchorConfig  sU    	 #	 C  	 3	 C  	r>   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)*Subscription.CreateParamsBillingThresholdsrT   rU   Nr9   r:   r;   r   rP   r<   rF   r=   r>   r?   CreateParamsBillingThresholdsr    $    $$	 %0$55	r>   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)!Subscription.CreateParamsDiscountrU  r  ro  Nr  r=   r>   r?   CreateParamsDiscountr    r  r>   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r^  r[  rn   .Subscription.CreateParamsInvoiceSettingsIssuerro   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.CreateParamsInvoiceSettingsIssuer5  r  r>   r  c                       e Zd ZU ed   ed<   	 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`  z:Literal['']|Subscription.CreateParamsItemBillingThresholdsrN  z7Literal['']|List[Subscription.CreateParamsItemDiscount]r]  rc  planr~  &Subscription.CreateParamsItemPriceDatar  r  r[  r  N)r9   r:   r;   r   r<   r   rg   rP   r=   r>   r?   CreateParamsItemzSubscription.CreateParamsItem?  s    'H
 	
	 E
 	
	 d38n--	 #	 3	   HII	 c""	 677	r>   r  c                       e Zd ZU eed<   y).Subscription.CreateParamsItemBillingThresholds	usage_gteNr9   r:   r;   rP   r<   r=   r>   r?   !CreateParamsItemBillingThresholdsr  e      	r>   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)%Subscription.CreateParamsItemDiscountrU  r  ro  Nr  r=   r>   r?   CreateParamsItemDiscountr  k  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  rV  r  /Subscription.CreateParamsItemPriceDataRecurring	recurringr  r  r  r  Nr  r=   r>   r?   CreateParamsItemPriceDataz&Subscription.CreateParamsItemPriceDatay  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.CreateParamsItemPriceDataRecurring  %    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)rl  <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', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', '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.CreateParamsPaymentSettings  N     +J!
 	
	 * i
 	
	 &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   rg   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<   rg   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;   rg   r<   r=   r>   r?   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferI       	r>   r  c                       e Zd Zy)CSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r=   r>   r?   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  Q      r>   r  c                       e Zd Zy)ESubscription.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr   r=   r>   r?   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  T  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  W  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.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsg  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.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  $      +./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)ru  r%  r&  Nr9   r:   r;   r   r'  r<   rg   r=   r>   r?   CreateParamsTransferDataz%Subscription.CreateParamsTransferData      #E**	 	r>   r  c                       e Zd ZU ded<   y)ry  1Subscription.CreateParamsTrialSettingsEndBehaviorr3  Nr9   r:   r;   r<   r=   r>   r?   CreateParamsTrialSettingsz&Subscription.CreateParamsTrialSettings      II	r>   r  c                       e Zd ZU ed   ed<   y)r  r-  r1  Nr   r=   r>   r?   $CreateParamsTrialSettingsEndBehaviorz1Subscription.CreateParamsTrialSettingsEndBehavior       '(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.ListParamsAutomaticTaxrJ  rQ  rT  z"Subscription.ListParamsCreated|intcreatedz+Subscription.ListParamsCurrentPeriodEnd|intcurrent_period_endz-Subscription.ListParamsCurrentPeriodStart|intcurrent_period_startrW  ending_beforer9  limitr  r~  starting_after)
activeallcanceledended
incompleteincomplete_expiredpast_duepausedtrialingunpaidstatus
test_clockN)	r9   r:   r;   r   r<   r   rg   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>   r1  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?   ListParamsCreatedr3    H    	 	 	 	r>   r9  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.ListParamsCurrentPeriodEndr4  r5  r6  r7  Nr8  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.ListParamsCurrentPeriodStartr4  r5  r6  r7  Nr8  r=   r>   r?   ListParamsCurrentPeriodStartr?  %  r:  r>   r@  c                      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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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   ed-<   	 eed.      ed/<   	 ee	   ed0<   	 ed1   ed2<   	 ed3   ed4<   	 ee   ed5<   	 ed6   ed7<   y8)9Subscription.ModifyParams'Subscription.ModifyParamsAddInvoiceItemrF  rG  rH  %Subscription.ModifyParamsAutomaticTaxrJ  now	unchangedr  z6Literal['']|Subscription.ModifyParamsBillingThresholdsrN  zLiteral['']|intrO  rP  ,Subscription.ModifyParamsCancellationDetailsr8  rQ  rT  rU  rX  rY  r>  rZ  r[  r\  r   z3Literal['']|List[Subscription.ModifyParamsDiscount]r]  r9  (Subscription.ModifyParamsInvoiceSettingsr_  Subscription.ModifyParamsItemra  rb  rc  rd  re  z4Literal['']|Subscription.ModifyParamsPauseCollectionpause_collectionrf  rk  (Subscription.ModifyParamsPaymentSettingsrm  z?Literal['']|Subscription.ModifyParamsPendingInvoiceItemIntervalrn  ro  rp  rt  proration_datez1Literal['']|Subscription.ModifyParamsTransferDatarv  rw  r   r!  &Subscription.ModifyParamsTrialSettingsrz  N)
r9   r:   r;   r   r   r<   r   rF   rg   rP   r=   r>   r?   ModifyParamsrB  7  s   &:;
 	
	 "--@!AA	 ##JKK	 *'2D*EFF	 (D
 	
	 011	 *$//	 *:
 	
	 ':;
 	
	 C  	 $C((	 !,C 00	 $$566	 ''>??	 !!233	 A
 	
	 DI&&	 &6
 	
	 4 ?@AA	 :;;	 !&&	 ""344	 &B
 	
	 &)
 	
	 &6
 	
	 (3M(
 	
	 $C((	 (AB
 	
	 $C((	 #?
 	
	 344	 %T**	 $$LMM	r>   rO  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	)
rC  /Subscription.ModifyParamsAddInvoiceItemDiscountr]  r~  0Subscription.ModifyParamsAddInvoiceItemPriceDatar  r  r[  r  Nr  r=   r>   r?   ModifyParamsAddInvoiceItemz'Subscription.ModifyParamsAddInvoiceItem  r  r>   rS  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)rQ  rU  r  ro  Nr  r=   r>   r?   "ModifyParamsAddInvoiceItemDiscountz/Subscription.ModifyParamsAddInvoiceItemDiscount  r  r>   rU  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)rR  rV  r  r  r  r  r  Nr  r=   r>   r?   #ModifyParamsAddInvoiceItemPriceDataz0Subscription.ModifyParamsAddInvoiceItemPriceData  r  r>   rW  c                   *    e Zd ZU eed<   	 ed   ed<   y)rD  rD   .Subscription.ModifyParamsAutomaticTaxLiabilityrE   Nr  r=   r>   r?   ModifyParamsAutomaticTaxz%Subscription.ModifyParamsAutomaticTax   r  r>   rZ  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rY  r4   r5   r7   Nr  r=   r>   r?   !ModifyParamsAutomaticTaxLiabilityz.Subscription.ModifyParamsAutomaticTaxLiability,  r  r>   r\  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)*Subscription.ModifyParamsBillingThresholdsrT   rU   Nr  r=   r>   r?   ModifyParamsBillingThresholdsr^  6  r  r>   r_  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rH  r>  rY   r?  rb   Nr@  r=   r>   r?   ModifyParamsCancellationDetailsz,Subscription.ModifyParamsCancellationDetails@  rB  r>   ra  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)!Subscription.ModifyParamsDiscountrU  r  ro  Nr  r=   r>   r?   ModifyParamsDiscountrc  L  r  r>   rd  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rI  r[  rn   .Subscription.ModifyParamsInvoiceSettingsIssuerro   Nr@  r=   r>   r?   ModifyParamsInvoiceSettingsz(Subscription.ModifyParamsInvoiceSettingsZ  r  r>   rg  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rf  r4   r5   r7   Nr  r=   r>   r?   !ModifyParamsInvoiceSettingsIssuerz.Subscription.ModifyParamsInvoiceSettingsIssuerd  r  r>   ri  c                       e Zd ZU ed   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d
<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y)rJ  z:Literal['']|Subscription.ModifyParamsItemBillingThresholdsrN  clear_usagedeletedz7Literal['']|List[Subscription.ModifyParamsItemDiscount]r]  idrb  rc  r  r~  &Subscription.ModifyParamsItemPriceDatar  r  r[  r  N)r9   r:   r;   r   r<   rF   rg   rP   r=   r>   r?   ModifyParamsItemzSubscription.ModifyParamsItemn  s    'H
 	
	 !&&	 T""	 E
 	
	 	 :;;	 #	 3	   HII	 c""	 677	r>   ro  c                       e Zd ZU eed<   y).Subscription.ModifyParamsItemBillingThresholdsr  Nr  r=   r>   r?   !ModifyParamsItemBillingThresholdsrq    r  r>   rr  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)%Subscription.ModifyParamsItemDiscountrU  r  ro  Nr  r=   r>   r?   ModifyParamsItemDiscountrt    r  r>   ru  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	)
rn  rV  r  /Subscription.ModifyParamsItemPriceDataRecurringr  r  r  r  r  Nr  r=   r>   r?   ModifyParamsItemPriceDataz&Subscription.ModifyParamsItemPriceData  r  r>   rx  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rw  r  r  r  Nr  r=   r>   r?   "ModifyParamsItemPriceDataRecurringz/Subscription.ModifyParamsItemPriceDataRecurring  r  r>   rz  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)(Subscription.ModifyParamsPauseCollectionrs   rw   rx   Nr  r=   r>   r?   ModifyParamsPauseCollectionr|    s%    GHH	  $$	r>   r}  c                   H    e Zd ZU ed   ed<   	 ed   ed<   	 eed      ed<   y)rL  <Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsr   r  r  r  r  Nr  r=   r>   r?   ModifyParamsPaymentSettingsz(Subscription.ModifyParamsPaymentSettings  r  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.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>   r  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?   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  $  r  r>   r  c                   $    e Zd ZU eed      ed<   y)r  r   r   Nr  r=   r>   r?   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions2  r  r>   r  c                   $    e Zd ZU eed      ed<   y)FSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   r   Nr  r=   r>   r?   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  :  r  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.ModifyParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsr   r   r   r   r   Nr  r=   r>   r?   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardr  @  r  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   Nr  r=   r>   r?   AModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsb  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>   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.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  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    r  r>   r  c                       e Zd Zy)ESubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr   r=   r>   r?   8ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr    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    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.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  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)rN  1Subscription.ModifyParamsTrialSettingsEndBehaviorr3  Nr  r=   r>   r?   ModifyParamsTrialSettingsz&Subscription.ModifyParamsTrialSettings  r  r>   r  c                       e Zd ZU ed   ed<   y)r  r-  r1  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.ResumeParamsrE  r  r9  rp  rt  rM  N)	r9   r:   r;   r   r   r<   r   rg   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.RetrieveParamsr9  N)r9   r:   r;   r   r   rg   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.SearchParamsr9  r!  pagequeryN)r9   r:   r;   r   r   rg   r<   rP   r=   r>   r?   SearchParamsr  
  sF    DI&&	 3	 #	 
	r>   r  r   applicationrH  rJ  r  rM  rN  rO  rP  canceled_atr8  rQ  rT  r  rV  r  r  r!   rW  rX  r$   rY  )r   r   CardResourcer&   rZ  r*   r\  r   r"   r  r]  ended_atrm  r_  r'   ra  r#   latest_invoicelivemoderc  !next_pending_invoice_item_invoiceobjectr   re  rK  rm  rn  r%   pending_setup_intentpending_updater(   schedule
start_date)r#  r%  r'  r(  r)  r*  r+  r,  r-  r+   r.  rv  r   rz  trial_startsubscription_exposed_idparamsr6  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  rm  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_async2	  s\      ++=DD,7/- E 
  ,  
 	
   7AA
	Ac                    K   ywr  r=   r  s     r?   cancel_asynczSubscription.cancel_asyncL	  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  rm  r  r  Nr   _request_asyncr  r   r  r  s     r?   r  zSubscription.cancel_asynch	  sa      %%=DD,7,G E   &  	
 		
   AAA
		ArD  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_async	  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_discount	  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_discount	       	r>   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r"   r  r  rm  r  r  r  r  s     r?   r   zSubscription.delete_discount	  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  rm  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_async6
  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"rB  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  rm  r  urls       r?   modifyzSubscription.modifyJ
  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_asynco
  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_resume
  sK     9@@!,\!: A     	
 		
r>   c                      yr  Nr=   r.   r  s     r?   resumezSubscription.resume
  s     	r>   c                      yr$  r=   r  s     r?   r&  zSubscription.resume
  r  r>   r"  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r-   r  r  rm  r   r  r  r  s     r?   r&  zSubscription.resume
  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_async
  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  rm  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  rm  r  instances       r?   retrievezSubscription.retrieve  s$     r$V$r>   c                 T   K    | |fi |}|j                          d{    |S 7 w)r0  N)refresh_asyncr2  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  argsr8  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_iter4  s#     szz4*6*;;==r>   c                 ^   K    | j                   |i | d {   j                         S 7 wrE  )rC  rF  r>  s      r?   search_auto_paging_iter_asyncz*Subscription.search_auto_paging_iter_async:  s/      'c&&777IIKK7s   -+-)rJ  rM  rN  r8  r_  rK  rm  rn  r  rv  rz  N)r9   r:   r;   __doc__r/   r   r   r<   r   rH   rQ   rV   rh   rp   ry   r  r  r"  r(  r4  r   r<  r   rA  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  r9  r=  r@  rO  rS  rU  rW  rZ  r\  r_  ra  rd  rg  ri  ro  rr  ru  rx  rz  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'  rP   rF   rg   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,  r4  r7  r	   r@  rC  r   rG  r   rI  rG   r=   r>   r?   r-   r-   3   s    6DK'.12C6| 62< ,L l :0, 0$, gN, gNR\  ,| ; ;~ (
) 
o~ obY 4Y i 0
9 
I y ,	 y i I $9 $LI 9 I 8Y i (*) *X9 I  i  D  9  4 9 I y ~ K^ KZ I $Y $y $g~ gRY 4Y i 0
9 
I 	 
) 
y i I 09 0dI 9 I 8Y i i (*) *X9 I  i  D  9  4 9 I y ~ ( ~ $ /-899 &e_,   "**B!CC !!233 }  # ##677 EFF L M   j)) SM! %__%EFF DE	
 
  Y00 # z"" 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>ri     s    B ? 4 * = 2 ; A . A :
 
 
  '/01))'40%:B$(9Y,.)('.).)Y,r>   