
    +h?                    D   d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d dlmZmZmZmZmZmZ d d	lmZmZmZmZmZ erBd 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/m0Z1 d dl2m3Z3  G d ded   ed         Z4y)    )util)CreateableAPIResourceListableAPIResource)ExpandableField)
ListObject)RequestOptions)StripeObject)class_method_variant)ClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Customer)Discount)Invoice)LineItem)PaymentIntent)PaymentLink)SetupIntent)ShippingRate)Subscription)TaxId)TaxRatec                   N   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er G d( d)e      Z G d* d+e      Z G d, d-e      Z  G d. d/e      Z! G d0 d1e      Z" G d2 d3e      Z# G d4 d5e      Z$ G d6 d7e      Z% G d8 d9e      Z& G d: d;e      Z' G d< d=e      Z( G d> d?e      Z) G d@ dAe      Z* G dB dCe      Z+ G dD dEe      Z, G dF dGe      Z- G dH dIe      Z. G dJ dKe      Z/ G dL dMe      Z0 G dN dOe      Z1 G dP dQe      Z2 G dR dSe      Z3 G dT dUe      Z4 G dV dWe      Z5 G dX dYe      Z6 G dZ d[e      Z7 G d\ d]e      Z8 G d^ d_e      Z9 G d` dae      Z: G db dce      Z; G dd dee      Z< G df dge      Z= G dh die      Z> G dj dke      Z? G dl dme      Z@ G dn doe      ZA G dp dqe      ZB G dr dse      ZC G dt due      ZD G dv dwe      ZE G dx dye      ZF G dz d{e      ZG G d| d}e      ZH G d~ de      ZI G d de      ZJ G d de      ZK G d de      ZL G d de      ZM G d de      ZN G d de      ZO G d de      ZP G d de      ZQ G d de      ZR G d de      ZS G d de      ZT G d de      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      Zg G d de      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      Zrese	   ed<   	 eset   ed<   	 eseu   ed<   	 eseu   ed<   	 e
ed<   esed      ed<   	 esev   ed<   	 esev   ed<   	 esev   ed<   	 ese   ed<   	 ese   ed<   	 eued<   	 esev   ed<   	 ese   ed<   	 ewe   ed<   	 eed<   esexd      ed<   	 esed      ed<   	 ese   ed<   	 esev   ed<   	 eued<   	 eved<   	 esexd      ed<   	 ese   ed<   	 eseyd      ed<   	 eted<   	 esed      ed<   	 esezevevf      ed<   	 ed   ed<   	 ed   ed<   	 esexd      ed<   	 esexd      ed<   	 esed      ed<   	 ese   ed<   	 ese   ed<   	 ewev   ed<   	 ed   ed <   	 ese   ed<   esev   ed<   	 esed      ed<   	 esev   ed<   	 esexd      ed<   	 ese   ed<   	 ese   ed	<   	 ese   ed
<   	 ewe   ed<   	 esed      ed<   	 esed      ed<   	 esexd      ed<   	 esev   ed<   	 ese   ed<   ese   ed<   	 esed      ed<   	 esev   ed<   	 e{	 	 	 	 d2desev   desev   desev   desev   de|d   dd fd        Z}e{	 	 	 d3d!evdesev   desev   desev   de|d"   dd fd#       Z~ee	 	 	 d3d!evdesev   desev   desev   de|d"   dd fd$              Ze	 d4desev   de|d"   dd fd%       Z ed&      	 d4desev   de|d"   dd fd'       Ze{	 	 	 d3desev   desev   desev   de|d(   deyd    f
d)       Ze{	 	 	 d3d!evdesev   desev   desev   de|d*   deyd   fd+       Zee	 	 	 d3d!evdesev   desev   desev   de|d*   deyd   fd,              Ze	 d4desev   de|d*   deyd   fd-       Z ed.      	 d4desev   de|d*   deyd   fd/       Ze{devde|d0   dd fd1       Zi de	de
dededededededededededed	ed
edededeiZy(5  Sessiona>  
    A Checkout Session represents your customer's session as they pay for
    one-time purchases or subscriptions through [Checkout](https://stripe.com/docs/payments/checkout)
    or [Payment Links](https://stripe.com/docs/payments/payment-links). We recommend creating a
    new Session each time your customer attempts to pay.

    Once payment is successful, the Checkout Session will contain a reference
    to the [Customer](https://stripe.com/docs/api/customers), and either the successful
    [PaymentIntent](https://stripe.com/docs/api/payment_intents) or an active
    [Subscription](https://stripe.com/docs/api/subscriptions).

    You can create a Checkout Session on your server and redirect to its URL
    to begin Checkout.

    Related guide: [Checkout quickstart](https://stripe.com/docs/checkout/quickstart)
    zcheckout.sessionOBJECT_NAMEc                   >    e Zd ZU  G d de      Zee   ed<   	 deiZy)Session.AfterExpirationc                   H    e Zd ZU eed<   	 eed<   	 ee   ed<   	 ee   ed<   y) Session.AfterExpiration.Recoveryallow_promotion_codesenabled
expires_aturlN)__name__
__module____qualname__bool__annotations__r   intstr     X/var/www/html/venv/lib/python3.12/site-packages/stripe/api_resources/checkout/session.pyRecoveryr'   ;   s;    #'' M
 !% #r4   r6   recoveryN)r,   r-   r.   r	   r6   r   r0   _inner_class_typesr3   r4   r5   AfterExpirationr%   :   s-    	| 	( 8$$	 )(3r4   r9   c                   0    e Zd ZU eed<   	 eed      ed<   y)Session.AutomaticTaxr)   )completefailedrequires_location_inputsstatusN)r,   r-   r.   r/   r0   r   r   r3   r4   r5   AutomaticTaxr;   U   s)    	 DE
 	
	r4   r@   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)Session.Consent)opt_inopt_out
promotionsacceptedterms_of_serviceNr,   r-   r.   r   r   r0   r3   r4   r5   ConsentrB   a   s/    W%89::	 #7:#677	r4   rI   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)Session.ConsentCollection)autononerE   )rM   requiredrG   NrH   r3   r4   r5   ConsentCollectionrK   l   s/    W^455	
 #7+=#>??	r4   rO   c                   <    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   y)Session.CurrencyConversionamount_subtotalamount_totalfx_ratesource_currencyN)r,   r-   r.   r1   r0   r2   r3   r4   r5   CurrencyConversionrQ   x   s3    	 	 	 	r4   rV   c                       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ee   e	d	<   e
e	d
<   	 ee	d<   ee   e	d<   ee	d<   	 ee   e	d<   ed   e	d<   	 eeeedZy)Session.CustomFieldc                   P    e Zd ZU  G d de      Zee   ed<   	 ee   ed<   	 deiZ	y)Session.CustomField.Dropdownc                   $    e Zd ZU eed<   	 eed<   y)#Session.CustomField.Dropdown.OptionlabelvalueNr,   r-   r.   r2   r0   r3   r4   r5   Optionr\      s    
 
r4   r`   optionsr^   N)
r,   r-   r.   r	   r`   r   r0   r   r2   r8   r3   r4   r5   DropdownrZ      s=      &\! C=  #,V!4r4   rb   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)Session.CustomField.LabelcustomtypeN)r,   r-   r.   r   r2   r0   r   r3   r4   r5   Labelrd      s#    SM! (##r4   rg   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Session.CustomField.Numericmaximum_lengthminimum_lengthr^   Nr,   r-   r.   r   r1   r0   r2   r3   r4   r5   Numericri      3    $SM) %SM) C= r4   rm   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Session.CustomField.Textrj   rk   r^   Nrl   r3   r4   r5   Textrp      rn   r4   rq   dropdownkeyr]   numericoptionaltextrr   rt   rv   rf   )rr   r]   rt   rv   N)r,   r-   r.   r	   rb   rg   rm   rq   r   r0   r2   r/   r   r8   r3   r4   r5   CustomFieldrX      s    	5| 	5*	L 		l 		< 	 8$$	 '""	 tn344	 !	
r4   rx   c                       e Zd ZU  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
Z	y)Session.CustomTextc                       e Zd ZU eed<   y)"Session.CustomText.ShippingAddressmessageNr_   r3   r4   r5   ShippingAddressr|          Lr4   r~   c                       e Zd ZU eed<   y)Session.CustomText.Submitr}   Nr_   r3   r4   r5   Submitr      r   r4   r   c                       e Zd ZU eed<   y)+Session.CustomText.TermsOfServiceAcceptancer}   Nr_   r3   r4   r5   TermsOfServiceAcceptancer      r   r4   r   shipping_addresssubmitterms_of_service_acceptance)r   r   r   N)
r,   r-   r.   r	   r~   r   r   r   r0   r8   r3   r4   r5   
CustomTextrz      sp    	l 		\ 		| 	 #?33	   	 &..F%GG	 !0+C
r4   r   c                       e Zd ZU  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	d	      ed
<   	 ee
e      ed<   	 eedZy)Session.CustomerDetailsc                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)Session.CustomerDetails.Addresscitycountryline1line2postal_codestateNr,   r-   r.   r   r2   r0   r3   r4   r5   Addressr     f    3- c]" C=  C=  "#& C= r4   r   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)Session.CustomerDetails.TaxId)Cad_nrtae_trnar_cuitau_abnau_arnbg_uicbo_tinbr_cnpjbr_cpfca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstch_vatcl_tincn_tinco_nitcr_tindo_rcnec_ruceg_tines_cif
eu_oss_vateu_vatgb_vatge_vathk_brhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkr_brnli_uidmx_rfcmy_frpmy_itnmy_sstno_vatnz_gstpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsv_nitth_vattr_tintw_vatua_vatunknownus_einuy_rucve_rifvn_tinza_vatrf   r^   N)r,   r-   r.   r   r0   r   r2   r3   r4   r5   r   r     s.    BD DJ C= r4   r   addressemailnamephone)exemptrM   reverse
tax_exempttax_ids)r   r   N)r,   r-   r.   r	   r   r   r   r0   r2   r   r   r8   r3   r4   r5   CustomerDetailsr     s    	l 	4L	L L	\ '""	 }	 sm	 }	 W%@ABB	 $u+&&	 *1UCr4   r   c                   B    e Zd ZU  G d de      Zeed<   	 eed<   deiZy)Session.InvoiceCreationc                       e Zd ZU  G d de      Z G d de      Zeeed         e	d<   	 eee      e	d<   	 ee
   e	d<   	 ee
   e	d	<   	 eee
