
    jofm;             
          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                   ZFdS )     )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d1S (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                   X    e Zd ZU  G d de          Zeed<   	 ee         ed<   	 deiZdS )Subscription.AutomaticTaxc                   J    e Zd ZU eed                  ed<   	 ed         ed<   dS )#Subscription.AutomaticTax.Liabilityr   accountr4   selftypeN__name__
__module____qualname__r   r   __annotations__r        N/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_subscription.py	Liabilityr3   C   E         oi89999 +,,,, r>   r@   enabled	liabilityN)	r9   r:   r;   r   r@   boolr<   r   _inner_class_typesr=   r>   r?   AutomaticTaxr1   B   sq         	 	 	 	 	 	 	 	 	 I&&&&	 *95r>   rF   c                   z    e Zd ZU eed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )%Subscription.BillingCycleAnchorConfigday_of_monthhourminutemonthsecondN)r9   r:   r;   intr<   r   r=   r>   r?   BillingCycleAnchorConfigrH   W   s~         	 sm	 	 }	 	 	r>   rO   c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )Subscription.BillingThresholds
amount_gtereset_billing_cycle_anchorN)r9   r:   r;   r   rN   r<   rD   r=   r>   r?   BillingThresholdsrQ   m   s=         SM!!!	 %-TN222	 	r>   rT   c                   n    e Zd ZU ee         ed<   	 eed                  ed<   	 eed                  ed<   dS ) 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?   CancellationDetailsrV   w   sz         #	 	
 	
 	
 	
	 N
 	
 	
 	

	 	r>   rf   c                   n    e Zd ZU  G d de          Zeeed                           ed<   	 eed<   deiZ	dS )Subscription.InvoiceSettingsc                   J    e Zd ZU eed                  ed<   	 ed         ed<   dS )#Subscription.InvoiceSettings.Issuerr   r4   r5   r7   Nr8   r=   r>   r?   Issuerrj      rA   r>   rk   r)   account_tax_idsissuerN)
r9   r:   r;   r   rk   r   r   r   r<   rE   r=   r>   r?   InvoiceSettingsrh      st         	 	 	 	 	\ 	 	 	 "$w'?"@AAAA	 &/r>   rn   c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )Subscription.PauseCollectionkeep_as_draftmark_uncollectiblevoidbehavior
resumes_atN)r9   r:   r;   r   r<   r   rN   r=   r>   r?   PauseCollectionrp      s?         GHHHH	 SM!!!	 	r>   rw   c                       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	dS )	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dS )1Subscription.PaymentSettings.PaymentMethodOptionsc                   n    e Zd ZU  G d de          Zee         ed<   eed                  ed<   	 deiZdS );Subscription.PaymentSettings.PaymentMethodOptions.AcssDebitc                   2    e Zd ZU eed                  ed<   dS )JSubscription.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptionsbusinesspersonaltransaction_typeN)r9   r:   r;   r   r   r<   r=   r>   r?   MandateOptionsr      s-         &.w7M/N&OOOO r>   r   mandate_options	automaticinstantmicrodepositsverification_methodN	r9   r:   r;   r   r   r   r<   r   rE   r=   r>   r?   	AcssDebitr}      s             \    "*.!9999%-CD&    '8%H"""r>   r   c                   &    e Zd ZU ed         ed<   dS )<Subscription.PaymentSettings.PaymentMethodOptions.Bancontactdeenfrnlpreferred_languageNr9   r:   r;   r   r<   r=   r>   r?   
Bancontactr      s(         $+,B$CCCC r>   r   c                       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dS )	6Subscription.PaymentSettings.PaymentMethodOptions.Cardc                   b    e Zd ZU ee         ed<   	 eed                  ed<   	 ee         ed<   dS )ESubscription.PaymentSettings.PaymentMethodOptions.Card.MandateOptionsamountfixedmaximumamount_typedescriptionN)r9   r:   r;   r   rN   r<   r   re   r=   r>   r?   r   r      s[         $SM))) "*'2D*E!FFFF "*#... r>   r   r   amexcartes_bancairesdinersdiscover	eftpos_auinteracjcb
mastercardunionpayunknownvisanetworkanyr   	challengerequest_three_d_secureNr   r=   r>   r?   r    r      s             \    "*.!9999!
     )1;<)    '8%H"""r>   r    c                   n    e Zd ZU  G d de          Zee         ed<   eed                  ed<   	 deiZdS )ASubscription.PaymentSettings.PaymentMethodOptions.CustomerBalancec                   b    e Zd ZU  G d de          Zee         ed<   ee         ed<   	 deiZdS )NSubscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransferc                   &    e Zd ZU ed         ed<   dS )]Subscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)BEDEESFRIENLcountryNr   r=   r>   r?   EuBankTransferr      s(         !()K!LLLL r>   r   eu_bank_transferr7   N)	r9   r:   r;   r   r   r   r<   re   rE   r=   r>   r?   BankTransferr      sq                 '/~&>>>>"3-''' +=n)M&&&r>   r   bank_transferfunding_typeN)	r9   r:   r;   r   r   r   r<   r   rE   r=   r>   r?   CustomerBalancer      s         N N N N N< N N N  (5555&w'?@@@@ '6|%D"""r>   r   c                       e Zd ZdS )9Subscription.PaymentSettings.PaymentMethodOptions.KonbiniNr9   r:   r;   r=   r>   r?   Konbinir             r>   r   c                       e Zd ZdS );Subscription.PaymentSettings.PaymentMethodOptions.SepaDebitNr   r=   r>   r?   	SepaDebitr     r   r>   r   c                   n    e Zd ZU  G d de          Zee         ed<   eed                  ed<   	 deiZdS )?Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccountc                       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	dS )	TSubscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnectionsc                   >    e Zd ZU eeed                           ed<   dS )\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   rE   r=   r>   r?   FinancialConnectionsr     s             ,    &g....!)#!0	" 	 	 	 'W%LMN    +4W)=&&&r>   r   financial_connectionsr   r   N)	r9   r:   r;   r   r   r   r<   r   rE   r=   r>   r?   UsBankAccountr     s         > > > > >< > > >> (00D'EE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<   rE   r=   r>   r?   PaymentMethodOptionsr{      s        I I I I IL I I I     \   (I (I (I (I (I| (I (I (ITE E E E E, E E E,    ,       L   ) ) ) ) ) ) ) )V !++++ !,,,, 4.    '7777 g&&&& !++++ &m44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idealr   linkp24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   rE   r=   r>   r?   PaymentSettingsry      s         l	 l	 l	 l	 l	< l	 l	 l	\ !))= >>>>	 '" "
 "	
 "	
 "	
