
    _jL                       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 d d	lmZmZmZ erxd 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/m0Z0 d dl1m2Z2 d dl3m4Z5 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  G d ded         ed         ed                   ZDd S )!    )CreateableAPIResource)ExpandableField)
ListObject)ListableAPIResource)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalcastoverload)LiteralUnpackTYPE_CHECKING)Account)Coupon)Customer)Discount)Invoice)LineItem)PaymentIntent)PaymentLink)PromotionCode)SetupIntent)ShippingRate)Subscription)TaxId)TaxRate)SessionCreateParams)SessionExpireParams)SessionListLineItemsParams)SessionListParams)SessionModifyParams)SessionRetrieveParamsc                      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#e$e	         ed:<   	 e$e
         ed;<   	 e$e%         ed<<   	 e$e&         ed=<   	 e$e&         ed><   	 eed?<   e$ed@                  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dI<   	 e$e'         edJ<   	 e$e         edK<   	 e(e         edL<   	 eedM<   e$e)dN                  edO<   	 e$e'         edP<   	 e$edQ                  edR<   	 e$e         edS<   	 e$e'         edT<   	 e$e(e                  edU<   	 e$e(e'                  edV<   	 e&edW<   	 e'edX<   	 e$e)dY                  edZ<   	 e$e         ed[<   	 e$e*d\                  ed]<   	 e%ed^<   	 e$ed_                  ed`<   	 e$e+e'e'f                  eda<   	 edb         edc<   	 e$e         edd<   ed         ede<   	 e$e(e                  edf<   	 e$edg                  edh<   	 e$e)di                  edj<   	 e$e)dk                  edl<   	 e$edQ                  edm<   	 e$e         edn<   	 e$e         edo<   	 e(e'         edp<   	 edq         edr<   	 e$e         eds<   	 e$e         edt<   e$e         edu<   e$e'         edv<   	 e$edw                  edx<   	 e$e'         edy<   	 e$e         edz<   	 e$e)d{                  ed|<   	 e$e         ed}<   	 e$e         ed~<   	 e(e          ed<   	 e$ed                  ed<   	 e$ed                  ed<   	 e$e)d                  ed<   	 e$e'         ed<   	 e$e!         ed<   e$e"         ed<   	 e$ed                  ed<   	 e$e'         ed<   	 e$e#         ed<   	 e,de-d         dd fd            Z.e,de-d         dd fd            Z/e,de'de-d         dd fd            Z0e1e2de'de-d         dd fd                        Z3e1de-d         dd fd            Z3 e4d          de-d         dd fd            Z3e,de'de-d         dd fd            Z5e1e2de'de-d         dd fd                        Z6e1de-d         dd fd            Z6 e4d          de-d         dd fd            Z6e,de-d         de*d          fd            Z7e,de-d         de*d          fd            Z8e,de'de-d         de*d\         fd            Z9e1e2de'de-d         de*d\         fd                        Z:e1de-d         de*d\         fd            Z: e4d          de-d         de*d\         fd            Z:e,de'de-d         de*d\         fd            Z;e1e2de'de-d         de*d\         fd                        Z<e1de-d         de*d\         fd            Z< e4d          de-d         de*d\         fd            Z<e,dXe'de-d         dd fd            Z=e,dXe'de-d         dd fd            Z>e,dXe'de-d         dd fd            Z?e,dXe'de-d         dd fd            Z@i d:e	d;e