e
f      e	d
<   	 ee   e	d<   	 eedZy)#Session.InvoiceCreation.InvoiceDatac                   $    e Zd ZU eed<   	 eed<   y)/Session.InvoiceCreation.InvoiceData.CustomFieldr   r^   Nr_   r3   r4   r5   rx   r     s    	 
r4   rx   c                       e Zd ZU ee   ed<   y)4Session.InvoiceCreation.InvoiceData.RenderingOptionsamount_tax_displayNr   r3   r4   r5   RenderingOptionsr     s    $,SM1r4   r   TaxIdResourceaccount_tax_idscustom_fieldsdescriptionfootermetadatarendering_options)r   r   N)r,   r-   r.   r	   rx   r   r   r   r   r0   r2   r   r8   r3   r4   r5   InvoiceDatar     s    l <  &d??+K&LMM $D$566 "#& SM! tCH~..  ((899 "-%5"r4   r   r)   invoice_dataN)r,   r-   r.   r	   r   r/   r0   r8   r3   r4   r5   InvoiceCreationr     s.    ,	, ,	\ 	 "!,k:r4   r   c                   *    e Zd ZU eed<   	 ee   ed<   y))Session.PaymentMethodConfigurationDetailsidparentN)r,   r-   r.   r2   r0   r   r3   r4   r5   !PaymentMethodConfigurationDetailsr     s    	 	r4   r   c                      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
 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/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Zee   e d7<   ee   e d8<   ee   e d9<   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 dA<   ee   e dB<   ee   e dC<   ee   e dD<   ee   e dE<   ee   e dF<   ee   e dG<   ee   e dH<   ee   e dI<   ee   e dJ<   ee   e dK<   ee   e dL<   ee   e dM<   ee   e dN<   ee   e dO<   ee   e dP<   ee   e dQ<   i d7ed8ed9ed:ed;ed<e	d=e