F	 &.,-&
 	
 	
 	
	 78LMr>   r  c                   2    e Zd ZU ed         ed<   	 eed<   dS )'Subscription.PendingInvoiceItemIntervaldayrL   weekyearintervalinterval_countN)r9   r:   r;   r   r<   rN   r=   r>   r?   PendingInvoiceItemIntervalr
    s;         89999	 	 	r>   r  c                       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<   dS )Subscription.PendingUpdatebilling_cycle_anchor
expires_atr'   subscription_items	trial_endtrial_from_planN)r9   r:   r;   r   rN   r<   r   rD   r=   r>   r?   PendingUpdater    s         &sm+++	 	 %T*<%=>>>>	 C=   	 "$'''	 	r>   r  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )Subscription.TransferDataamount_percentr   destinationN)r9   r:   r;   r   floatr<   r   r=   r>   r?   TransferDatar    s>          '''	 %Y////	 	r>   r  c                   @    e Zd ZU  G d de          Zeed<   	 deiZdS )Subscription.TrialSettingsc                   &    e Zd ZU ed         ed<   dS )&Subscription.TrialSettings.EndBehaviorcancelcreate_invoicepausemissing_payment_methodNr   r=   r>   r?   EndBehaviorr#    s0         $+3%    r>   r)  end_behaviorN)r9   r:   r;   r   r)  r<   rE   r=   r>   r?   TrialSettingsr!    s\         	 	 	 	 	, 	 	 	 "!!!	 -k:r>   r+  c                   z    e Zd ZU ed         ed<   	 eee                  ed<   	 ee         ed<   	 ee         ed<   dS )Subscription.CancelParams,Subscription.CancelParamsCancellationDetailscancellation_detailsexpandinvoice_nowprorateN)r9   r:   r;   r   r<   r   re   rD   r=   r>   r?   CancelParamsr-    s|         ):
 	
 	
 	
	 DI&&&&	 !&&&&	 T""""	 	r>   r3  c                   >    e Zd ZU ed         ed<   	 ed         ed<   dS )r.  Literal['']|strrW   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  L         .////	  `
 	
 	
 	
	 	r>   r8  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<   d7S )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]	discountsr0  (Subscription.CreateParamsInvoiceSettingsinvoice_settingsSubscription.CreateParamsItemitemsLiteral['']|Dict[str, str]metadataoff_sessionr5  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<   rN   rD   r   re   r=   r>   r?   CreateParamsr;    s        &:;
 	
 	
 	
	 "--@!AAAA	 ##JKKKK	 )----	 *#....	 &1?&
 	
 	
 	
	 (D
 	
 	
 	
	 s####	 *$////	 ':;
 	
 	
 	
	 C    	 c""""	 	 $C((((	 !,C 0000	 $C((((	 ''>????	 !%%%%	 A
 	
 	
 	
	 DI&&&&	 &6
 	
 	
 	
	 4 ?@AAAA	 :;;;;	 !&&&&	 ""34444	 &)
 	
 	
 	
	 &6
 	
 	
 	
	 (3M(
 	
 	
 	
	 $C((((	 (AB
 	
 	
 	
	 ##JKKKK	 34444	 %T****	 's++++	 $$LMMMM	 	r>   rr  c                       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<   d	S )
r<  /Subscription.CreateParamsAddInvoiceItemDiscountrT  price0Subscription.CreateParamsAddInvoiceItemPriceData
price_dataquantityrR  	tax_ratesNr9   r:   r;   r   r   r<   re   rN   r=   r>   r?   CreateParamsAddInvoiceItemz'Subscription.CreateParamsAddInvoiceItem           BC
 	
 	
 	
	 3	  >
 	
 	
 	
	 c""""	 67777	 	r>   r{  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )rt  rL  discountrf  Nr9   r:   r;   r   re   r<   r=   r>   r?   "CreateParamsAddInvoiceItemDiscountz/Subscription.CreateParamsAddInvoiceItemDiscount  W         C    	 c""""	 $C((((	 	r>   r  c                   z    e Zd ZU eed<   	 eed<   	 eed                  ed<   	 ee         ed<   	 ee         ed<   dS )rv  rM  product	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr9   r:   r;   re   r<   r   r   rN   r=   r>   r?   #CreateParamsAddInvoiceItemPriceDataz0Subscription.CreateParamsAddInvoiceItemPriceData           	 	 ";<
 	
 	
 	
	 !%%%%	 )----	 	r>   r  c                   2    e Zd ZU eed<   	 ed         ed<   dS )r@  rB   .Subscription.CreateParamsAutomaticTaxLiabilityrC   Nr9   r:   r;   rD   r<   r   r=   r>   r?   CreateParamsAutomaticTaxz%Subscription.CreateParamsAutomaticTax  @         	 <
 	
 	
 	
	 	r>   r  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r  r4   r5   r7   Nr9   r:   r;   r   re   r<   r   r=   r>   r?   !CreateParamsAutomaticTaxLiabilityz.Subscription.CreateParamsAutomaticTaxLiability  @         S!!!!	 '((((	 	r>   r  c                   z    e Zd ZU eed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )rC  rI   rJ   rK   rL   rM   N)r9   r:   r;   rN   r<   r   r=   r>   r?   $CreateParamsBillingCycleAnchorConfigz1Subscription.CreateParamsBillingCycleAnchorConfig  s         	 #	 C    	 3	 C    	 	r>   r  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )*Subscription.CreateParamsBillingThresholdsrR   rS   Nr9   r:   r;   r   rN   r<   rD   r=   r>   r?   CreateParamsBillingThresholdsr    ?         $$$$	 %0$5555	 	r>   r  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )!Subscription.CreateParamsDiscountrL  r~  rf  Nr  r=   r>   r?   CreateParamsDiscountr    r  r>   r  c                   >    e Zd ZU ed         ed<   	 ed         ed<   dS )rU  rR  rl   .Subscription.CreateParamsInvoiceSettingsIssuerrm   Nr7  r=   r>   r?   CreateParamsInvoiceSettingsz(Subscription.CreateParamsInvoiceSettings  A         $%<====	 LMMMM	 	r>   r  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )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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<   dS )rW  z:Literal['']|Subscription.CreateParamsItemBillingThresholdsrE  z7Literal['']|List[Subscription.CreateParamsItemDiscount]rT  rZ  planru  &Subscription.CreateParamsItemPriceDatarw  rx  rR  ry  N)r9   r:   r;   r   r<   r   re   rN   r=   r>   r?   CreateParamsItemzSubscription.CreateParamsItem3  s         'H
 	
 	
 	
	 E
 	
 	
 	
	 d38n----	 #	 3	   HIIII	 c""""	 67777	 	r>   r  c                       e Zd ZU eed<   dS ).Subscription.CreateParamsItemBillingThresholds	usage_gteNr9   r:   r;   rN   r<   r=   r>   r?   !CreateParamsItemBillingThresholdsr  Y           	 	r>   r  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )%Subscription.CreateParamsItemDiscountrL  r~  rf  Nr  r=   r>   r?   CreateParamsItemDiscountr  _  r  r>   r  c                       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<   d	S )
r  rM  r  /Subscription.CreateParamsItemPriceDataRecurring	recurringr  r  r  r  Nr  r=   r>   r?   CreateParamsItemPriceDataz&Subscription.CreateParamsItemPriceDatam           	 	 EDDD	 ";<
 	
 	
 	
	 !%%%%	 )----	 	r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )r  r  r  r  Nr9   r:   r;   r   r<   r   rN   r=   r>   r?   "CreateParamsItemPriceDataRecurringz/Subscription.CreateParamsItemPriceDataRecurring  @         89999	 $C((((	 	r>   r  c                   b    e Zd ZU ed         ed<   	 ed         ed<   	 eed                  ed<   dS )rc  <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', 'konbini', 'link', 'p24', '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  {          +J!
 	
 	
 	
	 * W
 	
 	
 	
	 &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<   dS )r  zQLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zRLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   zLLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardr   zWLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zOLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir   zQLiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr   zULiteral['']|Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr7  r=   r>   r?   /CreateParamsPaymentSettingsPaymentMethodOptionsz<Subscription.CreateParamsPaymentSettingsPaymentMethodOptions           _
 	
 	
 	
	  `
 	
 	
 	
	 Z
 	
 	
 	
	 &e
 	
 	
 	
	 ]
 	
 	
 	
	  _
 	
 	
 	
	 %c
 	
 	
 	
	 	r>   r  c                   J    e Zd ZU ed         ed<   	 eed                  ed<   dS )ESubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitSSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr   r   r   Nr  r=   r>   r?   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr    W         $a
 	
 	
 	
	 );<
 	
 	
 	
	 	r>   r  c                   2    e Zd ZU eed                  ed<   dS )r  r   r   Nr9   r:   r;   r   r   r<   r=   r>   r?   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  /          &g.D&EFFFF	 	r>   r  c                   2    e Zd ZU eed                  ed<   dS )FSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   r   Nr  r=   r>   r?   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr    -         '0F(GHH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<   dS )@Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsr   r   r   r   r   Nr  r=   r>   r?   3CreateParamsPaymentSettingsPaymentMethodOptionsCardr             $\
 	
 	
 	
	 

 	
 	
 	
	 !,34!
 	
 	
 	
	 	r>   r  c                   b    e Zd ZU ee         ed<   	 eed                  ed<   	 ee         ed<   dS )r  r   r   r   r   Nr9   r:   r;   r   rN   r<   r   re   r=   r>   r?   ACreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions  _          C    	 !);!<====	 !%%%%	 	r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )KSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceWSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   r   Nr9   r:   r;   r   r<   re   r=   r>   r?   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer    J          #e
 	
 	
 	
	 "#&&&&	 	r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )r  eSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   r7   Nr  r=   r>   r?   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzWSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer-  J          &s
 	
 	
 	
	 #	 	r>   r  c                       e Zd ZU eed<   dS )r  r   Nr9   r:   r;   re   r<   r=   r>   r?   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer;  !          	 	r>   r  c                       e Zd ZdS )CSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r=   r>   r?   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  C          r>   r  c                       e Zd ZdS )ESubscription.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr   r=   r>   r?   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  F  r  r>   r  c                   J    e Zd ZU ed         ed<   	 eed                  ed<   dS )ISubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount]Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   r   r   Nr  r=   r>   r?   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  I  Y           +k 
 	
 	
 	
	 );<
 	
 	
 	
	 	r>   r  c                       e Zd ZU ed         ed<   	 eeed                           ed<   	 eeed                           ed<   dS )r  dSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr   r   r   r   r   Nr9   r:   r;   r   r<   r   r   r=   r>   r?   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz]Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsY            r
 	
 	
 	
	 !M
 	
 	
 	
	 @AB
 	
 	
 	
	 	r>   r  c                   >    e Zd ZU eeed                           ed<   dS )r  r   r   Nr9   r:   r;   r   r   r   r<   r=   r>   r?   WCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszdSubscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterss  =           +./0 
 	
 	
 	
	 	r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )3Subscription.CreateParamsPendingInvoiceItemIntervalr  r  r  Nr  r=   r>   r?   &CreateParamsPendingInvoiceItemIntervalr   }  r  r>   r  c                   2    e Zd ZU ee         ed<   	 eed<   dS )rl  r  r  Nr9   r:   r;   r   r  r<   re   r=   r>   r?   CreateParamsTransferDataz%Subscription.CreateParamsTransferData  :         #E****	 	 	r>   r  c                       e Zd ZU ded<   dS )rp  1Subscription.CreateParamsTrialSettingsEndBehaviorr*  Nr9   r:   r;   r<   r=   r>   r?   CreateParamsTrialSettingsz&Subscription.CreateParamsTrialSettings  "         IIII	 	r>   r	  c                   &    e Zd ZU ed         ed<   dS )r  r$  r(  Nr   r=   r>   r?   $CreateParamsTrialSettingsEndBehaviorz1Subscription.CreateParamsTrialSettingsEndBehavior  (          '(K LLLL	 	r>   r  c                       e Zd ZdS )!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<   dS )Subscription.ListParams#Subscription.ListParamsAutomaticTaxrA  rH  rK  z"Subscription.ListParamsCreated|intcreatedz+Subscription.ListParamsCurrentPeriodEnd|intcurrent_period_endz-Subscription.ListParamsCurrentPeriodStart|intcurrent_period_startrN  ending_beforer0  limitr  ru  starting_after)
activeallcanceledended
incompleteincomplete_expiredpast_duepausedtrialingunpaidstatus
test_clockN)	r9   r:   r;   r   r<   r   re   r   rN   r=   r>   r?   
ListParamsr    s        "#HIIII	 ':;
 	
 	
 	
	 ABBBB	 (9
 	
 	
 	
 *;
 	
 	
 	
 c""""	 #3''''	 DI&&&&	 3	 #	 3	 $C((((	 	
 	
 	
 	
	  $$$$	 	r>   r&  c                       e Zd ZU eed<   dS )r  rB   N)r9   r:   r;   rD   r<   r=   r>   r?   ListParamsAutomaticTaxz#Subscription.ListParamsAutomaticTax  s         	 	r>   r(  c                   n    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )Subscription.ListParamsCreatedgtgteltlteNr9   r:   r;   r   rN   r<   r=   r>   r?   ListParamsCreatedr*    o         	 	 	 	 	r>   r0  c                   n    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )'Subscription.ListParamsCurrentPeriodEndr+  r,  r-  r.  Nr/  r=   r>   r?   ListParamsCurrentPeriodEndr3    r1  r>   r4  c                   n    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS ))Subscription.ListParamsCurrentPeriodStartr+  r,  r-  r.  Nr/  r=   r>   r?   ListParamsCurrentPeriodStartr6    r1  r>   r7  c                   z   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<   d8S )9Subscription.ModifyParams'Subscription.ModifyParamsAddInvoiceItemr=  r>  r?  %Subscription.ModifyParamsAutomaticTaxrA  now	unchangedr  z6Literal['']|Subscription.ModifyParamsBillingThresholdsrE  zLiteral['']|intrF  rG  ,Subscription.ModifyParamsCancellationDetailsr/  rH  rK  rL  rO  rP  r5  rQ  rR  rS  r   z3Literal['']|List[Subscription.ModifyParamsDiscount]rT  r0  (Subscription.ModifyParamsInvoiceSettingsrV  Subscription.ModifyParamsItemrX  rY  rZ  r[  r\  z4Literal['']|Subscription.ModifyParamsPauseCollectionpause_collectionr]  rb  (Subscription.ModifyParamsPaymentSettingsrd  z?Literal['']|Subscription.ModifyParamsPendingInvoiceItemIntervalre  rf  rg  rk  proration_datez1Literal['']|Subscription.ModifyParamsTransferDatarm  rn  r  r  &Subscription.ModifyParamsTrialSettingsrq  N)