d?edBedFedGedHedKedLedMedSedUed[eddedfednedoeeeeeeee e!e"e#d
ZAdS )Sessiona>  
    A Checkout Session represents your customer's session as they pay for
    one-time purchases or subscriptions through [Checkout](https://docs.stripe.com/payments/checkout)
    or [Payment Links](https://docs.stripe.com/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://docs.stripe.com/api/customers), and either the successful
    [PaymentIntent](https://docs.stripe.com/api/payment_intents) or an active
    [Subscription](https://docs.stripe.com/api/subscriptions).

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

    Related guide: [Checkout quickstart](https://docs.stripe.com/checkout/quickstart)
    zcheckout.sessionOBJECT_NAMEc                       e Zd ZU eed<   dS )Session.AdaptivePricingenabledN__name__
__module____qualname__bool__annotations__     \/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/checkout/_session.pyAdaptivePricingr,   F            	 	r5   r7   c                   L    e Zd ZU  G d de          Zee         ed<   	 deiZdS )Session.AfterExpirationc                   V    e Zd ZU eed<   	 eed<   	 ee         ed<   	 ee         ed<   dS ) Session.AfterExpiration.Recoveryallow_promotion_codesr-   
expires_aturlN)r/   r0   r1   r2   r3   r   intstrr4   r5   r6   Recoveryr<   M   s`         #'''' MMM
 !%%% # r5   rB   recoveryN)r/   r0   r1   r   rB   r   r3   _inner_class_typesr4   r5   r6   AfterExpirationr:   L   sa         	 	 	 	 	| 	 	 	( 8$$$$	 )(3r5   rE   c                       e Zd ZU  G d de          Zeed<   	 ee         ed<   	 ee         ed<   	 ee	d                  ed<   	 deiZ
dS )	Session.AutomaticTaxc                   J    e Zd ZU eed                  ed<   	 ed         ed<   dS )Session.AutomaticTax.Liabilityr   accountrJ   selftypeNr/   r0   r1   r   r   r3   r   r4   r5   r6   	LiabilityrI   h   sE         oi89999 +,,,, r5   rO   r-   	liabilityprovider)completefailedrequires_location_inputsstatusN)r/   r0   r1   r   rO   r2   r3   r   rA   r   rD   r4   r5   r6   AutomaticTaxrG   g   s         	 	 	 	 	 	 	 	 	 I&&&&	 3-	 DE
 	
 	
 	
	 *95r5   rV   c                       e Zd ZU  G d de          Z G d de          Zeed<   	 ed         ed<   	 eed<   	 eed	<   	 eed
<   	 e	e         ed<   	 e	e         ed<   	 eedZ
dS )Session.BrandingSettingsc                   V    e Zd ZU ee         ed<   	 ed         ed<   	 ee         ed<   dS )Session.BrandingSettings.Iconfiler[   r?   rM   r?   Nr/   r0   r1   r   rA   r3   r   r4   r5   r6   IconrZ      U         3- -(((( # r5   r^   c                   V    e Zd ZU ee         ed<   	 ed         ed<   	 ee         ed<   dS )Session.BrandingSettings.Logor[   r\   rM   r?   Nr]   r4   r5   r6   Logora      r_   r5   rb   background_color)pillrectangularroundedborder_stylebutton_colordisplay_namefont_familyiconlogo)rk   rl   N)r/   r0   r1   r   r^   rb   rA   r3   r   r   rD   r4   r5   r6   BrandingSettingsrX      s	        	 	 	 	 	< 	 	 		 	 	 	 	< 	 	 	 	 >????	 	 	 	 tn	 tn	 '+D99r5   rm   c                   |    e Zd ZU  G d de          Zee         ed<   	 ee         ed<   	 ee         ed<   	 deiZdS )Session.CollectedInformationc                   J    e Zd ZU  G d de          Zeed<   eed<   	 deiZdS ),Session.CollectedInformation.ShippingDetailsc                       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<   dS )4Session.CollectedInformation.ShippingDetails.Addresscitycountryline1line2postal_codestateNr/   r0   r1   r   rA   r3   r4   r5   r6   Addressrs      s         sm### "#&&&  }$$$  }$$$ &c]***  }$$$ r5   r{   addressnameN)r/   r0   r1   r   r{   r3   rA   rD   r4   r5   r6   ShippingDetailsrq      se             ,   4 III #,W!5r5   r~   business_nameindividual_nameshipping_detailsN)	r/   r0   r1   r   r~   r   rA   r3   rD   r4   r5   r6   CollectedInformationro      s          	6  	6  	6  	6  	6l  	6  	6  	6D  }$$$	 "#&&&	 #?3333	 1/Br5   r   c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )Session.Consent)opt_inopt_out
promotionsacceptedterms_of_serviceNr/   r0   r1   r   r   r3   r4   r5   r6   Consentr      sJ         W%89::::	 #7:#67777	 	r5   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 )	Session.ConsentCollectionc                   &    e Zd ZU ed         ed<   dS )5Session.ConsentCollection.PaymentMethodReuseAgreement)autohiddenpositionNr/   r0   r1   r   r3   r4   r5   r6   PaymentMethodReuseAgreementr      s(         .//// r5   r   payment_method_reuse_agreement)r   noner   )r   requiredr   N)	r/   r0   r1   r   r   r   r3   r   rD   r4   r5   r6   ConsentCollectionr      s         	 	 	 	 	, 	 	 	 )11L(MMMM	 W^45555	
 #7+=#>????	 -.I
r5   r   c                   >    e Zd ZU eed<   	 eed<   	 eed<   	 eed<   dS )Session.CurrencyConversionamount_subtotalamount_totalfx_ratesource_currencyNr/   r0   r1   r@   r3   rA   r4   r5   r6   CurrencyConversionr     sX         	 	 	 	 	r5   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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dS )Session.CustomFieldc                   |    e Zd ZU  G d de          Zee         ed<   	 ee         ed<   	 ee         ed<   	 deiZ	dS )Session.CustomField.Dropdownc                   &    e Zd ZU eed<   	 eed<   dS )#Session.CustomField.Dropdown.OptionlabelvalueNr/   r0   r1   rA   r3   r4   r5   r6   Optionr   ,  s/         


 


 r5   r   default_valueoptionsr   N)
r/   r0   r1   r   r   r   rA   r3   r   rD   r4   r5   r6   Dropdownr   +  s                 $C=((( &\!!! C=    #,V!4r5   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )Session.CustomField.LabelcustomrM   Nr]   r4   r5   r6   Labelr   D  s>         SM!!! (#### r5   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 )Session.CustomField.Numericr   maximum_lengthminimum_lengthr   Nr/   r0   r1   r   rA   r3   r@   r4   r5   r6   Numericr   N  k         #C=((( %SM))) %SM))) C=    r5   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 )Session.CustomField.Textr   r   r   r   Nr   r4   r5   r6   Textr   `  r   r5   r   dropdownkeyr   numericoptionaltext)r   r   r   rM   )r   r   r   r   N)r/   r0   r1   r   r   r   r   r   r   r3   rA   r2   r   rD   r4   r5   r6   CustomFieldr   *  sI        	5 	5 	5 	5 	5| 	5 	5 	52	 	 	 	 	L 	 	 		 	 	 	 	l 	 	 	$	 	 	 	 	< 	 	 	$ 8$$$$	 '""""	 tn34444	 !	
 