d>ed?ed@edAedBedCedDedEedFedGeeeeeeeeeeedR
Z!yS)TSession.PaymentMethodOptionsc                       e Zd ZU  G d de      Zeed      ed<   	 ee   ed<   eed      ed<   	 eed      ed	<   	 deiZy
)&Session.PaymentMethodOptions.AcssDebitc                   ~    e Zd ZU ee   ed<   	 eeed         ed<   	 ee   ed<   	 eed      ed<   	 eed      ed<   y	)
5Session.PaymentMethodOptions.AcssDebit.MandateOptionscustom_mandate_url)invoicesubscriptiondefault_forinterval_description)combinedintervalsporadicpayment_schedule)businesspersonaltransaction_typeN)r,   r-   r.   r   r2   r0   r   r   r3   r4   r5   MandateOptionsr    st    $,SM1 &d73L+M&NOO '/sm3 #+>?#  #+73I+J"KKr4   r  )cadusdcurrencymandate_optionsrM   off_session
on_sessionsetup_future_usage)	automaticinstantmicrodepositsverification_methodN)	r,   r-   r.   r	   r  r   r   r0   r8   r3   r4   r5   	AcssDebitr    sw     0 w|455 &n55 (;<!  "*?@"  #4^!Dr4   r  c                   $    e Zd ZU eed      ed<   y)#Session.PaymentMethodOptions.AffirmrM   r  NrH   r3   r4   r5   Affirmr         ( 99r4   r   c                   $    e Zd ZU eed      ed<   y)-Session.PaymentMethodOptions.AfterpayClearpayrM   r  NrH   r3   r4   r5   AfterpayClearpayr#    r!  r4   r$  c                   $    e Zd ZU eed      ed<   y)#Session.PaymentMethodOptions.AlipayrM   r  NrH   r3   r4   r5   Alipayr&    r!  r4   r'  c                   $    e Zd ZU eed      ed<   y)(Session.PaymentMethodOptions.AuBecsDebitrM   r  NrH   r3   r4   r5   AuBecsDebitr)    r!  r4   r*  c                   $    e Zd ZU eed      ed<   y)&Session.PaymentMethodOptions.BacsDebitr  r  NrH   r3   r4   r5   	BacsDebitr,         (;<! r4   r-  c                   $    e Zd ZU eed      ed<   y)'Session.PaymentMethodOptions.BancontactrM   r  NrH   r3   r4   r5   
Bancontactr0  +  r!  r4   r1  c                   0    e Zd ZU eed<   	 eed      ed<   y)#Session.PaymentMethodOptions.Boletoexpires_after_daysr  r  Nr,   r-   r.   r1   r0   r   r   r3   r4   r5   Boletor3  5  s*     ## !);<! r4   r6  c                   x    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 ee   ed<   	 ee   ed<   	 deiZ	y)	!Session.PaymentMethodOptions.Cardc                       e Zd ZU ee   ed<   y).Session.PaymentMethodOptions.Card.Installmentsr)   N)r,   r-   r.   r   r/   r0   r3   r4   r5   Installmentsr:  F  s    !$'r4   r;  installmentsr  r   statement_descriptor_suffix_kana!statement_descriptor_suffix_kanjiN)
r,   r-   r.   r	   r;  r   r0   r   r2   r8   r3   r4   r5   Cardr8  E  se    |  #<00 (;<!  /7sm; 08}< #1,!?r4   r?  c                   $    e Zd ZU eed      ed<   y)$Session.PaymentMethodOptions.CashapprM   r  NrH   r3   r4   r5   CashapprA  a  r!  r4   rB  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),Session.PaymentMethodOptions.CustomerBalancec                   r    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)	9Session.PaymentMethodOptions.CustomerBalance.BankTransferc                       e Zd ZU ed   ed<   y)HSession.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)BEDEESFRIENLr   Nr,   r-   r.   r   r0   r3   r4   r5   EuBankTransferrH  m  s    $%GHHr4   rP  eu_bank_transfer)abaibansepa	sort_codespeiswiftzenginrequested_address_typesrQ  gb_bank_transferjp_bank_transfermx_bank_transferus_bank_transferrf   N)
r,   r-   r.   r	   rP  r   r0   r   r   r8   r3   r4   r5   BankTransferrF  l  sp    \  #+>"::)1&
* 
 ,  '9.%I"r4   r_  bank_transferfunding_typerM   r  N)	r,   r-   r.   r	   r_  r   r0   r   r8   r3   r4   r5   CustomerBalancerD  k  sV    &J| &JP $L11"7?#;<< !) 99 #2<!@r4   rb  c                   $    e Zd ZU eed      ed<   y) Session.PaymentMethodOptions.EpsrM   r  NrH   r3   r4   r5   Epsrd    r!  r4   re  c                   $    e Zd ZU eed      ed<   y) Session.PaymentMethodOptions.FpxrM   r  NrH   r3   r4   r5   Fpxrg    r!  r4   rh  c                   $    e Zd ZU eed      ed<   y)$Session.PaymentMethodOptions.GiropayrM   r  NrH   r3   r4   r5   Giropayrj    r!  r4   rk  c                   $    e Zd ZU eed      ed<   y)$Session.PaymentMethodOptions.GrabpayrM   r  NrH   r3   r4   r5   Grabpayrm    r!  r4   rn  c                   $    e Zd ZU eed      ed<   y)"Session.PaymentMethodOptions.IdealrM   r  NrH   r3   r4   r5   Idealrp    r!  r4   rq  c                   $    e Zd ZU eed      ed<   y)#Session.PaymentMethodOptions.Klarnar  r  NrH   r3   r4   r5   Klarnars    r.  r4   rt  c                   6    e Zd ZU ee   ed<   	 eed      ed<   y)$Session.PaymentMethodOptions.Konbinir4  rM   r  N)r,   r-   r.   r   r1   r0   r   r3   r4   r5   Konbinirv    s'     (- !) 99r4   rw  c                   $    e Zd ZU eed      ed<   y)!Session.PaymentMethodOptions.Link)rM   r  r  NrH   r3   r4   r5   Linkry    s     (1F)G HHr4   rz  c                   0    e Zd ZU eed<   	 eed      ed<   y)!Session.PaymentMethodOptions.Oxxor4  rM   r  Nr5  r3   r4   r5   Oxxor|    s#     ## !) 99r4   r}  c                   $    e Zd ZU eed      ed<   y) Session.PaymentMethodOptions.P24rM   r  NrH   r3   r4   r5   P24r    r!  r4   r  c                   $    e Zd ZU eed      ed<   y)#Session.PaymentMethodOptions.PaynowrM   r  NrH   r3   r4   r5   Paynowr    r!  r4   r  c                       e Zd ZU ee   ed<   y) Session.PaymentMethodOptions.Pixexpires_after_secondsN)r,   r-   r.   r   r1   r0   r3   r4   r5   Pixr    s    #+C=0r4   r  c                       e Zd Zy)'Session.PaymentMethodOptions.RevolutPayN)r,   r-   r.   r3   r4   r5   
RevolutPayr  !  s    r4   r  c                   $    e Zd ZU eed      ed<   y)&Session.PaymentMethodOptions.SepaDebitr  r  NrH   r3   r4   r5   	SepaDebitr  $  r.  r4   r  c                   $    e Zd ZU eed      ed<   y)#Session.PaymentMethodOptions.SofortrM   r  NrH   r3   r4   r5   Sofortr  0  r!  r4   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)	*Session.PaymentMethodOptions.UsBankAccountc                   Z    e Zd ZU eeed         ed<   	 eeed         ed<   	 ee   ed<   y)?Session.PaymentMethodOptions.UsBankAccount.FinancialConnections)balances	ownershippayment_methodtransactionspermissionsr  prefetch
return_urlN)r,   r-   r.   r   r   r   r0   r2   r3   r4   r5   FinancialConnectionsr  ;  sV    %,	 	 #4
(;#<== %SM)r4   r  financial_connectionsr  r  )r  r  r  N)	r,   r-   r.   r	   r  r   r0   r   r8   r3   r4   r5   UsBankAccountr  :  s_    | . $,,@#AA (;<!  "*'2H*I!JJ ()="r4   r  
acss_debitaffirmafterpay_clearpayalipayau_becs_debit
bacs_debit
bancontactboletocardcashappcustomer_balanceepsfpxgiropaygrabpayidealklarnakonbinilinkoxxop24paynowpixrevolut_pay
sepa_debitsofortus_bank_account)
r  r  r  r  r  r  r  r  r  r  N)"r,   r-   r.   r	   r  r   r$  r'  r*  r-  r1  r6  r?  rB  rb  re  rh  rk  rn  rq  rt  rw  rz  r}  r  r  r  r  r  r  r  r   r0   r8   r3   r4   r5   PaymentMethodOptionsr     si   .	E .	E`	\ 		| 		\ 		, 	
	 
		 		\ 	 	@< 	@8	l 	6	Al 6	Ap	, 		, 		l 		l 		L 	
	\ 
		l 		< 		< 		, 		\ 		, 		 	
	 
		\ 	)	L )	V Y''  #$455  ,,Y''Z((  tn'"""?33c]c]'""'""  '""tntnc]  c]j))Y''  !-00
)
f
  !1
 f	

 [
 )
 *
 f
 D
 w
 
 3
 3
 w
 w
  U!
" f#
$ %#,7
r4   r  c                       e Zd ZU eed<   y)Session.PhoneNumberCollectionr)   Nr,   r-   r.   r/   r0   r3   r4   r5   PhoneNumberCollectionr        	r4   r  c                   $    e Zd ZU eed      ed<   y)!Session.ShippingAddressCollectionACADAEAFAGAIALAMAOAQARATAUAWAXAZBABBBDrI  BFBGBHBIBJBLBMBNBOBQBRBSBTBVBWBYBZCACDCFCGCHCICKCLCMCNCOCRCVCWCYCZrJ  DJDKDMDODZECEEEGEHERrK  ETFIFJFKFOrL  GAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHNHRHTHUIDrM  ILIMINIOIQISITJEJMJOJPKEKGKHKIKMKNKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMKMLMMMNMOMQMRMSMTMUMVMWMXMYMZNANCNENGNIrN  NONPNRNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPYQARERORSRURWSASBSCSESGSHSISJSKSLSMSNSOSRSSSTSVSXSZTATCTDTFTGTHTJTKTLTMTNTOTRTTTVTWTZUAUGUSUYUZVAVCVEVGVNVUWFWSXKYEYTZAZMZWZZallowed_countriesNr,   r-   r.   r   r   r0   r3   r4   r5   ShippingAddressCollectionr    s&    lnp
 p	