r9   r:   r;   r   r   r<   r   rD   re   rN   r=   r>   r?   ModifyParamsr9  #  s        &:;
 	
 	
 	
	 "--@!AAAA	 ##JKKKK	 *'2D*EFFFF	 (D
 	
 	
 	
	 01111	 *$////	 *:
 	
 	
 	
	 ':;
 	
 	
 	
	 C    	 $C((((	 !,C 0000	 $$56666	 ''>????	 !!23333	 A
 	
 	
 	
	 DI&&&&	 &6
 	
 	
 	
	 4 ?@AAAA	 :;;;;	 !&&&&	 ""34444	 &B
 	
 	
 	
	 &)
 	
 	
 	
	 &6
 	
 	
 	
	 (3M(
 	
 	
 	
	 $C((((	 (AB
 	
 	
 	
	 $C((((	 #?
 	
 	
 	
	 34444	 %T****	 $$LMMMM	 	r>   rF  c                       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<   d	S )
r:  /Subscription.ModifyParamsAddInvoiceItemDiscountrT  ru  0Subscription.ModifyParamsAddInvoiceItemPriceDatarw  rx  rR  ry  Nrz  r=   r>   r?   ModifyParamsAddInvoiceItemz'Subscription.ModifyParamsAddInvoiceItem  r|  r>   rJ  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )rH  rL  r~  rf  Nr  r=   r>   r?   "ModifyParamsAddInvoiceItemDiscountz/Subscription.ModifyParamsAddInvoiceItemDiscount  r  r>   rL  c                   z    e Zd ZU eed<   	 eed<   	 eed                  ed<   	 ee         ed<   	 ee         ed<   dS )rI  rM  r  r  r  r  r  Nr  r=   r>   r?   #ModifyParamsAddInvoiceItemPriceDataz0Subscription.ModifyParamsAddInvoiceItemPriceData  r  r>   rN  c                   2    e Zd ZU eed<   	 ed         ed<   dS )r;  rB   .Subscription.ModifyParamsAutomaticTaxLiabilityrC   Nr  r=   r>   r?   ModifyParamsAutomaticTaxz%Subscription.ModifyParamsAutomaticTax  r  r>   rQ  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )rP  r4   r5   r7   Nr  r=   r>   r?   !ModifyParamsAutomaticTaxLiabilityz.Subscription.ModifyParamsAutomaticTaxLiability  r  r>   rS  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )*Subscription.ModifyParamsBillingThresholdsrR   rS   Nr  r=   r>   r?   ModifyParamsBillingThresholdsrU  "  r  r>   rV  c                   >    e Zd ZU ed         ed<   	 ed         ed<   dS )r?  r5  rW   r6  r`   Nr7  r=   r>   r?   ModifyParamsCancellationDetailsz,Subscription.ModifyParamsCancellationDetails,  r9  r>   rX  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )!Subscription.ModifyParamsDiscountrL  r~  rf  Nr  r=   r>   r?   ModifyParamsDiscountrZ  8  r  r>   r[  c                   >    e Zd ZU ed         ed<   	 ed         ed<   dS )r@  rR  rl   .Subscription.ModifyParamsInvoiceSettingsIssuerrm   Nr7  r=   r>   r?   ModifyParamsInvoiceSettingsz(Subscription.ModifyParamsInvoiceSettingsF  r  r>   r^  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r]  r4   r5   r7   Nr  r=   r>   r?   !ModifyParamsInvoiceSettingsIssuerz.Subscription.ModifyParamsInvoiceSettingsIssuerP  r  r>   r`  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<   dS )rA  z:Literal['']|Subscription.ModifyParamsItemBillingThresholdsrE  clear_usagedeletedz7Literal['']|List[Subscription.ModifyParamsItemDiscount]rT  idrY  rZ  r  ru  &Subscription.ModifyParamsItemPriceDatarw  rx  rR  ry  N)r9   r:   r;   r   r<   rD   re   rN   r=   r>   r?   ModifyParamsItemzSubscription.ModifyParamsItemZ  s,        'H
 	
 	
 	
	 !&&&&	 T""""	 E
 	
 	
 	
	 	 :;;;;	 #	 3	   HIIII	 c""""	 67777	 	r>   rf  c                       e Zd ZU eed<   dS ).Subscription.ModifyParamsItemBillingThresholdsr  Nr  r=   r>   r?   !ModifyParamsItemBillingThresholdsrh    r  r>   ri  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )%Subscription.ModifyParamsItemDiscountrL  r~  rf  Nr  r=   r>   r?   ModifyParamsItemDiscountrk    r  r>   rl  c                       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<   d	S )
re  rM  r  /Subscription.ModifyParamsItemPriceDataRecurringr  r  r  r  r  Nr  r=   r>   r?   ModifyParamsItemPriceDataz&Subscription.ModifyParamsItemPriceData  r  r>   ro  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )rn  r  r  r  Nr  r=   r>   r?   "ModifyParamsItemPriceDataRecurringz/Subscription.ModifyParamsItemPriceDataRecurring  r  r>   rq  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )(Subscription.ModifyParamsPauseCollectionrq   ru   rv   Nr  r=   r>   r?   ModifyParamsPauseCollectionrs    s@         GHHHH	  $$$$	 	r>   rt  c                   b    e Zd ZU ed         ed<   	 ed         ed<   	 eed                  ed<   dS )rC  <Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsr   r  r  r  r  Nr  r=   r>   r?   ModifyParamsPaymentSettingsz(Subscription.ModifyParamsPaymentSettings  r  r>   rw  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<   dS )rv  zQLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zRLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   zLLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr   zWLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zOLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir   zQLiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr   zULiteral['']|Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr7  r=   r>   r?   /ModifyParamsPaymentSettingsPaymentMethodOptionsz<Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions  r  r>   ry  c                   J    e Zd ZU ed         ed<   	 eed                  ed<   dS )ESubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr   r   r   Nr  r=   r>   r?   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr{    r  r>   r}  c                   2    e Zd ZU eed                  ed<   dS )r|  r   r   Nr  r=   r>   r?   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszSSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  r  r>   r  c                   2    e Zd ZU eed                  ed<   dS )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<   dS )@Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsr   r   r   r   r   Nr  r=   r>   r?   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardr  ,  r  r>   r  c                   b    e Zd ZU ee         ed<   	 eed                  ed<   	 ee         ed<   dS )r  r   r   r   r   Nr  r=   r>   r?   AModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionszNSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptionsL  r  r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )KSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceWSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   r   Nr  r=   r>   r?   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  \  r  r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )r  eSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   r7   Nr  r=   r>   r?   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzWSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferj  r  r>   r  c                       e Zd ZU eed<   dS )r  r   Nr  r=   r>   r?   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzeSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferx  r  r>   r  c                       e Zd ZdS )CSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r=   r>   r?   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir    r  r>   r  c                       e Zd ZdS )ESubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr   r=   r>   r?   8ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr    r  r>   r  c                   J    e Zd ZU ed         ed<   	 eed                  ed<   dS )ISubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount]Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   r   r   Nr  r=   r>   r?   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr    r  r>   r  c                       e Zd ZU ed         ed<   	 eeed                           ed<   	 eeed                           ed<   dS )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<   dS )r  r   r   Nr  r=   r>   r?   WModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszdSubscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  r  r>   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )3Subscription.ModifyParamsPendingInvoiceItemIntervalr  r  r  Nr  r=   r>   r?   &ModifyParamsPendingInvoiceItemIntervalr    r  r>   r  c                   2    e Zd ZU ee         ed<   	 eed<   dS )%Subscription.ModifyParamsTransferDatar  r  Nr  r=   r>   r?   ModifyParamsTransferDatar    r  r>   r  c                       e Zd ZU ded<   dS )rE  1Subscription.ModifyParamsTrialSettingsEndBehaviorr*  Nr  r=   r>   r?   ModifyParamsTrialSettingsz&Subscription.ModifyParamsTrialSettings  r
  r>   r  c                   &    e Zd ZU ed         ed<   dS )r  r$  r(  Nr   r=   r>   r?   $ModifyParamsTrialSettingsEndBehaviorz1Subscription.ModifyParamsTrialSettingsEndBehavior  r  r>   r  c                       e Zd ZU eed                  ed<   	 eee                  ed<   	 eed                  ed<   	 ee         ed<   dS )Subscription.ResumeParamsr<  r  r0  rg  rk  rD  N)	r9   r:   r;   r   r   r<   r   re   rN   r=   r>   r?   ResumeParamsr    s         )'2D*EFFFF	 DI&&&&	 (AB
 	
 	
 	
	 $C((((	 	r>   r  c                   2    e Zd ZU eee                  ed<   dS )Subscription.RetrieveParamsr0  N)r9   r:   r;   r   r   re   r<   r=   r>   r?   RetrieveParamsr    s+         DI&&&&	 	r>   r  c                   n    e Zd ZU eee                  ed<   	 ee         ed<   	 ee         ed<   	 eed<   dS )Subscription.SearchParamsr0  r  pagequeryN)r9   r:   r;   r   r   re   r<   rN   r=   r>   r?   SearchParamsr    sk         DI&&&&	 3	 #	 


	 	r>   r  r   applicationr?  rA  r  rD  rE  rF  rG  canceled_atr/  rH  rK  r  rM  r  r  r!   rN  rO  r$   rP  )r   r   CardResourcer&   rQ  r*   rS  r   r"   r~  rT  ended_atrd  rV  r'   rX  r#   latest_invoicelivemoderZ  !next_pending_invoice_item_invoiceobjectr   r\  rB  rd  re  r%   pending_setup_intentpending_updater(   schedule
start_date)r  r  r  r  r   r!  r"  r#  r$  r+   r%  rm  r  rq  trial_startsubscription_exposed_idparamsr-  returnc                     t          d|                     dd                    t          |                    |                    S )  
        Cancels a customer's subscription immediately. The customer will not be charged again for the subscription.

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

        By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
        r-   delete+/v1/subscriptions/{subscription_exposed_id}r  r  r   _static_requestformatr   clsr  r  s      r?   _cls_cancelzSubscription._cls_cancel  sb     =DD,7/- - E  
     
 
 	
r>   c                     dS r  Nr=   r  r  s     r?   r%  zSubscription.cancel  s	     	r>   c                     dS r  r=   r6   r  s     r?   r%  zSubscription.cancel  s	     	r>   r  c                     t          d|                     dd                    t          |                     d                              |                    S )r  r-   r  r  rd  r  r  r   _requestr  r   getr  s     r?   r%  zSubscription.cancel	  se     MM=DD,7,G,G E      	
 	
 		
r>   c                    K   t          d|                     dd                    t          |                    |           d{V           S )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  
  ,        
 
 	
r>   c                 
   K   dS r  r=   r  s     r?   cancel_asynczSubscription.cancel_async6	  s       	r>   c                 
   K   dS r  r=   r  s     r?   r  zSubscription.cancel_asyncE	  s       	r>   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )r  r-   r  r  rd  r  r  Nr   _request_asyncr  r   r  r  s     r?   r  zSubscription.cancel_asyncR	  s       %%=DD,7,G,G E    &        	
 	
 		
r>   r;  c                 r    t          d|                     d|                                 |                    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.createh	  sB         
 
 	
r>   c                    K   t          d|                     d|                                 |           d{V           S )r  r-   r  r  N)r   r  r  r  s     r?   create_asynczSubscription.create_async~	  sd       ++ ,        
 
 	
r>   r  c                     t          d|                     dd                    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	  sb     FMM,7/- - N  
     
 
 	
r>   c                     dS r  Nr=   r  s     r?   delete_discountzSubscription.delete_discount	  s	     	r>   c                     dS r  r=   r  s     r?   r  zSubscription.delete_discount	  	     	r>   r  c                     t          d|                     dd                    t          |                     d                              |                    S )r  r"   r  r  rd  r  r  r  r  s     r?   r  zSubscription.delete_discount	  se     MMFMM,7,G,G N      	
 	
 		
r>   c                    K   t          d|                     dd                    t          |                    |           d{V           S )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   dS r  r=   r  s     r?   delete_discount_asyncz"Subscription.delete_discount_async	  s       	r>   c                 
   K   dS r  r=   r  s     r?   r  z"Subscription.delete_discount_async	         	r>   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )r  r"   r  r  rd  r  r  Nr  r  s     r?   r  z"Subscription.delete_discount_async	  s       %%FMM,7,G,G N    &        	
 	
 		
r>   r  c                     |                      d|                                 |          }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
  sp     $$MMOO % 
 

 &*-- 	7<<(*  
 r>   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )r   r  r  Nr  )r  r  r  r   r  r7   r9   r  s      r?   
list_asynczSubscription.list_async 
  s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r>   r9  c                     |                                  dt          |          }t          d|                     d||                    S )g
  
        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/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  rd  r  urls       r?   modifyzSubscription.modify4
  sX    6 +b///:    
 
 	