r5   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ee         e	d	<   	 ee         e	d
<   	 ee         e	d<   	 ee         e	d<   	 eeeedZ
dS )Session.CustomTextc                       e Zd ZU eed<   dS )Session.CustomText.AfterSubmitmessageNr   r4   r5   r6   AfterSubmitr              LLL r5   r   c                       e Zd ZU eed<   dS )"Session.CustomText.ShippingAddressr   Nr   r4   r5   r6   ShippingAddressr     r   r5   r   c                       e Zd ZU eed<   dS )Session.CustomText.Submitr   Nr   r4   r5   r6   Submitr     r   r5   r   c                       e Zd ZU eed<   dS )+Session.CustomText.TermsOfServiceAcceptancer   Nr   r4   r5   r6   TermsOfServiceAcceptancer     r   r5   r   after_submitshipping_addresssubmitterms_of_service_acceptance)r   r   r   r   N)r/   r0   r1   r   r   r   r   r   r   r3   rD   r4   r5   r6   
CustomTextr     s6        	 	 	 	 	, 	 	 		 	 	 	 	l 	 	 		 	 	 	 	\ 	 	 		 	 	 	 	| 	 	 	 {++++	 #?3333	     	 &..F%GGGG	 ( /+C	
 
r5   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         ed	<   	 ee         ed
<   	 ee	d                  ed<   	 ee
e                  ed<   	 eedZdS )Session.CustomerDetailsc                       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<   dS )Session.CustomerDetails.Addressrt   ru   rv   rw   rx   ry   Nrz   r4   r5   r6   r{   r     s         3- c]""" C=    C=    "#&&& C=    r5   r{   c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )Session.CustomerDetails.TaxId)qad_nrtae_trnal_tinam_tinao_tinar_cuitau_abnau_arnaw_tinaz_tinba_tinbb_tinbd_binbf_ifubg_uicbh_vatbj_ifubo_tinbr_cnpjbr_cpfbs_tinby_tinca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstcd_nifch_uidch_vatcl_tincm_niucn_tinco_nitcr_tincv_nifde_stndo_rcnec_ruceg_tines_cifet_tin
eu_oss_vateu_vatgb_vatge_vatgn_nifhk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkg_tinkh_tinkr_brnkz_binla_tinli_uidli_vatlk_vatma_vatmd_vatme_pibmk_vatmr_nifmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnp_pannz_gstom_vatpe_rucph_tinpl_nipro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsn_nineasr_finsv_nitth_vattj_tintr_tintw_vattz_vatua_vatug_tinunknownus_einuy_rucuz_tinuz_vatve_rifvn_tinza_vatzm_tinzw_tinrM   r   N)r/   r0   r1   r   r3   r   rA   r4   r5   r6   r    r     sO         pr r r rf C=    r5   r    r|   r   emailr   r}   phone)exemptr   reverse
tax_exempttax_ids)r|   rS  N)r/   r0   r1   r   r{   r    r   r3   rA   r   r   rD   r4   r5   r6   CustomerDetailsr     sD        	 	 	 	 	l 	 	 	4z	 z	 z	 z	 z	L z	 z	 z	x '""""	  }$$$	 }	 "#&&&	 sm	 }	 W%@ABBBB	 $u+&&&&	 *1UCCr5   rT  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )Session.Discountr   couponr   promotion_codeN)r/   r0   r1   r   r   r3   r4   r5   r6   r   rV  s  sI         23333	 !!ABBBB	 	r5   r   c                   J    e Zd ZU  G d de          Zeed<   	 eed<   deiZdS )Session.InvoiceCreationc                   L   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
d<   	 eee                  e
d	<   	 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edZdS )#Session.InvoiceCreation.InvoiceDatac                   &    e Zd ZU eed<   	 eed<   dS )/Session.InvoiceCreation.InvoiceData.CustomFieldr}   r   Nr   r4   r5   r6   r   r^    s/         			 


 r5   r   c                   J    e Zd ZU eed                  ed<   	 ed         ed<   dS )*Session.InvoiceCreation.InvoiceData.Issuerr   rJ   rK   rM   NrN   r4   r5   r6   Issuerr`    sE         !/)"<==== /0000 r5   ra  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )4Session.InvoiceCreation.InvoiceData.RenderingOptionsamount_tax_displaytemplateNrz   r4   r5   r6   RenderingOptionsrc    s=         $,SM111 #3-''' r5   rf  TaxIdResourceaccount_tax_idscustom_fieldsdescriptionfooterissuermetadatarendering_options)ri  rl  rn  N)r/   r0   r1   r   r   ra  rf  r   r   r   r3   rA   r   rD   r4   r5   r6   InvoiceDatar\  ~  sf            l              <    &d??+K&LMMMM $D$56666 "#&&& SM!!! V$$$$ tCH~....  ((89999 "- %5" "r5   ro  r-   invoice_dataN)r/   r0   r1   r   ro  r2   r3   rD   r4   r5   r6   InvoiceCreationrZ  }  sf         ?	 ?	 ?	 ?	 ?	, ?	 ?	 ?	B 	 "!!!,k:r5   rq  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dZdS )	Session.NameCollectionc                   &    e Zd ZU eed<   	 eed<   dS )Session.NameCollection.Businessr-   r   Nr.   r4   r5   r6   Businessru    /         MMM NNN r5   rv  c                   &    e Zd ZU eed<   	 eed<   dS )!Session.NameCollection.Individualr-   r   Nr.   r4   r5   r6   
Individualry    rw  r5   rz  business
individual)r{  r|  N)	r/   r0   r1   r   rv  rz  r   r3   rD   r4   r5   r6   NameCollectionrs    s         	 	 	 	 	| 	 	 		 	 	 	 	 	 	 	 8$$$$Z((((*2*MMr5   r}  c                   ^    e Zd ZU  G d de          Zee         ed<   eed<   eed<   deiZ	dS )Session.OptionalItemc                   J    e Zd ZU eed<   	 ee         ed<   	 ee         ed<   dS )'Session.OptionalItem.AdjustableQuantityr-   maximumminimumN)r/   r0   r1   r2   r3   r   r@   r4   r5   r6   AdjustableQuantityr    sM         MMM c]""" c]""" r5   r  adjustable_quantitypricequantityN)
r/   r0   r1   r   r  r   r3   rA   r@   rD   r4   r5   r6   OptionalItemr    sn         	 	 	 	 	 	 	 	 &&89999


35GHr5   r  c                   2    e Zd ZU eed<   	 ee         ed<   dS ))Session.PaymentMethodConfigurationDetailsidparentN)r/   r0   r1   rA   r3   r   r4   r5   r6   !PaymentMethodConfigurationDetailsr    s6         	 	 	r5   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 G d7 d8e          Z G d9 d:e          Z  G d; d<e          Z! G d= d>e          Z" G d? d@e          Z# G dA dBe          Z$ G dC dDe          Z% G dE dFe          Z& G dG dHe          Z' G dI dJe          Z( G dK dLe          Z) G dM dNe          Z* G dO dPe          Z+ G dQ dRe          Z, G dS dTe          Z-e.e         e/dU<   e.e         e/dV<   e.e         e/dW<   e.e         e/dX<   e.e         e/dY<   e.e	         e/dZ<   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<   e.e!         e/dr<   e.e"         e/ds<   e.e#         e/dt<   e.e$         e/du<   e.e%         e/dv<   e.e&         e/dw<   e.e'         e/dx<   e.e(         e/dy<   e.e)         e/dz<   e.e*         e/d{<   e.e+         e/d|<   e.e,         e/d}<   e.e-         e/d~<   i dUedVedWedXedYedZe	d[e
d\ed]ed^ed_ed`edaedbedceddedeei dfedgedhediedjedkedledmednedoedpedqe dre!dse"dte#due$dve%e&e'e(e)e*e+e,e-dZ0dS )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         ed<   	 eed	                  ed
<   	 deiZ	dS )&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<   d	S )
5Session.PaymentMethodOptions.AcssDebit.MandateOptionscustom_mandate_url)invoicesubscriptiondefault_forinterval_description)combinedintervalsporadicpayment_schedule)r{  personaltransaction_typeN)r/   r0   r1   r   rA   r3   r   r   r4   r5   r6   MandateOptionsr    s         $,SM111 &d73L+M&NOOOO '/sm333 #+>?#    #+73I+J"KKKK r5   r  )cadusdcurrencymandate_optionsr   off_session
on_sessionsetup_future_usagetarget_date)	automaticinstantmicrodepositsverification_methodN)
r/   r0   r1   r   r  r   r   r3   rA   rD   r4   r5   r6   	AcssDebitr    s                0 w|45555 &n5555 (;<!    "#&&& "*?@"    #4^!Dr5   r  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )#Session.PaymentMethodOptions.Affirmmanualcapture_methodr   r  Nr   r4   r5   r6   Affirmr  4  H         $WX%67777 !) 9999 r5   r  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )-Session.PaymentMethodOptions.AfterpayClearpayr  r  r   r  Nr   r4   r5   r6   AfterpayClearpayr  D  r  r5   r  c                   2    e Zd ZU eed                  ed<   dS )#Session.PaymentMethodOptions.Alipayr   r  Nr   r4   r5   r6   Alipayr  T  +          ( 9999 r5   r  c                   2    e Zd ZU eed                  ed<   dS )!Session.PaymentMethodOptions.Almar  r  Nr   r4   r5   r6   Almar  `  ,         $WX%67777 r5   r  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )&Session.PaymentMethodOptions.AmazonPayr  r  r   r  r  Nr   r4   r5   r6   	AmazonPayr  f  J         $WX%67777 !)1F)G HHHH r5   r  c                   J    e Zd ZU eed                  ed<   	 ee         ed<   dS )(Session.PaymentMethodOptions.AuBecsDebitr   r  r  Nr/   r0   r1   r   r   r3   rA   r4   r5   r6   AuBecsDebitr  v  sB          ( 9999 "#&&& r5   r  c                       e Zd ZU  G d de          Zee         ed<   eed                  ed<   	 ee         ed<   	 deiZ	dS )&Session.PaymentMethodOptions.BacsDebitc                   &    e Zd ZU ee         ed<   dS )5Session.PaymentMethodOptions.BacsDebit.MandateOptionsreference_prefixNrz   r4   r5   r6   r  r    &         "*3-/// r5   r  r  r  r  r  N
r/   r0   r1   r   r  r   r3   r   rA   rD   r4   r5   r6   	BacsDebitr                     &n5555 (;<!    "#&&& #4^!Dr5   r  c                   2    e Zd ZU eed                  ed<   dS )'Session.PaymentMethodOptions.Bancontactr   r  Nr   r4   r5   r6   
Bancontactr    r  r5   r  c                   2    e Zd ZU eed                  ed<   dS )#Session.PaymentMethodOptions.Billier  r  Nr   r4   r5   r6   Billier    r  r5   r  c                   >    e Zd ZU eed<   	 eed                  ed<   dS )#Session.PaymentMethodOptions.Boletoexpires_after_daysr  r  Nr/   r0   r1   r@   r3   r   r   r4   r5   r6   Boletor    sI          #### !);<!    r5   r  c                      e Zd ZU  G d de          Z G d de          Zeed                  ed<   	 ee         ed<   eed                  ed	<   	 eed                  ed
<   	 eed                  ed<   	 eed                  ed<   	 ed         ed<   	 ee         ed<   eed                  ed<   	 ee	         ed<   	 ee	         ed<   	 eedZ
dS )!Session.PaymentMethodOptions.Cardc                   &    e Zd ZU ee         ed<   dS ).Session.PaymentMethodOptions.Card.Installmentsr-   N)r/   r0   r1   r   r2   r3   r4   r5   r6   Installmentsr    s&         !$''' r5   r  c                   >    e Zd ZU eeed                           ed<   dS ).Session.PaymentMethodOptions.Card.Restrictions)american_expressdiscover_global_network
mastercardvisabrands_blockedNr/   r0   r1   r   r   r   r3   r4   r5   r6   Restrictionsr    sB          ($	! 	 	 	 r5   r  r  r  installments)if_availableneverrequest_extended_authorization!request_incremental_authorizationrequest_multicapturerequest_overcapture)anyr  	challengerequest_three_d_securerestrictionsr  r   statement_descriptor_suffix_kana!statement_descriptor_suffix_kanji)r  r  N)r/   r0   r1   r   r  r  r   r   r3   rA   rD   r4   r5   r6   Cardr    s            |       |    %WX%67777 #<0000,4/0-    08/00    #+73J+K"LLLL "*'2I*J!KKKK %,,K$LLLL #<0000 (;<!    /7sm;;; 08}<<< !- ," "r5   r  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )$Session.PaymentMethodOptions.Cashappr  r  r   r  Nr   r4   r5   r6   Cashappr    r  r5   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 ),Session.PaymentMethodOptions.CustomerBalancec                       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 )	9Session.PaymentMethodOptions.CustomerBalance.BankTransferc                   &    e Zd ZU ed         ed<   dS )HSession.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)BEDEESFRIENLru   Nr   r4   r5   r6   EuBankTransferr   #  s(         $%GHHHH r5   r  eu_bank_transfer)abaibansepa	sort_codespeiswiftzenginrequested_address_types)r  gb_bank_transferjp_bank_transfermx_bank_transferus_bank_transferrM   N)
r/   r0   r1   r   r  r   r3   r   r   rD   r4   r5   r6   BankTransferr  "  s             \    #+>"::::)1&
*   
 ,    '9.%I"""r5   r  bank_transferfunding_typer   r  N)	r/   r0   r1   r   r  r   r3   r   rD   r4   r5   r6   CustomerBalancer  !  s         &J &J &J &J &J| &J &J &JP $L1111"7?#;<<<< !) 9999 #2<!@r5   r  c                   2    e Zd ZU eed                  ed<   dS ) Session.PaymentMethodOptions.Epsr   r  Nr   r4   r5   r6   Epsr  [  r  r5   r  c                   2    e Zd ZU eed                  ed<   dS ) Session.PaymentMethodOptions.Fpxr   r  Nr   r4   r5   r6   Fpxr  g  r  r5   r  c                   2    e Zd ZU eed                  ed<   dS )$Session.PaymentMethodOptions.Giropayr   r  Nr   r4   r5   r6   Giropayr   s  r  r5   r!  c                   2    e Zd ZU eed                  ed<   dS )$Session.PaymentMethodOptions.Grabpayr   r  Nr   r4   r5   r6   Grabpayr#    r  r5   r$  c                   2    e Zd ZU eed                  ed<   dS )"Session.PaymentMethodOptions.Idealr   r  Nr   r4   r5   r6   Idealr&    r  r5   r'  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )%Session.PaymentMethodOptions.KakaoPayr  r  r  r  Nr   r4   r5   r6   KakaoPayr)    r  r5   r*  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )#Session.PaymentMethodOptions.Klarnar  r  r  r  Nr   r4   r5   r6   Klarnar,    sS         $WX%67777 !);<!    r5   r-  c                   J    e Zd ZU ee         ed<   	 eed                  ed<   dS )$Session.PaymentMethodOptions.Konbinir  r   r  N)r/   r0   r1   r   r@   r3   r   r4   r5   r6   Konbinir/    sB          (--- !) 9999 r5   r0  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )#Session.PaymentMethodOptions.KrCardr  r  r  r  Nr   r4   r5   r6   KrCardr2    r  r5   r3  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )!Session.PaymentMethodOptions.Linkr  r  r  r  Nr   r4   r5   r6   Linkr5    r  r5   r6  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )&Session.PaymentMethodOptions.Mobilepayr  r  r   r  Nr   r4   r5   r6   	Mobilepayr8    r  r5   r9  c                   2    e Zd ZU eed                  ed<   dS )'Session.PaymentMethodOptions.Multibancor   r  Nr   r4   r5   r6   
Multibancor;    r  r5   r<  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )%Session.PaymentMethodOptions.NaverPayr  r  r  r  Nr   r4   r5   r6   NaverPayr>    r  r5   r?  c                   >    e Zd ZU eed<   	 eed                  ed<   dS )!Session.PaymentMethodOptions.Oxxor  r   r  Nr  r4   r5   r6   OxxorA    s>          #### !) 9999 r5   rB  c                   2    e Zd ZU eed                  ed<   dS ) Session.PaymentMethodOptions.P24r   r  Nr   r4   r5   r6   P24rD  %  r  r5   rE  c                   2    e Zd ZU eed                  ed<   dS )"Session.PaymentMethodOptions.Paycor  r  Nr   r4   r5   r6   PaycorG  1  r  r5   rH  c                   2    e Zd ZU eed                  ed<   dS )#Session.PaymentMethodOptions.Paynowr   r  Nr   r4   r5   r6   PaynowrJ  7  r  r5   rK  c                       e Zd ZU eed                  ed<   	 ee         ed<   	 ee         ed<   	 eed                  ed<   dS )#Session.PaymentMethodOptions.Paypalr  r  preferred_locale	referencer  r  Nr  r4   r5   r6   PaypalrM  C  sx         $WX%67777 'sm+++  }$$$ !)1F)G HHHH r5   rP  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 )"Session.PaymentMethodOptions.Paytoc                       e Zd ZU ee         ed<   	 eed                  ed<   	 ee         ed<   	 eed                  ed<   	 ee         ed<   	 eed                  ed	<   	 ee         ed
<   dS )1Session.PaymentMethodOptions.Payto.MandateOptionsamount)fixedr  amount_typeend_date)adhocannualdailyfortnightlymonthly	quarterlysemi_annualweeklyr  payments_per_period)dependant_support
governmentloanmortgageotherpensionr  retailsalarytaxutilitypurpose
start_dateN)r/   r0   r1   r   r@   r3   r   rA   r4   r5   r6   r  rT  \  s          %%% &g.@&ABBBB #3-''' #+"	#    &.c]222 "
#    %SM))) r5   r  r  r  r  N)	r/   r0   r1   r   r  r   r3   r   rD   r4   r5   r6   PaytorR  [  sy         5 5 5 5 5 5 5 5n &n5555 (1F)G HHHH #4^!Dr5   rn  c                   n    e Zd ZU eed                  ed<   	 ee         ed<   	 eed                  ed<   dS ) Session.PaymentMethodOptions.Pix)alwaysr  amount_includes_iofexpires_after_secondsr   r  N)r/   r0   r1   r   r   r3   r@   r4   r5   r6   Pixrp    s`         !)'2C*D!EEEE $,C=000 !) 9999 r5   rt  c                   V    e Zd ZU eed                  ed<   	 eed                  ed<   dS )'Session.PaymentMethodOptions.RevolutPayr  r  r  r  Nr   r4   r5   r6   
RevolutPayrv    r  r5   rw  c                   2    e Zd ZU eed                  ed<   dS )'Session.PaymentMethodOptions.SamsungPayr  r  Nr   r4   r5   r6   
SamsungPayry    r  r5   rz  c                   2    e Zd ZU eed                  ed<   dS )%Session.PaymentMethodOptions.Satispayr  r  Nr   r4   r5   r6   Satispayr|    r  r5   r}  c                       e Zd ZU  G d de          Zee         ed<   eed                  ed<   	 ee         ed<   	 deiZ	dS )&Session.PaymentMethodOptions.SepaDebitc                   &    e Zd ZU ee         ed<   dS )5Session.PaymentMethodOptions.SepaDebit.MandateOptionsr  Nrz   r4   r5   r6   r  r    r  r5   r  r  r  r  r  Nr  r4   r5   r6   	SepaDebitr    r  r5   r  c                   2    e Zd ZU eed                  ed<   dS )#Session.PaymentMethodOptions.Sofortr   r  Nr   r4   r5   r6   Sofortr    r  r5   r  c                   &    e Zd ZU ee         ed<   dS )"Session.PaymentMethodOptions.SwishrO  Nrz   r4   r5   r6   Swishr    s&         }$$$ r5   r  c                   2    e Zd ZU eed                  ed<   dS )"Session.PaymentMethodOptions.Twintr   r  Nr   r4   r5   r6   Twintr    r  r5   r  c                       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d                  ed<   	 deiZ	d	S )
*Session.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<   	 ee	         ed<   	 deiZ
d	S )
?Session.PaymentMethodOptions.UsBankAccount.FinancialConnectionsc                   >    e Zd ZU eeed                           ed<   dS )GSession.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters)checkingsavingsaccount_subcategoriesNr  r4   r5   r6   Filtersr  
  s;         +3W%:;<,    r5   r  filters)balances	ownershippayment_methodtransactionspermissions)r  r  r  prefetch