b	r4   r  c                       e Zd ZU  G d de      Zeed<   	 eed<   	 eed<   	 eed      ed<   	 ee	e      ed<   	 deiZ
y	)
Session.ShippingCostc                   N    e Zd ZU eed<   	 ded<   	 eed      ed<   	 ee   ed<   y)Session.ShippingCost.Taxamountr    ratecustomer_exemptnot_collectingnot_subject_to_taxnot_supportedportion_product_exemptportion_reduced_ratedportion_standard_ratedproduct_exemptproduct_exempt_holidayproportionally_ratedreduced_ratedreverse_chargestandard_ratedtaxable_basis_reduced
zero_ratedtaxability_reasontaxable_amountNr5  r3   r4   r5   Taxr    sJ    K O
  ("  & %SM)r4   r  rR   
amount_taxrS   r   shipping_ratetaxesN)r,   r-   r.   r	   r  r1   r0   r   r   r   r8   r3   r4   r5   ShippingCostr    sn    $	, $	L 	 	 	   ?@@	 S	""	 &s^r4   r  c                       e Zd ZU  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<   	 deiZy)	Session.ShippingDetailsc                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)Session.ShippingDetails.Addressr   r   r   r   r   r   Nr   r3   r4   r5   r   r    r   r4   r   r   carrierr   r   tracking_numberN)	r,   r-   r.   r	   r   r   r0   r2   r8   r3   r4   r5   ShippingDetailsr    sj    	l 	4 '""#	 sm	 }	 "#&	 (1r4   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)Session.ShippingOptionshipping_amountr   r  N)r,   r-   r.   r1   r0   r   r3   r4   r5   ShippingOptionr    s    	 '~66	r4   r  c                       e Zd ZU eed<   y)Session.TaxIdCollectionr)   Nr  r3   r4   r5   TaxIdCollectionr    r  r4   r  c                   f    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed<   	 ee   ed<   deiZy)Session.TotalDetailsc                   h    e Zd ZU  G d de      Z G d de      Zee   ed<   	 ee   ed<   	 eedZy)	Session.TotalDetails.Breakdownc                   $    e Zd ZU eed<   	 ded<   y)'Session.TotalDetails.Breakdown.Discountr  DiscountResourcediscountN)r,   r-   r.   r1   r0   r3   r4   r5   r   r    s     -,r4   r   c                   N    e Zd ZU eed<   	 ded<   	 eed      ed<   	 ee   ed<   y)"Session.TotalDetails.Breakdown.Taxr  r    r  r  r  r  Nr5  r3   r4   r5   r  r  %  sJ      
 $,&$ & !)-r4   r  	discountsr  )r  r  N)	r,   r-   r.   r	   r   r  r   r0   r8   r3   r4   r5   	Breakdownr    sJ    < $l $L H~% 9 08#!Fr4   r  amount_discountamount_shippingr  	breakdownN)	r,   r-   r.   r	   r  r1   r0   r   r8   r3   r4   r5   TotalDetailsr    sS    <	G <	G| 	 "#&	 	 I&&)95r4   r  c                      e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed	   ed<   	 ed   ed<   	 ed	   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed<   	 ed   ed<   	 ed	   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed <   	 ed!   ed"<   	 ed#   ed$<   	 ed%   ed&<   	 ed'   ed(<   	 ed)   ed*<   	 ed   ed+<   	 ed	   ed,<   	 ed-   ed.<   	 ed/   ed0<   	 ed1   ed2<   	 ed3   ed4<   	 ed	   ed5<   	 ed6   ed7<   	 ed8   ed9<   	 ed:   ed;<   	 ed<   ed=<   	 ed>   ed?<   	 ed	   ed@<   	 edA   edB<   	 edC   edD<   yE)FSession.CreateParams#Session.CreateParamsAfterExpirationafter_expirationr/   r(    Session.CreateParamsAutomaticTaxautomatic_taxzLiteral['auto', 'required']billing_address_collectionr2   