r>   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r
  r  r-   r  r  N)r  r   r   r  r  s       r?   modify_asynczSubscription.modify_asyncY
  sz      6 +b///:++ ,        
 
 	
r>   r  c                     t          d|                     dd                    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~
  s]     9@@!,\!:!: A       	
 	
 		
r>   c                     dS r  Nr=   r.   r  s     r?   resumezSubscription.resume
  s	     	r>   c                     dS r  r=   r  s     r?   r  zSubscription.resume
  r  r>   r  c                     t          d|                     dd                    t          |                     d                              |                    S )r  r-   r  r  rd  r  r  r  r  s     r?   r  zSubscription.resume
  se     MM9@@!,TXXd^^!<!< A      	
 	
 		
r>   c                    K   t          d|                     dd                    t          |                    |           d{V           S )r  r-   r  r  r  r  Nr  r  s      r?   _cls_resume_asynczSubscription._cls_resume_async
  s       ++9@@!,\!:!: A    ,        	
 	
 		
r>   c                 
   K   dS r  r=   r  s     r?   resume_asynczSubscription.resume_async
  s       	r>   c                 
   K   dS r  r=   r  s     r?   r   zSubscription.resume_async
  r  r>   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )r  r-   r  r  rd  r  r  Nr  r  s     r?   r   zSubscription.resume_async
  s       %%9@@!,TXXd^^!<!< A    &        	
 	
 		