return_urlN)r/   r0   r1   r   r  r   r3   r   r   rA   rD   r4   r5   r6   FinancialConnectionsr  	  s             l    "'****%,	 	 	 	 #!HIJ    %SM))) '0%9"""r5   r  financial_connectionsr  r  r  )r  r  r  N)
r/   r0   r1   r   r  r   r3   r   rA   rD   r4   r5   r6   UsBankAccountr    s         !: !: !: !: !:| !: !: !:F $,,@#AAAA (;<!    "#&&& "*'2H*I!JJJJ ()="r5   r  
acss_debitaffirmafterpay_clearpayalipayalma
amazon_payau_becs_debit
bacs_debit
bancontactbillieboletocardcashappcustomer_balanceepsfpxgiropaygrabpayideal	kakao_payklarnakonbinikr_cardlink	mobilepay
multibanco	naver_payoxxop24paycopaynowpaypalpaytopixrevolut_paysamsung_paysatispay
sepa_debitsofortswishtwintus_bank_account)r  r  r  r  r  r  r  r  N)1r/   r0   r1   r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r$  r'  r*  r-  r0  r3  r6  r9  r<  r?  rB  rE  rH  rK  rP  rn  rt  rw  rz  r}  r  r  r  r  r  r   r3   rD   r4   r5   r6   PaymentMethodOptionsr    s        4	E 4	E 4	E 4	E 4	E 4	E 4	E 4	El	 	 	 	 	\ 	 	 	 	 	 	 	 	| 	 	 	 
	 
	 
	 
	 
	\ 
	 
	 
		 	 	 	 	< 	 	 		 	 	 	 	 	 	 	 	 	 	 	 	, 	 	 	 	E 	E 	E 	E 	E 	E 	E 	E4
	 
	 
	 
	 
	 
	 
	 
		 	 	 	 	\ 	 	 		 	 	 	 	\ 	 	 	$K	 K	 K	 K	 K	< K	 K	 K	Z	 	 	 	 	l 	 	 	 8	A 8	A 8	A 8	A 8	Al 8	A 8	A 8	At
	 
	 
	 
	 
	, 
	 
	 
	
	 
	 
	 
	 
	, 
	 
	 
	
	 
	 
	 
	 
	l 
	 
	 
	
	 
	 
	 
	 
	l 
	 
	 
	
	 
	 
	 
	 
	L 
	 
	 
		 	 	 	 	| 	 	 	 	 	 	 	 	\ 	 	 	$	 	 	 	 	l 	 	 	 	 	 	 	 	\ 	 	 	 	 	 	 	 	< 	 	 	 	 	 	 	 	 	 	 	 
	 
	 
	 
	 
	 
	 
	 
		 	 	 	 	| 	 	 	 	 	 	 	 	< 	 	 	 
	 
	 
	 
	 
	, 
	 
	 
		 	 	 	 	L 	 	 	
	 
	 
	 
	 
	\ 
	 
	 
		 	 	 	 	\ 	 	 	0C	E C	E C	E C	E C	EL C	E C	E C	EJ	 	 	 	 	, 	 	 	(	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 		 	 	 	 	| 	 	 		E 	E 	E 	E 	E 	E 	E 	E4
	 
	 
	 
	 
	\ 
	 
	 
		 	 	 	 	L 	 	 	
	 
	 
	 
	 
	L 
	 
	 
	;	 ;	 ;	 ;	 ;	L ;	 ;	 ;	z Y''''    #$45555    tnY'''',,,,Y''''Z((((        tn'"""""?3333c]c]'""""'""""H%%%%    '""""&!!!!tnI&&&&Z((((H%%%%tnc]        c]j))))j))))8$$$$Y''''    !-0000+
)+
f+
  !1+
 f	+

 D+
 )+
 [+
 )+
 *+
 f+
 f+
 D+
 w+
 +
 3+
  3!+