cancel_urlclient_reference_id%Session.CreateParamsConsentCollectionconsent_collectionr  z%List[Session.CreateParamsCustomField]r   Session.CreateParamsCustomTextcustom_textcustomerz Literal['always', 'if_required']customer_creationcustomer_email"Session.CreateParamsCustomerUpdatecustomer_updatez"List[Session.CreateParamsDiscount]r  	List[str]expandr1   r*   #Session.CreateParamsInvoiceCreationinvoice_creationz"List[Session.CreateParamsLineItem]
line_itemsa  Literal['auto', 'bg', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es', 'es-419', 'et', 'fi', 'fil', 'fr', 'fr-CA', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lt', 'lv', 'ms', 'mt', 'nb', 'nl', 'pl', 'pt', 'pt-BR', 'ro', 'ru', 'sk', 'sl', 'sv', 'th', 'tr', 'vi', 'zh', 'zh-HK', 'zh-TW']localeDict[str, str]r   z+Literal['payment', 'setup', 'subscription']mode%Session.CreateParamsPaymentIntentDatapayment_intent_datapayment_method_collectionpayment_method_configuration(Session.CreateParamsPaymentMethodOptionspayment_method_optionsaz  List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'revolut_pay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay', 'zip']]payment_method_types)Session.CreateParamsPhoneNumberCollectionphone_number_collectionz)Literal['always', 'if_required', 'never']redirect_on_completionr  #Session.CreateParamsSetupIntentDatasetup_intent_data-Session.CreateParamsShippingAddressCollectionshipping_address_collectionz(List[Session.CreateParamsShippingOption]shipping_optionsz(Literal['auto', 'book', 'donate', 'pay']submit_type$Session.CreateParamsSubscriptionDatasubscription_datasuccess_url#Session.CreateParamsTaxIdCollectiontax_id_collectionzLiteral['embedded', 'hosted']ui_modeNr,   r-   r.   r   r0   r3   r4   r5   CreateParamsr  f  s   )5  $/v#66 ''IJJ )4-)  $E** "-U!33
 !,7!  "%(( ''NOO %%EFF "%((  ++MNN
 (.. ))MNN ##GHH  ,, $E** *5  $$HII   f  ""233 KLL "-7"  (32(  +6e*<< %0:%  #. M#  &1;&  %0;%  $E**
  +5   *5?*  *:  %:   +6   %U++  +5   !!@AAr4   r  c                       e Zd ZU eed<   y)r  r)   Nr  r3   r4   r5   CreateParamsTaxIdCollectionz#Session.CreateParamsTaxIdCollectionY      Mr4   r  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)r  floatapplication_fee_percentr1   billing_cycle_anchorr  default_tax_ratesr2   r   r   r   on_behalf_ofz$Literal['create_prorations', 'none']proration_behavior0Session.CreateParamsSubscriptionDataTransferDatatransfer_data	trial_endtrial_period_days1Session.CreateParamsSubscriptionDataTrialSettingstrial_settingsNr  r3   r4   r5   CreateParamsSubscriptionDataz$Session.CreateParamsSubscriptionData_  s    %0%99 #.e"44  +;77
 %U++
 ""233 &e,, !,6!  'B  #5))
  +511 (C r4   r*  c                       e Zd ZU ded<   y)r(  <Session.CreateParamsSubscriptionDataTrialSettingsEndBehaviorend_behaviorN)r,   r-   r.   r0   r3   r4   r5   )CreateParamsSubscriptionDataTrialSettingsz1Session.CreateParamsSubscriptionDataTrialSettings  s    XXr4   r.  c                       e Zd ZU ed   ed<   y)r,  )cancelcreate_invoicepausemissing_payment_methodNrO  r3   r4   r5   4CreateParamsSubscriptionDataTrialSettingsEndBehaviorz<Session.CreateParamsSubscriptionDataTrialSettingsEndBehavior  s    $+3% r4   r4  c                   *    e Zd ZU ed   ed<   	 eed<   y)r$  r  amount_percentdestinationNr,   r-   r.   r   r0   r2   r3   r4   r5   (CreateParamsSubscriptionDataTransferDataz0Session.CreateParamsSubscriptionDataTransferData  s    '00 r4   r9  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)"Session.CreateParamsShippingOptionr2   r  2Session.CreateParamsShippingOptionShippingRateDatashipping_rate_dataNr  r3   r4   r5   CreateParamsShippingOptionr;    s)    &u-- !,D! r4   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d<   	 ed   ed<   y)r<  BSession.CreateParamsShippingOptionShippingRateDataDeliveryEstimatedelivery_estimatedisplay_name=Session.CreateParamsShippingOptionShippingRateDataFixedAmountfixed_amountr   r   0Literal['exclusive', 'inclusive', 'unspecified']tax_behaviorr2   tax_codezLiteral['fixed_amount']rf   Nr8  r3   r4   r5   *CreateParamsShippingOptionShippingRateDataz2Session.CreateParamsShippingOptionShippingRateData  s    *T    &O  ""233 &B  "%(( 788r4   rH  c                   6    e Zd ZU eed<   	 eed<   	 ed   ed<   y)rC  r  r  zWDict[str, Session.CreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions]currency_optionsN)r,   r-   r.   r1   r0   r2   r   r3   r4   r5   5CreateParamsShippingOptionShippingRateDataFixedAmountz=Session.CreateParamsShippingOptionShippingRateDataFixedAmount  s/    K M *i r4   rK  c                   *    e Zd ZU eed<   	 ed   ed<   y)LSession.CreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptionsr  rE  rF  N)r,   r-   r.   r1   r0   r   r3   r4   r5   DCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptionsrM    s%     K &B r4   rN  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r@  ISession.CreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximummaximumISession.CreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimumminimumNr  r3   r4   r5   :CreateParamsShippingOptionShippingRateDataDeliveryEstimatezBSession.CreateParamsShippingOptionShippingRateDataDeliveryEstimate   s0     ![  ![ r4   rT  c                   *    e Zd ZU ed   ed<   	 eed<   y)rR  business_daydayhourmonthweekunitr^   Nr,   r-   r.   r   r0   r1   r3   r4   r5   ACreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimumzISession.CreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum  !     HII Jr4   r^  c                   *    e Zd ZU ed   ed<   	 eed<   y)rP  rV  r\  r^   Nr]  r3   r4   r5   ACreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximumzISession.CreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum  r_  r4   ra  c                   $    e Zd ZU eed      ed<   y)r  r  r  Nr  r3   r4   r5   %CreateParamsShippingAddressCollectionz-Session.CreateParamsShippingAddressCollection(  s&    #lnp  pbr4   rc  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r2   r   r   r   r"  Nr  r3   r4   r5   CreateParamsSetupIntentDataz#Session.CreateParamsSetupIntentData  s7    $U++ ""233 &e,,r4   re  c                       e Zd ZU eed<   y)r	  r)   Nr  r3   r4   r5   !CreateParamsPhoneNumberCollectionz)Session.CreateParamsPhoneNumberCollection-  r  r4   rg  c                      e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed <   	 ed!   ed"<   	 ed#   ed$<   	 ed%   ed&<   	 ed'   ed(<   	 ed)   ed*<   	 ed+   ed,<   	 ed-   ed.<   	 ed/   ed0<   	 ed1   ed2<   	 ed3   ed4<   	 ed5   ed6<   	 ed7   ed8<   	 ed9   ed:<   y;)<r  1Session.CreateParamsPaymentMethodOptionsAcssDebitr  .Session.CreateParamsPaymentMethodOptionsAffirmr  8Session.CreateParamsPaymentMethodOptionsAfterpayClearpayr  .Session.CreateParamsPaymentMethodOptionsAlipayr  3Session.CreateParamsPaymentMethodOptionsAuBecsDebitr  1Session.CreateParamsPaymentMethodOptionsBacsDebitr  2Session.CreateParamsPaymentMethodOptionsBancontactr  .Session.CreateParamsPaymentMethodOptionsBoletor  ,Session.CreateParamsPaymentMethodOptionsCardr  /Session.CreateParamsPaymentMethodOptionsCashappr  7Session.CreateParamsPaymentMethodOptionsCustomerBalancer  +Session.CreateParamsPaymentMethodOptionsEpsr  +Session.CreateParamsPaymentMethodOptionsFpxr  /Session.CreateParamsPaymentMethodOptionsGiropayr  /Session.CreateParamsPaymentMethodOptionsGrabpayr  -Session.CreateParamsPaymentMethodOptionsIdealr  .Session.CreateParamsPaymentMethodOptionsKlarnar  /Session.CreateParamsPaymentMethodOptionsKonbinir  ,Session.CreateParamsPaymentMethodOptionsLinkr  ,Session.CreateParamsPaymentMethodOptionsOxxor  +Session.CreateParamsPaymentMethodOptionsP24r  .Session.CreateParamsPaymentMethodOptionsPaynowr  .Session.CreateParamsPaymentMethodOptionsPaypalpaypal+Session.CreateParamsPaymentMethodOptionsPixr  2Session.CreateParamsPaymentMethodOptionsRevolutPayr  1Session.CreateParamsPaymentMethodOptionsSepaDebitr  .Session.CreateParamsPaymentMethodOptionsSofortr  5Session.CreateParamsPaymentMethodOptionsUsBankAccountr  1Session.CreateParamsPaymentMethodOptionsWechatPay