r>   r  c                 @     | |fi |}|                                  |S )?
        Retrieves the subscription with the given ID.
        )refreshr  rd  r  instances       r?   retrievezSubscription.retrieve
  s2     3r$$V$$r>   c                 P   K    | |fi |}|                                  d{V  |S )r$  N)refresh_asyncr&  s       r?   retrieve_asynczSubscription.retrieve_async
  sH       3r$$V$$$$&&&&&&&&&r>   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                 0   K    | j         |ddi| d{V S )r.  r/  r0  N)_search_asyncr2  s      r?   search_asynczSubscription.search_async  sP       'S&48
1
<B
 
 
 
 
 
 
 
 	
r>   c                 @     | j         |i |                                S N)r4  auto_paging_iterr2  s      r?   search_auto_paging_iterz$Subscription.search_auto_paging_iter  s'     sz4*6**;;===r>   c                 P   K    | j         |i | d {V                                 S r9  )r7  r:  r2  s      r?   search_auto_paging_iter_asyncz*Subscription.search_auto_paging_iter_async$  s>       'c&777777777IIKKKr>   )rA  rD  rE  r/  rV  rB  rd  re  r  rm  rq  N)r9   r:   r;   __doc__r/   r   r   r<   r   rF   rO   rT   rf   rn   rw   r  r  r  r  r+  r   r3  r   r8  rr  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(  r0  r4  r7  rF  rJ  rL  rN  rQ  rS  rV  rX  r[  r^  r`  rf  ri  rl  ro  rq  rt  rw  ry  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r   r  rN   rD   re   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	   r4  r7  r   r;  r   r=  rE   r=   r>   r?   r-   r-   3   s          6DK'.12CCC6 6 6 6 6| 6 6 6*    <   ,    L       l   :0 0 0 0 0, 0 0 0$    ,   _N _N _N _N _N, _N _N _NB    \          ,    |   ; ; ; ; ; ; ; ;    ~   (
 
 
 
 
) 
 
 
o o o o o~ o 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   @                                    9                4                 9       I       y       ~   E E E E E^ E E EN           I   $    Y   $    y   $g g g g g~ g g gR    Y   4    Y       i   0
 
 
 
 
9 
 
 
    I       	   
 
 
 
 
) 
 
 
    y       i       I   0 0 0 0 09 0 0 0d    I       9       I   8    Y       i       i   (* * * * *) * * *X    9             I       i   @                                    9                4                 9       I       y       ~   (           ~   $ /-89999 &e_,,,   "**B!CCCC !!23333 }  # ##67777 EFFFF LLL MMM   j)))) SM!!! %__%EFFFF DE	
   
  Y0000 # z"""" OJ/0000 sm 	GGG &%%%()))) _Y78888 NNN 38n (0}444 N#### ?956666 //// //// $,,F#GGGG #?=#ABBBB ]++++ '=>???? OOO 		 	 	 	 56666 L)))) } ]++++ # 
!$
 45
 
	
 
 
 [
2 !$45 
   \ X 
:;
	
 
 
 X
 -((
:;
	
 
 
 )(
* 
!$
 45
 
	
 
 
 [
2 !$45 
   \ X 
:;
	
 
 
 X
 -..
:;
	
 
 
 /.
* 
9:
	
 
 
 [
* 
9:
	
 
 
 [
* 
!$
 <=
 
	
 
 
 [
* !$<= 
   \ X BC	   X 011
BC
	
 
 
 21
" 
!$
 <=
 
	
 
 
 [
* !$<= 
   \ X BC	   X 677
BC
	
 
 
 87
" 78	N	#   [& 78	N	#   [& "
"
 &'B C"
	"
 "
 "
 ["
H "
"
 &'B C"
	"
 "
 "
 ["
H 

*01L*M
	
 
 
 [
" %+,G%H	   \ X :;	   X -((
:;
	
 
 
 )(
" 

*01L*M
	
 
 
 [
" %+,G%H	   \ X :;	   X -..
:;
	
 
 
 /.
"  &'D E	   [  &'D E	   [ 
$%@A
	N	+
 
 
 [
 
$%@A
	N	+
 
 
 [
 >$%@A>	.	!> > > [>
 L$%@AL	~	&L 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>r]     s   B A A A A A ? ? ? ? ? ? 4 4 4 4 4 4 * * * * * * = = = = = = 2 2 2 2 2 2 ; ; ; ; ; ; A A A A A A . . . . . . A A A A A A : : : : : : : :
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
               :''''''//////000000111111))))))))))))''''''444444000000%%%%%%::::::BBBBBB$$$$$$((((((999999C, C, C, C, C,.)('.).)C, C, C, C, C,r>   