" w#+
 +
$ w%+
& U'+
( )+
* f++
, w-+
. v/+
0 D1+
2 3+
4 *5+
6 7+
8 D9+
: 3;+
< U=+
> f?+
@ fA+
B UC+
D 3E+
 +
F &% #,U+
 +
 +
r5   r  c                   2    e Zd ZU eed                  ed<   dS )Session.Permissions)client_onlyserver_onlyupdate_shipping_detailsNr   r4   r5   r6   Permissionsr    s6         !)01"
 	
 	
 	
	 	r5   r  c                       e Zd ZU eed<   dS )Session.PhoneNumberCollectionr-   Nr.   r4   r5   r6   PhoneNumberCollectionr    r8   r5   r  c                   &    e Zd ZU eed<   	 eed<   dS )Session.PresentmentDetailspresentment_amountpresentment_currencyNr   r4   r5   r6   PresentmentDetailsr    s5         	 "!!!	 	r5   r  c                       e Zd ZU eeed                           ed<   	 eed                  ed<   	 eed                  ed<   dS )!Session.SavedPaymentMethodOptions)rq  limitedunspecifiedallow_redisplay_filters)disabledr-   payment_method_removepayment_method_saveNr  r4   r5   r6   SavedPaymentMethodOptionsr    sw         !);<="
 	
 	
 	
	  (0E(FGGGG	 &g.C&DEEEE	 	r5   r  c                   2    e Zd ZU eed                  ed<   dS )!Session.ShippingAddressCollection)ACADAEAFAGAIALAMAOAQARATAUAWAXAZBABBBDr  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CZr  DJDKDMDODZECEEEGEHERr  ETFIFJFKFOr  GAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHNHRHTHUIDr  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NIr  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SD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/   r0   r1   r   r   r3   r4   r5   r6   ShippingAddressCollectionr    sA         moq
 q	
 q	
 q	