wechat_payNr  r3   r4   r5    CreateParamsPaymentMethodOptionsz(Session.CreateParamsPaymentMethodOptions3  s{   #C   @   +J    @  'E  $C  $D   @  LMM !A  *I  JKK JKK !A  !A  NOO  @  !A  LMM LMM JKK  @   @  JKK %D  $C   @  )G  $C r4   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r2   app_id)androidioswebclientLiteral['none']r  Nr,   r-   r.   r   r0   r   r3   r4   r5   )CreateParamsPaymentMethodOptionsWechatPayz1Session.CreateParamsPaymentMethodOptionsWechatPay  s8    && 344 !,,= >>r4   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  ISession.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  ,Literal['none', 'off_session', 'on_session']r  zLiteral['automatic', 'instant']r  Nr  r3   r4   r5   -CreateParamsPaymentMethodOptionsUsBankAccountz5Session.CreateParamsPaymentMethodOptionsUsBankAccount  sA    #.[$  !,>!  "--N!OOr4   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  zHList[Literal['balances', 'ownership', 'payment_method', 'transactions']]r  zList[Literal['balances']]r  Nr  r3   r4   r5   ACreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionszISession.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections  s,     %Z  ""=>>r4   r  c                       e Zd ZU ed   ed<   y)r  r  r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsSofortz.Session.CreateParamsPaymentMethodOptionsSofort		       +,= >>r4   r  c                       e Zd ZU ed   ed<   y)r  r  r  Nr  r3   r4   r5   )CreateParamsPaymentMethodOptionsSepaDebitz1Session.CreateParamsPaymentMethodOptionsSepaDebit	       +>! r4   r  c                       e Zd ZU ed   ed<   y)r  Literal['none', 'off_session']r  Nr  r3   r4   r5   *CreateParamsPaymentMethodOptionsRevolutPayz2Session.CreateParamsPaymentMethodOptionsRevolutPay	       +,L MMr4   r  c                       e Zd ZU ed   ed<   y)r  r1   r  Nr  r3   r4   r5   #CreateParamsPaymentMethodOptionsPixz+Session.CreateParamsPaymentMethodOptionsPix)	  s    #.u#55r4   r  c                   f    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   y
)r  zLiteral['']|Literal['manual']capture_methodzLiteral['cs-CZ', 'da-DK', 'de-AT', 'de-DE', 'de-LU', 'el-GR', 'en-GB', 'en-US', 'es-ES', 'fi-FI', 'fr-BE', 'fr-FR', 'fr-LU', 'hu-HU', 'it-IT', 'nl-BE', 'nl-NL', 'pl-PL', 'pt-PT', 'sk-SK', 'sv-SE']preferred_localer2   	referencerisk_correlation_idz*Literal['']|Literal['none', 'off_session']r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsPaypalz.Session.CreateParamsPaymentMethodOptionsPaypal/	  sh    '(GHH * W  #5)) "-U!33 !,<! r4   r  c                       e Zd ZU ed   ed<   y)r~  r  r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsPaynowz.Session.CreateParamsPaymentMethodOptionsPaynowO	  r  r4   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r}  r  r  r/   tos_shown_and_acceptedNr  r3   r4   r5   #CreateParamsPaymentMethodOptionsP24z+Session.CreateParamsPaymentMethodOptionsP24Y	  s%     +,= >> %0$77r4   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r|  r1   r4  r  r  Nr  r3   r4   r5   $CreateParamsPaymentMethodOptionsOxxoz,Session.CreateParamsPaymentMethodOptionsOxxog	  %     +E 22 !,,= >>r4   r  c                       e Zd ZU ed   ed<   y)r{  r  r  Nr  r3   r4   r5   $CreateParamsPaymentMethodOptionsLinkz,Session.CreateParamsPaymentMethodOptionsLinku	  r  r4   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rz  r1   r4  r  r  Nr  r3   r4   r5   'CreateParamsPaymentMethodOptionsKonbiniz/Session.CreateParamsPaymentMethodOptionsKonbini	  r  r4   r  c                       e Zd ZU ed   ed<   y)ry  r  r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsKlarnaz.Session.CreateParamsPaymentMethodOptionsKlarna	  r  r4   r  c                       e Zd ZU ed   ed<   y)rx  r  r  Nr  r3   r4   r5   %CreateParamsPaymentMethodOptionsIdealz-Session.CreateParamsPaymentMethodOptionsIdeal	  r  r4   r  c                       e Zd ZU ed   ed<   y)rw  r  r  Nr  r3   r4   r5   'CreateParamsPaymentMethodOptionsGrabpayz/Session.CreateParamsPaymentMethodOptionsGrabpay	  r  r4   r  c                       e Zd ZU ed   ed<   y)rv  r  r  Nr  r3   r4   r5   'CreateParamsPaymentMethodOptionsGiropayz/Session.CreateParamsPaymentMethodOptionsGiropay	  r  r4   r  c                       e Zd ZU ed   ed<   y)ru  r  r  Nr  r3   r4   r5   #CreateParamsPaymentMethodOptionsFpxz+Session.CreateParamsPaymentMethodOptionsFpx	  r  r4   r  c                       e Zd ZU ed   ed<   y)rt  r  r  Nr  r3   r4   r5   #CreateParamsPaymentMethodOptionsEpsz+Session.CreateParamsPaymentMethodOptionsEps	  r  r4   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)rs  CSession.CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferr`  zLiteral['bank_transfer']ra  r  r  Nr  r3   r4   r5   /CreateParamsPaymentMethodOptionsCustomerBalancez7Session.CreateParamsPaymentMethodOptionsCustomerBalance	  s=    &U  &&@AA !,,= >>r4   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  QSession.CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferrQ  zLList[Literal['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin']]rY  rZ  rf   Nr  r3   r4   r5   ;CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferzCSession.CreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer	  sI     *c  &1^& 
 $ r4   r  c                       e Zd ZU eed<   y)r  r   Nr_   r3   r4   r5   ICreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzQSession.CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer	  s     Lr4   r  c                       e Zd ZU ed   ed<   y)rr  r  r  Nr  r3   r4   r5   'CreateParamsPaymentMethodOptionsCashappz/Session.CreateParamsPaymentMethodOptionsCashapp
  r  r4   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)	rq  8Session.CreateParamsPaymentMethodOptionsCardInstallmentsr<  $Literal['off_session', 'on_session']r  r2   r=  r>  Nr  r3   r4   r5   $CreateParamsPaymentMethodOptionsCardz,Session.CreateParamsPaymentMethodOptionsCard
  sR    %J  !,6!  /:%.@@ 0;5/AAr4   r  c                       e Zd ZU ed   ed<   y)r  r/   r)   Nr  r3   r4   r5   0CreateParamsPaymentMethodOptionsCardInstallmentsz8Session.CreateParamsPaymentMethodOptionsCardInstallments'
  s     ((r4   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rp  r1   r4  r  r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsBoletoz.Session.CreateParamsPaymentMethodOptionsBoleto.
  s)     +E 22 !,>! r4   r  c                       e Zd ZU ed   ed<   y)ro  r  r  Nr  r3   r4   r5   *CreateParamsPaymentMethodOptionsBancontactz2Session.CreateParamsPaymentMethodOptionsBancontact>
  r  r4   r  c                       e Zd ZU ed   ed<   y)rn  r  r  Nr  r3   r4   r5   )CreateParamsPaymentMethodOptionsBacsDebitz1Session.CreateParamsPaymentMethodOptionsBacsDebitH
  r  r4   r  c                       e Zd ZU ed   ed<   y)rm  r  r  Nr  r3   r4   r5   +CreateParamsPaymentMethodOptionsAuBecsDebitz3Session.CreateParamsPaymentMethodOptionsAuBecsDebitT
  r  r4   r  c                       e Zd ZU ed   ed<   y)rl  r  r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsAlipayz.Session.CreateParamsPaymentMethodOptionsAlipay^
  r  r4   r  c                       e Zd ZU ed   ed<   y)rk  r  r  Nr  r3   r4   r5   0CreateParamsPaymentMethodOptionsAfterpayClearpayz8Session.CreateParamsPaymentMethodOptionsAfterpayClearpayh
  r  r4   r  c                       e Zd ZU ed   ed<   y)rj  r  r  Nr  r3   r4   r5   &CreateParamsPaymentMethodOptionsAffirmz.Session.CreateParamsPaymentMethodOptionsAffirmr
  r  r4   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
ri  zLiteral['cad', 'usd']r  ?Session.CreateParamsPaymentMethodOptionsAcssDebitMandateOptionsr  r  r  z0Literal['automatic', 'instant', 'microdeposits']r  Nr  r3   r4   r5   )CreateParamsPaymentMethodOptionsAcssDebitz1Session.CreateParamsPaymentMethodOptionsAcssDebit|
  sX    !"9:: )Q  !,>!  "-B" r4   r  c                   f    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)r  zLiteral['']|strr  z(List[Literal['invoice', 'subscription']]r  r2   r  z+Literal['combined', 'interval', 'sporadic']r  zLiteral['business', 'personal']r  Nr  r3   r4   r5   7CreateParamsPaymentMethodOptionsAcssDebitMandateOptionsz?Session.CreateParamsPaymentMethodOptionsAcssDebitMandateOptions
  sh     !,,= >>
 %:  #.e"44 *=  **KLLr4   r  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   	 ed   ed
<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r1   application_fee_amountz1Literal['automatic', 'automatic_async', 'manual']r  r2   r   r   r   r"  receipt_emailr  r  -Session.CreateParamsPaymentIntentDataShippingshippingstatement_descriptorstatement_descriptor_suffix1Session.CreateParamsPaymentIntentDataTransferDatar%  transfer_groupNr  r3   r4   r5   CreateParamsPaymentIntentDataz%Session.CreateParamsPaymentIntentData
  s    $/$66 (C  %U++ ""233 &e,,
 'u-- !,6! , "?  #.e"44 *5U);;
 'C  (..r4   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  r1   r  r7  Nr8  r3   r4   r5   )CreateParamsPaymentIntentDataTransferDataz1Session.CreateParamsPaymentIntentDataTransferData	  s    && r4   r  c                   Z    e Zd ZU ded<   	 ed   ed<   	 eed<   	 ed   ed<   	 ed   ed<   y)	r  4Session.CreateParamsPaymentIntentDataShippingAddressr   r2   r  r   r   r  N)r,   r-   r.   r0   r   r2   r3   r4   r5   %CreateParamsPaymentIntentDataShippingz-Session.CreateParamsPaymentIntentDataShipping  sO    KK !'' I u%% )//r4   r  c                   r    e Zd ZU ed   ed<   	 ed   ed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)	r  r2   r   r   r   r   r   r   Nr8  r3   r4   r5   ,CreateParamsPaymentIntentDataShippingAddressz4Session.CreateParamsPaymentIntentDataShippingAddress,  sf    e$$ !'' J u%% %U++ u%%r4   r  c                   x    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   y)Session.CreateParamsLineItem.Session.CreateParamsLineItemAdjustableQuantityadjustable_quantityr  dynamic_tax_ratesr2   price%Session.CreateParamsLineItemPriceData
price_datar1   quantity	tax_ratesNr  r3   r4   r5   CreateParamsLineItemr  F  sr    !,@"   +;77 u%% $$KLL "%(( #;//r4   r   c                       e Zd ZU eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   y)r  r  r2   product0Session.CreateParamsLineItemPriceDataProductDataproduct_data.Session.CreateParamsLineItemPriceDataRecurring	recurringrE  rF  r1   unit_amountunit_amount_decimalN)r,   r-   r.   r2   r0   r   r3   r4   r5   CreateParamsLineItemPriceDataz%Session.CreateParamsLineItemPriceDatab  s    M !'' &B  #@  &B  %U++ "-U!33r4   r	  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  )rX  rZ  r[  yearr
  r1   interval_countN)r,   r-   r.   r   r0   r   r3   r4   r5   &CreateParamsLineItemPriceDataRecurringz.Session.CreateParamsLineItemPriceDataRecurring  s%    <== (..r4   r  c                   `    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 eed<   	 ed   ed<   y	)
r  r2   r   r  imagesr   r   r   rG  Nr8  r3   r4   r5   (CreateParamsLineItemPriceDataProductDataz0Session.CreateParamsLineItemPriceDataProductData  sU    $U++  ,, ""233 I "%((r4   r  c                   <    e Zd ZU eed<   	 ed   ed<   	 ed   ed<   y)r  r)   r1   rQ  rS  Nr,   r-   r.   r/   r0   r   r3   r4   r5   &CreateParamsLineItemAdjustableQuantityz.Session.CreateParamsLineItemAdjustableQuantity  s0    M !'' !''r4   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  r)   .Session.CreateParamsInvoiceCreationInvoiceDatar   Nr  r3   r4   r5   CreateParamsInvoiceCreationz#Session.CreateParamsInvoiceCreation  s#    M &@ r4   r  c                   x    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   y)r  zLiteral['']|List[str]r   zKLiteral['']|List[Session.CreateParamsInvoiceCreationInvoiceDataCustomField]r   r2   r   r   r   r   zJLiteral['']|Session.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsr   Nr  r3   r4   r5   &CreateParamsInvoiceCreationInvoiceDataz.Session.CreateParamsInvoiceCreationInvoiceData  sx    ()@AA ']  %U++  && ""233  +\  r4   r  c                       e Zd ZU ed   ed<   y)>Session.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsz;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']r   Nr  r3   r4   r5   6CreateParamsInvoiceCreationInvoiceDataRenderingOptionsr    s     !,M! r4   r  c                   $    e Zd ZU eed<   	 eed<   y)9Session.CreateParamsInvoiceCreationInvoiceDataCustomFieldr   r^   Nr_   r3   r4   r5   1CreateParamsInvoiceCreationInvoiceDataCustomFieldr    s    I Jr4   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)Session.CreateParamsDiscountr2   couponpromotion_codeNr  r3   r4   r5   CreateParamsDiscountr     s$    && (..r4   r#  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  zLiteral['auto', 'never']r   r   r  Nr  r3   r4   r5   CreateParamsCustomerUpdatez"Session.CreateParamsCustomerUpdate  s9     !;<< 899 ""<==r4   r%  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  z9Literal['']|Session.CreateParamsCustomTextShippingAddressr   z0Literal['']|Session.CreateParamsCustomTextSubmitr   zBLiteral['']|Session.CreateParamsCustomTextTermsOfServiceAcceptancer   Nr  r3   r4   r5   CreateParamsCustomTextzSession.CreateParamsCustomText  sE    )K   B  *5T* r4   r'  c                       e Zd ZU eed<   y)6Session.CreateParamsCustomTextTermsOfServiceAcceptancer}   Nr_   r3   r4   r5   .CreateParamsCustomTextTermsOfServiceAcceptancer)     r   r4   r*  c                       e Zd ZU eed<   y)$Session.CreateParamsCustomTextSubmitr}   Nr_   r3   r4   r5   CreateParamsCustomTextSubmitr,  &  r   r4   r-  c                       e Zd ZU eed<   y)-Session.CreateParamsCustomTextShippingAddressr}   Nr_   r3   r4   r5   %CreateParamsCustomTextShippingAddressr/  ,  r   r4   r0  c                   ~    e Zd ZU ed   ed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   y)Session.CreateParamsCustomField'Session.CreateParamsCustomFieldDropdownrr   rs   $Session.CreateParamsCustomFieldLabelr]   &Session.CreateParamsCustomFieldNumericrt   r/   ru   #Session.CreateParamsCustomFieldTextrv   rw   rf   N)r,   r-   r.   r   r0   r2   r   r3   r4   r5   CreateParamsCustomFieldr2  2  sw    !"KLL H :9 !!IJJ "&)) CDD 788r4   r7  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r6  r1   rj   rk   Nr  r3   r4   r5   CreateParamsCustomFieldTextz#Session.CreateParamsCustomFieldTextP  $    '.. (..r4   r9  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r5  r1   rj   rk   Nr  r3   r4   r5   CreateParamsCustomFieldNumericz&Session.CreateParamsCustomFieldNumericZ  r:  r4   r<  c                   *    e Zd ZU eed<   	 ed   ed<   y)r4  re   rf   N)r,   r-   r.   r2   r0   r   r3   r4   r5   CreateParamsCustomFieldLabelz$Session.CreateParamsCustomFieldLabeld  s    K (##r4   r>  c                       e Zd ZU ed   ed<   y)r3  -Session.CreateParamsCustomFieldDropdownOptionra   N)r,   r-   r.   r   r0   r3   r4   r5   CreateParamsCustomFieldDropdownz'Session.CreateParamsCustomFieldDropdownn  s    IJJr4   rA  c                   $    e Zd ZU eed<   	 eed<   y)r@  r]   r^   Nr_   r3   r4   r5   %CreateParamsCustomFieldDropdownOptionz-Session.CreateParamsCustomFieldDropdownOptiont  s    J Jr4   rC  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  zLiteral['auto', 'none']rE   zLiteral['none', 'required']rG   Nr  r3   r4   r5   CreateParamsConsentCollectionz%Session.CreateParamsConsentCollection~  s&    #$=>>
 **GHHr4   rE  c                       e Zd ZU eed<   y)r  r)   Nr  r3   r4   r5   CreateParamsAutomaticTaxz Session.CreateParamsAutomaticTax  r  r4   rG  c                       e Zd ZU ed   ed<   y)r  +Session.CreateParamsAfterExpirationRecoveryr7   Nr  r3   r4   r5   CreateParamsAfterExpirationz#Session.CreateParamsAfterExpiration  s    != r4   rJ  c                   *    e Zd ZU ed   ed<   	 eed<   y)rI  r/   r(   r)   N)r,   r-   r.   r   r0   r/   r3   r4   r5   #CreateParamsAfterExpirationRecoveryz+Session.CreateParamsAfterExpirationRecovery  s    #.v#66 Mr4   rL  c                       e Zd ZU ed   ed<   y)Session.ExpireParamsr  r  Nr  r3   r4   r5   ExpireParamsrN        ,,r4   rO  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   	 ed   ed
<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)Session.ListParamsr2   r  !Session.ListParamsCustomerDetailscustomer_detailsending_beforer  r  r1   limitpayment_intentpayment_linkstarting_afterr  Nr  r3   r4   r5   
ListParamsrR    s    !%(( **MNN 'u--  ,, u%% (.. &e,, (.. &e,,r4   rZ  c                       e Zd ZU eed<   y)rS  r   Nr_   r3   r4   r5   ListParamsCustomerDetailsz!Session.ListParamsCustomerDetails  s    Jr4   r\  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)	Session.ListLineItemsParamsr2   rU  r  r  r1   rV  rY  Nr  r3   r4   r5   ListLineItemsParamsr^    sH    &u--  ,, u%% (..r4   r_  c                       e Zd ZU ed   ed<   y)Session.RetrieveParamsr  r  Nr  r3   r4   r5   RetrieveParamsra    rP  r4   rb  r  r(   rR   rS   r  )rL   rN   r  r  r  client_secretconsentr  createdr  currency_conversionr   r  r   r  )alwaysif_requiredr  rT  r  r*   r   r   r  r  r   r  livemode))rL   bgcsdadeelenzen-GBeszes-419etfifilfrzfr-CAhrhur   itjakoltlvmsmtnbnlplptzpt-BRroruskslsvthtrvizhzzh-HKzzh-TWr  r   )paymentsetupr  r  objectr   rW  r   rX  r  $payment_method_configuration_detailsr  r  )no_payment_requiredpaidunpaidpayment_statusr
  recovered_from)rg  rh  neverr  r  r   setup_intentr  shipping_costshipping_detailsr  )r<   expiredopenr?   )rL   bookdonatepayr  r   r  r  r  total_details)embeddedhostedr  r+   Napi_keyidempotency_keystripe_versionstripe_accountparamsr  returnc                 `    t        d| j                  d| j                         |||||            S )z+
        Creates a Session object.
        r"   post)r   _static_request	class_url)clsr  r  r  r  r  s         r5   createzSession.create  s=     
 	
r4   sessionrN  c                     t        d| j                  ddj                  t        j                  |            ||||            S )
        A Session can be expired when it is in one of these statuses: open

        After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
        r"   r  &/v1/checkout/sessions/{session}/expirer  r  r  r  r  )r   r  formatr   sanitize_idr  r  r  r  r  r  s         r5   _cls_expirezSession._cls_expire  sZ     8?? ,,W5 @   --   	
 	
r4   c                      yr  Nr3   r  r  r  r  r  s        r5   expirezSession.expire0  s     	r4   c                      yr  r3   selfr  r  s      r5   r  zSession.expire@  s     	r4   r  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )r  r"   r  r  r   r  r  r  )r   _requestr  r   r  getr  s      r5   r  zSession.expireM  sZ     MM8?? ,,TXXd^< @  !0  

 
	