d	 	r5   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
d	S )
Session.ShippingCostc                   b    e Zd ZU eed<   	 ded<   	 eed                  ed<   	 ee         ed<   dS )Session.ShippingCost.TaxrU  r!   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_amountNr  r4   r5   r6   Taxr    sq         KKK OOO
  ("    & %SM))) r5   r  r   
amount_taxr   r   shipping_ratetaxesN)r/   r0   r1   r   r  r@   r3   r   r   r   rD   r4   r5   r6   ShippingCostr    s         $	 $	 $	 $	 $	, $	 $	 $	L 	 	 	   ?@@@@	 S	""""	 &s^r5   r  c                   2    e Zd ZU eed<   	 ed         ed<   dS )Session.ShippingOptionshipping_amountr   r  N)r/   r0   r1   r@   r3   r   r4   r5   r6   ShippingOptionr    s:         	 '~6666	 	r5   r  c                   2    e Zd ZU eed<   	 ed         ed<   dS )Session.TaxIdCollectionr-   )if_supportedr  r   N)r/   r0   r1   r2   r3   r   r4   r5   r6   TaxIdCollectionr    s8         	 12222	 	r5   r  c                   z    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dS )Session.TotalDetailsc                       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dS )	Session.TotalDetails.Breakdownc                   &    e Zd ZU eed<   	 ded<   dS )'Session.TotalDetails.Breakdown.DiscountrU  DiscountResourcediscountN)r/   r0   r1   r@   r3   r4   r5   r6   r   r    s2          -,,, r5   r   c                   b    e Zd ZU eed<   	 ded<   	 eed                  ed<   	 ee         ed<   dS )"Session.TotalDetails.Breakdown.TaxrU  r!   r  r  r  r  Nr  r4   r5   r6   r  r     sq           
 $,&$   & !)--- r5   r  	discountsr  )r  r  N)	r/   r0   r1   r   r   r  r   r3   rD   r4   r5   r6   	Breakdownr    s             <   $ $ $ $ $l $ $ $L H~%%% 9 08#!F!Fr5   r  amount_discountamount_shippingr  	breakdownN)	r/   r0   r1   r   r  r@   r3   r   rD   r4   r5   r6   TotalDetailsr    s         <	G <	G <	G <	G <	G <	G <	G <	G| 	 "#&&&	 	 I&&&&)95r5   r  c                   J    e Zd ZU  G d de          Zee         ed<   deiZdS )Session.WalletOptionsc                   2    e Zd ZU eed                  ed<   dS )Session.WalletOptions.Link)r   r  displayNr   r4   r5   r6   r6  r  `  s,         go67777 r5   r6  r  N)r/   r0   r1   r   r6  r   r3   rD   r4   r5   r6   WalletOptionsr  _  sX         	 	 	 	 	< 	 	 	 tn$d^r5   r  adaptive_pricingafter_expirationr=   r   r   automatic_tax)r   r   billing_address_collectionbranding_settings
cancel_urlclient_reference_idclient_secretcollected_informationconsentconsent_collectioncreatedr  currency_conversionri  custom_textr   customercustomer_account)rq  if_requiredcustomer_creationcustomer_detailscustomer_emailr  excluded_payment_method_typesr>   r  r   r  invoice_creationr   
line_itemslivemode))r   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-TWlocalerm  )paymentsetupr  modename_collectionobjectoptional_items)
mobile_appweborigin_contextr   payment_intentr   payment_linkpayment_method_collection$payment_method_configuration_detailspayment_method_optionspayment_method_types)no_payment_requiredpaidunpaidpayment_statusr  phone_number_collectionpresentment_detailsrecovered_from)rq  r  r  redirect_on_completionr  saved_payment_method_optionsr   setup_intentshipping_address_collectionshipping_costshipping_options)rR   expiredopenrU   )r   bookdonatepay	subscribesubmit_typer   r  success_urltax_id_collectiontotal_details)r   embeddedhostedui_moder?   wallet_optionsparamsr"   returnc                 r    t          d|                     d|                                 |                    S )4
        Creates a Checkout Session object.
        r)   postrm  )r   _static_request	class_urlclsrm  s     r6   createzSession.create	  sB    
     
 
 	
r5   c                    K   t          d|                     d|                                 |           d{V           S )rp  r)   rq  rr  N)r   _static_request_asyncrt  ru  s     r6   create_asynczSession.create_async	  sd       ++ ,        
 
 	
r5   sessionr#   c                     t          d|                     dd                    t          |                    |                    S )  
        A Checkout Session can be expired when it is in one of these statuses: open

        After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
        r)   rq  &/v1/checkout/sessions/{session}/expirer{  rr  )r   rs  formatr
   rv  r{  rm  s      r6   _cls_expirezSession._cls_expire	  s]     8??'00 @       	
 	
 		
r5   c                     dS r}  Nr4   r{  rm  s     r6   expirezSession.expire	  s	     	r5   c                     dS r  r4   rL   rm  s     r6   r  zSession.expire	  	     	r5   r  c                     t          d|                     dd                    t          |                     d                              |                    S )r}  r)   rq  r~  r  r  rr  )r   _requestr  r
   getr  s     r6   r  zSession.expire	  se     MM8??'77 @      	
 	
 		
r5   c                    K   t          d|                     dd                    t          |                    |           d{V           S )r}  r)   rq  r~  r  rr  N)r   ry  r  r
   r  s      r6   _cls_expire_asynczSession._cls_expire_async	  s       ++8??'00 @    ,        	
 	
 		
r5   c                 
   K   dS r  r4   r  s     r6   expire_asynczSession.expire_async
  s       	r5   c                 
   K   dS r  r4   r  s     r6   r  zSession.expire_async
  s       	r5   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )r}  r)   rq  r~  r  r  rr  N)r   _request_asyncr  r
   r  r  s     r6   r  zSession.expire_async&
  s       %%8??'77 @    &        	
 	
 		
r5   r%   c                     |                      d|                                 |          }t          |t                    s$t	          dt          |          j        z            |S )6
        Returns a list of Checkout Sessions.
        r  rr  %Expected list object from API, got %s)rs  rt  
isinstancer   	TypeErrorrM   r/   rv  rm  results      r6   listzSession.list:
  sp     $$MMOO % 
 

 &*-- 	7<<(*  
 r5   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )r  r  rr  Nr  )ry  rt  r  r   r  rM   r/   r  s      r6   
list_asynczSession.list_asyncN
  s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r5   r$   c                     t          t          d         |                     dd                    t	          |                    |                    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  rr  )r   r   rs  r  r
   r  s      r6   _cls_list_line_itemszSession._cls_list_line_itemsb
  sb     z"<CC'00 D       	
 	
 		
r5   c                     dS r  Nr4   r  s     r6   list_line_itemszSession.list_line_itemst
  s	     	r5   c                     dS r  r4   r  s     r6   r  zSession.list_line_items~
  r  r5   r  c                     t          t          d         |                     dd                    t	          |                     d                              |                    S )r  r   r  r  r  r  rr  )r   r   r  r  r
   r  r  s     r6   r  zSession.list_line_items
  sj     z"MM<CC'77 D      	
 	
 		
r5   c                    K   t          t          d         |                     dd                    t	          |                    |           d{V           S )r  r   r  r  r  rr  N)r   r   ry  r  r
   r  s      r6   _cls_list_line_items_asyncz"Session._cls_list_line_items_async
  s       z"++<CC'00 D    ,        	
 	
 		
r5   c                 
   K   dS r  r4   r  s     r6   list_line_items_asynczSession.list_line_items_async
  s       	r5   c                 
   K   dS r  r4   r  s     r6   r  zSession.list_line_items_async
  s       	r5   r  c                    K   t          t          d         |                     dd                    t	          |                     d                              |           d{V           S )r  r   r  r  r  r  rr  N)r   r   r  r  r
   r  r  s     r6   r  zSession.list_line_items_async
  s       z"%%<CC'77 D    &        	
 	
 		
r5   r&   c                     |                                  dt          |          }t          d|                     d||                    S )
        Updates a Checkout Session object.

        Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/advanced/dynamic-updates)
        /r)   rq  rr  )rt  r
   r   rs  rv  r  rm  r?   s       r6   modifyzSession.modify
  sX     +b///:    
 
 	
r5   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r  r  r)   rq  rr  N)rt  r
   r   ry  r  s       r6   modify_asynczSession.modify_async
  sz       +b///:++ ,        
 
 	
r5   r'   c                 @     | |fi |}|                                  |S )6
        Retrieves a Checkout Session object.
        )refreshrv  r  rm  instances       r6   retrievezSession.retrieve
  s2     3r$$V$$r5   c                 P   K    | |fi |}|                                  d{V  |S )r  N)refresh_asyncr  s       r6   retrieve_asynczSession.retrieve_async  sH       3r$$V$$$$&&&&&&&&&r5   )
r  rV  rW  rZ  r\  r]  r^  rg  rh  rl  N)Br/   r0   r1   __doc__r*   r   r   r3   r   r7   rE   rV   rm   r   r   r   r   r   r   rT  r   rq  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r2   r@   rA   r   r   r   r   classmethodr   rw  rz  r  r   staticmethodr  r	   r  r  r  r  r  r  r  r  r  r  r  r  rD   r4   r5   r6   r)   r)   .   sa        
 " :LK'"456KKK    ,   4 4 4 4 4, 4 4 466 6 6 6 6| 6 6 6>9: 9: 9: 9: 9:< 9: 9: 9:v/C /C /C /C /C| /C /C /Cb	 	 	 	 	, 	 	 	
 
 
 
 
L 
 
 
6    \   $]
 ]
 ]
 ]
 ]
l ]
 ]
 ]
~.
 .
 .
 .
 .
\ .
 .
 .
`xD xD xD xD xD, xD xD xDt    <   G; G; G; G; G;, G; G; G;RN N N N N N N N2I I I I I| I I I(    L   ]
 ]
 ]
 ]
 ]
| ]
 ]
 ]
~
 
 
 
 
l 
 
 
           \       L    v v v v vL v v vp;, ;, ;, ;, ;,| ;, ;, ;,z           ,   L6 L6 L6 L6 L6| L6 L6 L6\, , , , , , , , //// //// $D>))) c]""" 3-   (1C)D EEEE   01111 "#&&&
 C=    $$89999 g !!23333 LLL sm ""45555 $$$$ z23333 sm###  (? @AAAA //// SM!!! X'''' $,DI#6666 OOO 	GGG oi01111 //// J/0000 NNN (*	