r4   rR  c                     | j                  d| j                         ||||      }t        |t              s!t	        dt        |      j                  z        |S )z6
        Returns a list of Checkout Sessions.
        r  r  z%Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorrf   r,   )r  r  r  r  r  results         r5   listzSession.listd  sf     $$MMO)) % 
 &*-7<((* 
 r4   r^  c                     t        t        d   | j                  ddj                  t	        j
                  |            ||||            S )
        When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r   r  */v1/checkout/sessions/{session}/line_itemsr  r  )r   r   r  r  r   r  r  s         r5   _cls_list_line_itemszSession._cls_list_line_items  s_     z"<CC ,,W5 D   --   	
 	
r4   c                      yr  Nr3   r  s        r5   list_line_itemszSession.list_line_items  s     	r4   c                      yr  r3   r  s      r5   r  zSession.list_line_items  s     	r4   r  c                     t        t        d   | j                  ddj                  t	        j
                  | j                  d                  ||            S )r  r   r  r  r   r  r  )r   r   r  r  r   r  r  r  s      r5   r  zSession.list_line_items  s_     z"MM<CC ,,TXXd^< D  !0  

 
	
r4   ra  c                 8     | |fi |}|j                          |S )z-
        Retrieves a Session object.
        )refresh)r  r   r  instances       r5   retrievezSession.retrieve  s$     r$V$r4   )NNNN)NNN)N)r,   r-   r.   __doc__r#   r   r   r0   r	   r9   r@   rI   rO   rV   rx   r   r   r   r   r  r  r  r  r  r  r  r  r   r   r  r   r  r*  r.  r4  r9  r>  rH  rK  rN  rT  r^  ra  rc  re  rg  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r	  r  r  r  r  r  r  r  r#  r%  r'  r*  r-  r0  r7  r9  r<  r>  rA  rC  rE  rG  rJ  rL  rO  rZ  r\  r_  rb  r   r/   r1   r2   r   r   r   r   classmethodr   r  r  r   staticmethodr  r
   r  r  r  r  r8   r3   r4   r5   r"   r"   $   s   " :LK'"456K4, 46
| 
	, 	
L 
\ $Q
l Q
f#
\ #
JBD, BDH4;, 4;lL V
| V
p uL un;,| ;,z,2, ,2\ , L6| L6\ q	> q	f	) 	9	9 9	v		 		9 		y 	
	 
	"	 "	H	I 	 				 
	
	
	
	u	I u	n	) 			 	^	y ^	@		 	$	I 	,			Y 	
		 
		 		) 		Y 	@	Y 		) 		9 		9 		i 		Y 		I 		i 		i 		) 		) 		i 	(		8		
	i 
		9 	4	y 		Y 	 	 	
		 
		) 		Y 		y 		Y 			 	8		<Q	I Q	f		 		I 	,	9 	4	9 	8"	I "	H	Y 		y 	,	Y 	
	) 
		Y 	<				 		9 		 	 	Y 	(	Y 		9 		I 		i 	<	) 		Y 		9 		i 		I 		I 		y 		) 	
	) 
		> 	$	 $	L		 		. 	$	^ 	 // $D>) c]" 3-   (1C)D EE  "#&
 C=  g !!233 L sm ""455 $$ z233  (? @AA // SM! O 	G oi011 // J/00 N (*	
, ,Z tCH~&& 4
55 &'' __=>> ?=9::  (0G(HII +3)+  %%9:: s)# CDD &&;<<SM! %W-M%NOO  ?=9:: "**C!DD L)) // >** W:;<< '"ABCC ?>:;; #  00L)) g2344 
#
  "&)-(,(,
#
 "#
 !	

 !
 /0
 

 
0  "&(,(,

 #
 !	

 !
 /0
 

 
6  "&(,(,	# ! !	
 /0 
    *.
!#
 /0
 
	
 
 -( *.
!#
 /0
 
	
 )
,  "&(,(,	# ! !	
 -. 
I	 6  "&(,(,

 #
 !	

 !
 67
 
J	
 
2  "&(,(,	

#
 !
 !	

 67
 
J	
  
  *.!# 67 
J		  01 *.
!#
 67
 
J		
 2
(  &'? @	 O 	7 	/	
 	1 	 	z 	O 	O 	/0Q 	!"6 	"#8 	&'@ 	 	O  	N!" 	_#$ 	%r4   r"   N)5striper   stripe.api_resources.abstractr   r   %stripe.api_resources.expandable_fieldr    stripe.api_resources.list_objectr   stripe.request_optionsr   stripe.stripe_objectr	   stripe.utilr
   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   stripe.api_resources.customerr   stripe.api_resources.discountr   r  stripe.api_resources.invoicer   stripe.api_resources.line_itemr   #stripe.api_resources.payment_intentr   !stripe.api_resources.payment_linkr   !stripe.api_resources.setup_intentr   "stripe.api_resources.shipping_rater   !stripe.api_resources.subscriptionr   stripe.api_resources.tax_idr   r   stripe.api_resources.tax_rater    r"   r3   r4   r5   <module>r     ss     B 7 1 - , A A  6J47A==?>B5B;)$&9)&DB;r4   