, , , ,Z tCH~&&&& 4
5555 n----&'''' T,/0000 W%89:::: __=>>>> ?=9::::  (0G(HIIII +3)+    %%9:::: s)### CDDDD +&&&&
 &&;<<<<!"45555SM!!! %W-M%NOOOO  #++D"EEEE ?=9:::: "**C!DDDD L)))) >**** W:;<<<< <=   
 ?>:;;;; #  0000L)))) g<=>>>> 
# ]++++ 
f%:; 
	 
 
 
 [
 
34
	
 
 
 [
 

%+,A%B
	
 
 
 [
&  &'< =	   \ X v&;<     X -((
45
	
 
 
 )(
& 

%+,A%B
	
 
 
 [
&  &'< =	   \ X 45	   X -..
45
	
 
 
 /.
& 12	I	   [& 12	I	   [& 

%+,H%I
	J	
 
 
 [
"  &'C D	J	   \ X ;<	J	   X 011
;<
	J	
 
 
 21
" 

%+,H%I
	J	
 
 
 [
"  &'C D	J	   \ X ;<	J	   X 677
;<
	J	
 
 
 87
" 

 &'< =
	
 
 
 [
$ 

 &'< =
	
 
 
 [
$  &'> ?	   [  &'> ?	   [OO 	 	-	
 	 !5 	7 	/ 	1 	 	z 	O 	X 	O 	> 	,  	/0Q!" 	!"6#$ ##81(A'@%*,%'7  r5   r)   N)Estripe._createable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr	   r
   typingr   r   r   r   r   r   typing_extensionsr   r   r   stripe._accountr   stripe._couponr   stripe._customerr   stripe._discountr   r  stripe._invoicer   stripe._line_itemr   stripe._payment_intentr   stripe._payment_linkr   stripe._promotion_coder   stripe._setup_intentr   stripe._shipping_rater   stripe._subscriptionr   stripe._tax_idr    rg  stripe._tax_rater!   -stripe.params.checkout._session_create_paramsr"   -stripe.params.checkout._session_expire_paramsr#   6stripe.params.checkout._session_list_line_items_paramsr$   +stripe.params.checkout._session_list_paramsr%   -stripe.params.checkout._session_modify_paramsr&   /stripe.params.checkout._session_retrieve_paramsr'   r)   r4   r5   r6   <module>r     s   B A A A A A 4 4 4 4 4 4 * * * * * * = = = = = = . . . . . . A A A A A A : : : : : : : : A A A A A A A A A A A A A A A A < < < < < < < < < < ''''''%%%%%%))))))======''''''******444444000000444444000000222222111111555555((((((                NMMMMM          
z+ z+ z+ z+ z+)$	")$z+ z+ z+ z+ z+r5   