o
    Bi?                    @   s   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mZ d dlmZmZmZ G d	d
 d
eZdS )    )
ListObject)RequestOptions)StripeService)sanitize_id)Session)SessionLineItemService)DictListcast)LiteralNotRequired	TypedDictc                	       st  e Zd Z fddZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd  d eZG d!d" d"eZG d#d$ d$eZG d%d& d&eZG d'd( d(eZG d)d* d*eZG d+d, d,eZG d-d. d.eZG d/d0 d0eZG d1d2 d2eZG d3d4 d4eZG d5d6 d6eZG d7d8 d8eZG d9d: d:eZ G d;d< d<eZ!G d=d> d>eZ"G d?d@ d@eZ#G dAdB dBeZ$G dCdD dDeZ%G dEdF dFeZ&G dGdH dHeZ'G dIdJ dJeZ(G dKdL dLeZ)G dMdN dNeZ*G dOdP dPeZ+G dQdR dReZ,G dSdT dTeZ-G dUdV dVeZ.G dWdX dXeZ/G dYdZ dZeZ0G d[d\ d\eZ1G d]d^ d^eZ2G d_d` d`eZ3G dadb dbeZ4G dcdd ddeZ5G dedf dfeZ6G dgdh dheZ7G didj djeZ8G dkdl dleZ9G dmdn dneZ:G dodp dpeZ;G dqdr dreZ<G dsdt dteZ=G dudv dveZ>G dwdx dxeZ?G dydz dzeZ@G d{d| d|eZAG d}d~ d~eZBG dd deZCG dd deZDG dd deZEG dd deZFG dd deZGG dd deZHG dd deZIG dd deZJG dd deZKG dd deZLG dd deZMG dd deZNG dd deZOG dd deZPG dd deZQG dd deZRG dd deZSG dd deZTG dd deZUG dd deZVG dd deZWG dd deZXG dd deZYG dd deZZG dd deZ[G dd deZ\G dd deZ]G dd deZ^G dd deZ_G dd deZ`G dd deZaG dd deZbG dd deZcG dd deZdG ddĄ deZeG ddƄ deZfi i fdddegdehei fdd̄Zji i fdddegdehei fdd΄Zki i fdddegdeifddфZli i fdddegdeifddӄZmi i fdendddegdeifddׄZoi i fdendddegdeifddلZpi i fdendddegdeifdd܄Zqi i fdendddegdeifddބZri i fdendddegdeifddZsi i fdendddegdeifddZt  ZuS )SessionServicec                    s   t  | t| j| _d S )N)super__init__r   
_requestor
line_items)self	requestor	__class__ `/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/checkout/_session_service.pyr      s   zSessionService.__init__c                   @   s  e Zd ZU ed ed< 	 ee ed< 	 ed ed< 	 eed  ed< 	 ee ed< 	 ee ed	< 	 ed
 ed< 	 ee 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d ed< 	 eed  ed< 	 eee  ed< 	 ee	 ed< 	 ed ed< 	 eed  ed< 	 eed  ed < 	 ee
eef  ed!< 	 eed"  ed#< 	 ed$ ed%< 	 eed  ed&< 	 ee ed'< 	 ed( ed)< 	 ed* ed+< 	 eeed,   ed-< 	 ed. ed/< 	 eed0  ed1< 	 ee ed2< 	 ed3 ed4< 	 ed5 ed6< 	 ed7 ed8< 	 eed9  ed:< 	 eed;  ed<< 	 ed= ed>< 	 ee ed?< 	 ed@ edA< 	 eedB  edC< dDS )ESessionService.CreateParams*SessionService.CreateParamsAfterExpirationafter_expirationallow_promotion_codes'SessionService.CreateParamsAutomaticTaxautomatic_tax)autorequiredbilling_address_collection
cancel_urlclient_reference_id,SessionService.CreateParamsConsentCollectionconsent_collectioncurrency&SessionService.CreateParamsCustomFieldcustom_fields%SessionService.CreateParamsCustomTextcustom_textcustomer)alwaysif_requiredcustomer_creationcustomer_email)SessionService.CreateParamsCustomerUpdatecustomer_update#SessionService.CreateParamsDiscount	discountsexpand
expires_at*SessionService.CreateParamsInvoiceCreationinvoice_creation#SessionService.CreateParamsLineItemr   ))r   bgcsdadeelenen-GBeszes-419etfifilfrzfr-CAhrhuid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localemetadata)paymentsetupsubscriptionmode,SessionService.CreateParamsPaymentIntentDatapayment_intent_datapayment_method_collectionpayment_method_configuration,SessionService.CreateParamsPaymentMethodDatapayment_method_data/SessionService.CreateParamsPaymentMethodOptionspayment_method_options)%
acss_debitaffirmafterpay_clearpayalipay
amazon_payau_becs_debit
bacs_debit
bancontactblikboletocardcashappcustomer_balanceepsfpxgiropaygrabpayidealklarnakonbinilink	mobilepay
multibancooxxop24paynowpaypalpix	promptpayrevolut_pay
sepa_debitsofortswishtwintus_bank_account
wechat_payzippayment_method_types0SessionService.CreateParamsPhoneNumberCollectionphone_number_collection)r,   r-   neverredirect_on_completion
return_url4SessionService.CreateParamsSavedPaymentMethodOptionssaved_payment_method_options*SessionService.CreateParamsSetupIntentDatasetup_intent_data4SessionService.CreateParamsShippingAddressCollectionshipping_address_collection)SessionService.CreateParamsShippingOptionshipping_options)r   bookdonatepaysubmit_type+SessionService.CreateParamsSubscriptionDatasubscription_datasuccess_url*SessionService.CreateParamsTaxIdCollectiontax_id_collection)embeddedhostedui_modeN)__name__
__module____qualname__r   __annotations__boolr   strr	   intr   r   r   r   r   CreateParams   s   
 -+r   c                   @      e Zd ZU ed ed< dS )r   2SessionService.CreateParamsAfterExpirationRecoveryrecoveryNr   r   r   r   r   r   r   r   r   CreateParamsAfterExpirationb  
   
 r   c                   @   s$   e Zd ZU ee ed< 	 eed< dS )r   r   enabledNr   r   r   r   r   r   r   r   r   r   #CreateParamsAfterExpirationRecoveryj  
   
 r   c                   @   $   e Zd ZU eed< 	 ed ed< dS )r   r   0SessionService.CreateParamsAutomaticTaxLiability	liabilityNr   r   r   r   r   r   r   r   r   r   CreateParamsAutomaticTaxv     
 r   c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )r   accountr   r   typeNr   r   r   r   r   r   r   r   r   r   r   !CreateParamsAutomaticTaxLiability  
   
 r   c                   @   >   e Zd ZU ed ed< 	 eed  ed< 	 eed  ed< dS )r$   GSessionService.CreateParamsConsentCollectionPaymentMethodReuseAgreementpayment_method_reuse_agreement)r   none
promotions)r   r    terms_of_serviceNr   r   r   r   r   r   r   r   r   r   CreateParamsConsentCollection  s   
 r   c                   @   r   )r   )r   hiddenpositionNr   r   r   r   r   r   r   r   r   8CreateParamsConsentCollectionPaymentMethodReuseAgreement     
 r   c                   @   sf   e Zd ZU ed ed< 	 eed< 	 ded< 	 ed ed< 	 ee ed< 	 ed	 ed
< 	 ed ed< dS )r'   .SessionService.CreateParamsCustomFieldDropdowndropdownkey+SessionService.CreateParamsCustomFieldLabellabel-SessionService.CreateParamsCustomFieldNumericnumericoptional*SessionService.CreateParamsCustomFieldTexttext)r   r   r   r   N)r   r   r   r   r   r   r   r   r   r   r   r   CreateParamsCustomField  s   
 r   c                   @   r   )r   default_value4SessionService.CreateParamsCustomFieldDropdownOptionoptionsN)r   r   r   r   r   r   r	   r   r   r   r   CreateParamsCustomFieldDropdown  r   r   c                   @       e Zd ZU eed< 	 eed< dS )r   r   valueNr   r   r   r   r   r   r   r   r   %CreateParamsCustomFieldDropdownOption  
   
 r   c                   @   s$   e Zd ZU eed< 	 ed ed< dS )r   customr   N)r   r   r   r   r   r   r   r   r   r   CreateParamsCustomFieldLabel  s
   
 r   c                   @   6   e Zd ZU ee ed< 	 ee ed< 	 ee ed< dS )r   r   maximum_lengthminimum_lengthNr   r   r   r   r   r   r   r   r   r   r   CreateParamsCustomFieldNumeric     
 r   c                   @   r   )r   r   r   r   Nr   r   r   r   r   CreateParamsCustomFieldText  r   r   c                   @   sD   e Zd ZU ed ed< 	 ed ed< 	 ed ed< 	 ed ed< d	S )
r)   z<Literal['']|SessionService.CreateParamsCustomTextAfterSubmitafter_submitz@Literal['']|SessionService.CreateParamsCustomTextShippingAddressshipping_addressz7Literal['']|SessionService.CreateParamsCustomTextSubmitsubmitzILiteral['']|SessionService.CreateParamsCustomTextTermsOfServiceAcceptanceterms_of_service_acceptanceNr   r   r   r   r   CreateParamsCustomText  s"   
 r   c                   @      e Zd ZU eed< dS )z0SessionService.CreateParamsCustomTextAfterSubmitmessageNr   r   r   r   r   !CreateParamsCustomTextAfterSubmit     
 r   c                   @   r   )z4SessionService.CreateParamsCustomTextShippingAddressr   Nr   r   r   r   r   %CreateParamsCustomTextShippingAddress  r   r   c                   @   r   )z+SessionService.CreateParamsCustomTextSubmitr   Nr   r   r   r   r   CreateParamsCustomTextSubmit$  r   r   c                   @   r   )z=SessionService.CreateParamsCustomTextTermsOfServiceAcceptancer   Nr   r   r   r   r   .CreateParamsCustomTextTermsOfServiceAcceptance*  r   r   c                   @   sB   e Zd ZU eed  ed< 	 eed  ed< 	 eed  ed< dS )r0   )r   r   addressnameshippingNr   r   r   r   r   r   r   r   r   r   CreateParamsCustomerUpdate0  s   
 r  c                   @   s(   e Zd ZU ee ed< 	 ee ed< dS )r2   couponpromotion_codeNr   r   r   r   r   r   r   r   r   r   CreateParamsDiscount@  r   r  c                   @   r   )r6   r   5SessionService.CreateParamsInvoiceCreationInvoiceDatainvoice_dataNr   r   r   r   r   CreateParamsInvoiceCreationJ  r   r	  c                   @   sv   e Zd ZU ed ed< 	 ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 eeeef  ed	< 	 ed
 ed< dS )r  zLiteral['']|List[str]account_tax_idszRLiteral['']|List[SessionService.CreateParamsInvoiceCreationInvoiceDataCustomField]r(   descriptionfooter;SessionService.CreateParamsInvoiceCreationInvoiceDataIssuerissuerr]   zQLiteral['']|SessionService.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsrendering_optionsN)r   r   r   r   r   r   r   r   r   r   r   &CreateParamsInvoiceCreationInvoiceDataV  s*   
 r  c                   @   r   )z@SessionService.CreateParamsInvoiceCreationInvoiceDataCustomFieldr   r   Nr   r   r   r   r   1CreateParamsInvoiceCreationInvoiceDataCustomFieldz  r   r  c                   @   r   )r  r   r   r   Nr   r   r   r   r   ,CreateParamsInvoiceCreationInvoiceDataIssuer  r   r  c                   @   r   )zESessionService.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsz;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']amount_tax_displayNr   r   r   r   r   6CreateParamsInvoiceCreationInvoiceDataRenderingOptions  r   r  c                   @   sh   e Zd ZU ed ed< 	 eee  ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 eee  ed< d	S )
r8   5SessionService.CreateParamsLineItemAdjustableQuantityadjustable_quantitydynamic_tax_ratesprice,SessionService.CreateParamsLineItemPriceData
price_dataquantity	tax_ratesN)r   r   r   r   r   r	   r   r   r   r   r   r   CreateParamsLineItem  s   
 r  c                   @   s2   e Zd ZU eed< 	 ee ed< 	 ee ed< dS )r  r   maximumminimumN)r   r   r   r   r   r   r   r   r   r   r   &CreateParamsLineItemAdjustableQuantity  s   
 r   c                   @   sn   e Zd ZU eed< 	 ee ed< 	 ed ed< 	 ed ed< 	 eed  ed< 	 ee ed	< 	 ee ed
< dS )r  r&   product7SessionService.CreateParamsLineItemPriceDataProductDataproduct_data5SessionService.CreateParamsLineItemPriceDataRecurring	recurring	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalN)r   r   r   r   r   r   r   r   r   r   r   r   CreateParamsLineItemPriceData  s*   
 r-  c                   @   sZ   e Zd ZU ee ed< 	 eee  ed< 	 eeeef  ed< 	 eed< 	 ee ed< dS )r"  r  imagesr]   r   tax_codeN)r   r   r   r   r   r   r	   r   r   r   r   r   (CreateParamsLineItemPriceDataProductData  s   
 r0  c                   @   s(   e Zd ZU ed ed< 	 ee ed< dS )r$  )daymonthweekyearintervalinterval_countN)r   r   r   r   r   r   r   r   r   r   r   &CreateParamsLineItemPriceDataRecurring  r   r7  c                   @   s   e Zd ZU ee ed< 	 eed  ed< 	 ee ed< 	 eeeef  ed< 	 ee ed< 	 ee ed< 	 eed  ed	< 	 ed
 ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ee ed< dS )rb   application_fee_amount)	automaticautomatic_asyncmanualcapture_methodr  r]   on_behalf_ofreceipt_emailoff_session
on_sessionsetup_future_usage4SessionService.CreateParamsPaymentIntentDataShippingr   statement_descriptorstatement_descriptor_suffix8SessionService.CreateParamsPaymentIntentDataTransferDatatransfer_datatransfer_groupN)	r   r   r   r   r   r   r   r   r   r   r   r   r   CreateParamsPaymentIntentData  s>   
 rI  c                   @   sJ   e Zd ZU ded< 	 ee ed< 	 eed< 	 ee ed< 	 ee ed< dS )rC  ;SessionService.CreateParamsPaymentIntentDataShippingAddressr   carrierr   phonetracking_numberN)r   r   r   r   r   r   r   r   r   r   %CreateParamsPaymentIntentDataShippingT  s   
 rN  c                   @   s\   e Zd ZU ee ed< 	 ee ed< 	 eed< 	 ee ed< 	 ee ed< 	 ee ed< dS )rJ  citycountryline1line2postal_codestateNr  r   r   r   r   ,CreateParamsPaymentIntentDataShippingAddressj  s   
 rU  c                   @   $   e Zd ZU ee ed< 	 eed< dS )rF  amountdestinationN)r   r   r   r   r   r   r   r   r   r   r   )CreateParamsPaymentIntentDataTransferData  r   rY  c                   @      e Zd ZU eed  ed< dS )rf   r,   limitedr)  allow_redisplayNr  r   r   r   r   CreateParamsPaymentMethodData  
   
 r^  c                   @   s  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:< 	 ed; ed<< 	 ed= ed>< 	 ed? ed@< 	 edA edB< dCS )Drh   8SessionService.CreateParamsPaymentMethodOptionsAcssDebitrj   5SessionService.CreateParamsPaymentMethodOptionsAffirmrk   ?SessionService.CreateParamsPaymentMethodOptionsAfterpayClearpayrl   5SessionService.CreateParamsPaymentMethodOptionsAlipayrm   8SessionService.CreateParamsPaymentMethodOptionsAmazonPayrn   :SessionService.CreateParamsPaymentMethodOptionsAuBecsDebitro   8SessionService.CreateParamsPaymentMethodOptionsBacsDebitrp   9SessionService.CreateParamsPaymentMethodOptionsBancontactrq   5SessionService.CreateParamsPaymentMethodOptionsBoletors   3SessionService.CreateParamsPaymentMethodOptionsCardrt   6SessionService.CreateParamsPaymentMethodOptionsCashappru   >SessionService.CreateParamsPaymentMethodOptionsCustomerBalancerv   2SessionService.CreateParamsPaymentMethodOptionsEpsrw   2SessionService.CreateParamsPaymentMethodOptionsFpxrx   6SessionService.CreateParamsPaymentMethodOptionsGiropayry   6SessionService.CreateParamsPaymentMethodOptionsGrabpayrz   4SessionService.CreateParamsPaymentMethodOptionsIdealr{   5SessionService.CreateParamsPaymentMethodOptionsKlarnar|   6SessionService.CreateParamsPaymentMethodOptionsKonbinir}   3SessionService.CreateParamsPaymentMethodOptionsLinkr~   8SessionService.CreateParamsPaymentMethodOptionsMobilepayr   9SessionService.CreateParamsPaymentMethodOptionsMultibancor   3SessionService.CreateParamsPaymentMethodOptionsOxxor   2SessionService.CreateParamsPaymentMethodOptionsP24r   5SessionService.CreateParamsPaymentMethodOptionsPaynowr   5SessionService.CreateParamsPaymentMethodOptionsPaypalr   2SessionService.CreateParamsPaymentMethodOptionsPixr   9SessionService.CreateParamsPaymentMethodOptionsRevolutPayr   8SessionService.CreateParamsPaymentMethodOptionsSepaDebitr   5SessionService.CreateParamsPaymentMethodOptionsSofortr   4SessionService.CreateParamsPaymentMethodOptionsSwishr   <SessionService.CreateParamsPaymentMethodOptionsUsBankAccountr   8SessionService.CreateParamsPaymentMethodOptionsWechatPayr   Nr   r   r   r   r    CreateParamsPaymentMethodOptions  s   
 r  c                   @   sP   e Zd ZU eed  ed< 	 ed ed< 	 eed  ed< 	 eed  ed< d	S )
r`  )cadusdr&   FSessionService.CreateParamsPaymentMethodOptionsAcssDebitMandateOptionsmandate_optionsr   r@  rA  rB  )r9  instantmicrodepositsverification_methodNr  r   r   r   r   )CreateParamsPaymentMethodOptionsAcssDebitY  s   
 	r  c                   @   sb   e Zd ZU ed ed< 	 eeed   ed< 	 ee ed< 	 eed  ed< 	 eed  ed	< d
S )r  zLiteral['']|strcustom_mandate_url)invoicer`   default_forinterval_description)combinedr5  sporadicpayment_schedule)businesspersonaltransaction_typeN)r   r   r   r   r   r	   r   r   r   r   r   r   7CreateParamsPaymentMethodOptionsAcssDebitMandateOptionsw  s   
 r  c                   @   rZ  )ra  r   rB  Nr  r   r   r   r   &CreateParamsPaymentMethodOptionsAffirm     
 r  c                   @   rZ  )rb  r   rB  Nr  r   r   r   r   0CreateParamsPaymentMethodOptionsAfterpayClearpay  r  r  c                   @   rZ  )rc  r   rB  Nr  r   r   r   r   &CreateParamsPaymentMethodOptionsAlipay  r  r  c                   @   rZ  )rd  r   r@  rB  Nr  r   r   r   r   )CreateParamsPaymentMethodOptionsAmazonPay  r  r  c                   @   rZ  )re  r   rB  Nr  r   r   r   r   +CreateParamsPaymentMethodOptionsAuBecsDebit  r  r  c                   @   rZ  )rf  r  rB  Nr  r   r   r   r   )CreateParamsPaymentMethodOptionsBacsDebit  r_  r  c                   @   rZ  )rg  r   rB  Nr  r   r   r   r   *CreateParamsPaymentMethodOptionsBancontact  r  r  c                   @   ,   e Zd ZU ee ed< 	 eed  ed< dS )rh  expires_after_daysr  rB  Nr   r   r   r   r   r   r   r   r   r   r   &CreateParamsPaymentMethodOptionsBoleto  s   
 r  c                   @   sZ   e Zd ZU ed ed< 	 eed  ed< 	 eed  ed< 	 ee ed< 	 ee ed< d	S )
ri  ?SessionService.CreateParamsPaymentMethodOptionsCardInstallmentsinstallments)anyr9  	challengerequest_three_d_securer?  rB   statement_descriptor_suffix_kana!statement_descriptor_suffix_kanjiNr   r   r   r   r   r   r   r   r   r   r   $CreateParamsPaymentMethodOptionsCard  s   
 	r  c                   @      e Zd ZU ee ed< dS )r  r   Nr   r   r   r   r   0CreateParamsPaymentMethodOptionsCardInstallments  r   r  c                   @   rZ  )rj  r  rB  Nr  r   r   r   r   'CreateParamsPaymentMethodOptionsCashapp   r_  r  c                   @   s>   e Zd ZU ed ed< 	 eed  ed< 	 eed  ed< dS )rk  JSessionService.CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferbank_transferfunding_typer   rB  Nr   r   r   r   r   /CreateParamsPaymentMethodOptionsCustomerBalance.  s   
 r  c                   @   s>   e Zd ZU ed ed< 	 eeed   ed< 	 ed ed< dS )r  XSessionService.CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer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_transferr   N)r   r   r   r   r   r	   r   r   r   r   r   ;CreateParamsPaymentMethodOptionsCustomerBalanceBankTransferD  s"   
 r  c                   @   r   )r  rP  Nr   r   r   r   r   ICreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferj  s   
 r  c                   @   rZ  )rl  r   rB  Nr  r   r   r   r   #CreateParamsPaymentMethodOptionsEpsr  r  r  c                   @   rZ  )rm  r   rB  Nr  r   r   r   r   #CreateParamsPaymentMethodOptionsFpx~  r  r  c                   @   rZ  )rn  r   rB  Nr  r   r   r   r   'CreateParamsPaymentMethodOptionsGiropay  r  r  c                   @   rZ  )ro  r   rB  Nr  r   r   r   r   'CreateParamsPaymentMethodOptionsGrabpay  r  r  c                   @   rZ  )rp  r   rB  Nr  r   r   r   r   %CreateParamsPaymentMethodOptionsIdeal  r  r  c                   @   rZ  )rq  r   rB  Nr  r   r   r   r   &CreateParamsPaymentMethodOptionsKlarna  r  r  c                   @   r  )rr  r  r   rB  Nr  r   r   r   r   'CreateParamsPaymentMethodOptionsKonbini  
   
 r  c                   @   rZ  )rs  r  rB  Nr  r   r   r   r   $CreateParamsPaymentMethodOptionsLink  r  r  c                   @   rZ  )rt  r   rB  Nr  r   r   r   r   )CreateParamsPaymentMethodOptionsMobilepay  r  r  c                   @   rZ  )ru  r   rB  Nr  r   r   r   r   *CreateParamsPaymentMethodOptionsMultibanco  r  r  c                   @   r  )rv  r  r   rB  Nr  r   r   r   r   $CreateParamsPaymentMethodOptionsOxxo  r  r  c                   @   s,   e Zd ZU eed  ed< 	 ee ed< dS )rw  r   rB  tos_shown_and_acceptedN)r   r   r   r   r   r   r   r   r   r   r   #CreateParamsPaymentMethodOptionsP24  s
   
 	r  c                   @   rZ  )rx  r   rB  Nr  r   r   r   r   &CreateParamsPaymentMethodOptionsPaynow  r  r  c                   @   sV   e Zd ZU ed ed< 	 eed  ed< 	 ee ed< 	 ee ed< 	 ed ed< d	S )
ry  zLiteral['']|Literal['manual']r<  )zcs-CZzda-DKzde-ATzde-DEzde-LUzel-GRr?   zen-USzes-ESzfi-FIzfr-BEzfr-FRzfr-LUzhu-HUzit-ITznl-BEznl-NLzpl-PLzpt-PTzsk-SKzsv-SEpreferred_locale	referencerisk_correlation_idz*Literal['']|Literal['none', 'off_session']rB  Nr  r   r   r   r   &CreateParamsPaymentMethodOptionsPaypal  s"   
 r  c                   @   r  )rz  expires_after_secondsNr   r   r   r   r   r   r   r   r   r   #CreateParamsPaymentMethodOptionsPixR  r   r  c                   @   rZ  )r{  r  rB  Nr  r   r   r   r   *CreateParamsPaymentMethodOptionsRevolutPayX  r  r  c                   @   rZ  )r|  r  rB  Nr  r   r   r   r   )CreateParamsPaymentMethodOptionsSepaDebitd  r_  r  c                   @   rZ  )r}  r   rB  Nr  r   r   r   r   &CreateParamsPaymentMethodOptionsSofortr  r  r  c                   @   r  )r~  r  Nr  r   r   r   r   %CreateParamsPaymentMethodOptionsSwish~  r   r  c                   @   r   )r  PSessionService.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsfinancial_connectionsr  rB  )r9  r  r  Nr   r   r   r   r   -CreateParamsPaymentMethodOptionsUsBankAccount  s   
 	r  c                   @   s8   e Zd ZU eeed   ed< 	 eeed   ed< dS )r  )balances	ownershippayment_methodtransactionspermissions)r  r  r  prefetchNr   r   r   r   r	   r   r   r   r   r   r   ACreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections  s   
 
r  c                   @   s:   e Zd ZU ee ed< 	 ed ed< 	 eed  ed< dS )r  app_id)androidioswebclientr   rB  Nr   r   r   r   r   )CreateParamsPaymentMethodOptionsWechatPay  s   
 r  c                   @   r   )r   r   N)r   r   r   r   r   r   r   r   r   !CreateParamsPhoneNumberCollection  r   r  c                   @   s4   e Zd ZU eeed   ed< 	 eed  ed< dS )r   r[  allow_redisplay_filters)disabledr   payment_method_saveNr  r   r   r   r   %CreateParamsSavedPaymentMethodOptions  s   
 
r  c                   @   s>   e Zd ZU ee ed< 	 eeeef  ed< 	 ee ed< dS )r   r  r]   r=  N)r   r   r   r   r   r   r   r   r   r   r   CreateParamsSetupIntentData  s   
 r  c                   @   rZ  )r   )ACADAEAFAGAIALAMAOAQARATAUAWAXAZBABBBDBE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CZDEDJDKDMDODZECEEEGEHERESETFIFJFKFOFRGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHNHRHTHUIDIE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NINL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   r   r   r   r   r   %CreateParamsShippingAddressCollection  s   
  rr  c                   @   s(   e Zd ZU ee ed< 	 ed ed< dS )r   shipping_rate9SessionService.CreateParamsShippingOptionShippingRateDatashipping_rate_dataNr  r   r   r   r   CreateParamsShippingOption  s   
 r  c                   @   sz   e Zd ZU ed ed< 	 eed< 	 ed ed< 	 eeeef  ed< 	 eed  ed< 	 ee ed	< 	 eed  ed
< dS )r  ISessionService.CreateParamsShippingOptionShippingRateDataDeliveryEstimatedelivery_estimatedisplay_nameDSessionService.CreateParamsShippingOptionShippingRateDataFixedAmountfixed_amountr]   r&  r*  r/  r   N)r   r   r   r   r   r   r   r   r   r   r   r   *CreateParamsShippingOptionShippingRateData  s*   
 r  c                   @   s(   e Zd ZU ed ed< 	 ed ed< dS )r  PSessionService.CreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximumr  PSessionService.CreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimumr  Nr   r   r   r   r   :CreateParamsShippingOptionShippingRateDataDeliveryEstimate  s   
 r  c                   @   $   e Zd ZU ed ed< 	 eed< dS )r  business_dayr1  hourr2  r3  unitr   Nr   r   r   r   r   r   r   r   r   r   ACreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum  
   
 r  c                   @   r  )r  r  r  r   Nr  r   r   r   r   ACreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum'  r  r  c                   @   s6   e Zd ZU eed< 	 eed< 	 eeedf  ed< dS )r  rW  r&   SSessionService.CreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptionscurrency_optionsN)r   r   r   r   r   r   r   r   r   r   r   r   5CreateParamsShippingOptionShippingRateDataFixedAmount3  s   
 r  c                   @   (   e Zd ZU eed< 	 eed  ed< dS )r  rW  r&  r*  N)r   r   r   r   r   r   r   r   r   r   r   DCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptionsF  s   
 r  c                   @   s   e Zd ZU ee ed< 	 ee ed< 	 eee  ed< 	 ee ed< 	 ed ed< 	 ee	eef  ed< 	 ee ed< 	 ee
d	  ed
< 	 ed ed< 	 ee ed< 	 ee ed< 	 ed ed< dS )r   application_fee_percentbilling_cycle_anchordefault_tax_ratesr  :SessionService.CreateParamsSubscriptionDataInvoiceSettingsinvoice_settingsr]   r=  )create_prorationsr   proration_behavior7SessionService.CreateParamsSubscriptionDataTransferDatarG  	trial_endtrial_period_days8SessionService.CreateParamsSubscriptionDataTrialSettingstrial_settingsN)r   r   r   r   floatr   r   r	   r   r   r   r   r   r   r   CreateParamsSubscriptionDataT  s>   
 r  c                   @   r   )r  @SessionService.CreateParamsSubscriptionDataInvoiceSettingsIssuerr  Nr   r   r   r   r   +CreateParamsSubscriptionDataInvoiceSettings  r   r  c                   @   r   )r  r   r   r   Nr   r   r   r   r   1CreateParamsSubscriptionDataInvoiceSettingsIssuer  r   r  c                   @   rV  )r  amount_percentrX  N)r   r   r   r   r
  r   r   r   r   r   r   (CreateParamsSubscriptionDataTransferData  r   r  c                   @   s   e Zd ZU ded< dS )r  CSessionService.CreateParamsSubscriptionDataTrialSettingsEndBehaviorend_behaviorN)r   r   r   r   r   r   r   r   )CreateParamsSubscriptionDataTrialSettings  r   r  c                   @   r   )r  )cancelcreate_invoicepausemissing_payment_methodNr   r   r   r   r   4CreateParamsSubscriptionDataTrialSettingsEndBehavior  r   r  c                   @   r  )r   r   )if_supportedr   r    N)r   r   r   r   r   r   r   r   r   r   r   CreateParamsTaxIdCollection  s
   
 r  c                   @      e Zd ZU eee  ed< dS )SessionService.ExpireParamsr4   Nr   r   r   r   r	   r   r   r   r   r   r   ExpireParams  r  r  c                   @   s   e Zd ZU ed ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 eee  ed< 	 ee ed< 	 ee ed	< 	 ee ed
< 	 ee ed< 	 eed  ed< 	 ee ed< dS )SessionService.ListParamsz$SessionService.ListParamsCreated|intcreatedr+   (SessionService.ListParamsCustomerDetailscustomer_detailsending_beforer4   limitpayment_intentpayment_linkstarting_after)completeexpiredopenstatusr`   N)	r   r   r   r   r   r   r	   r   r   r   r   r   r   
ListParams  s2   
 r,  c                   @   sD   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )z SessionService.ListParamsCreatedgtgterK   lteNr  r   r   r   r   ListParamsCreated  s   
 r0  c                   @   r   )r!  emailNr   r   r   r   r   ListParamsCustomerDetails	  r   r2  c                   @   r  )SessionService.RetrieveParamsr4   Nr  r   r   r   r   RetrieveParams	  r  r4  c                   @   s,   e Zd ZU eee  ed< 	 ed ed< dS )SessionService.UpdateParamsr4   zLiteral['']|Dict[str, str]r]   Nr  r   r   r   r   UpdateParams	  s
   
 r6  paramsr  r   returnc              	   C   s   t tt | jddd||dS )6
        Returns a list of Checkout Sessions.
        get/v1/checkout/sessionsapibase_addressr7  r   )r
   r   r   _requestr   r7  r   r   r   r   list#	  s   zSessionService.listc              	      s&   t tt | jddd||dI dH S )r9  r:  r;  r<  r=  N)r
   r   r   _request_asyncr@  r   r   r   
list_async6	  s   
zSessionService.list_asyncr   c              	   C   s   t t| jddd||dS )+
        Creates a Session object.
        postr;  r<  r=  )r
   r   r?  r@  r   r   r   createI	  s   zSessionService.createc              	      s"   t t| jddd||dI dH S )rD  rE  r;  r<  r=  N)r
   r   rB  r@  r   r   r   create_async\	  s   
zSessionService.create_asyncsessionr3  c              	   C   &   t t| jddjt|dd||dS )-
        Retrieves a Session object.
        r:  /v1/checkout/sessions/{session}rH  r<  r=  r
   r   r?  formatr   r   rH  r7  r   r   r   r   retrieveo	     	zSessionService.retrievec              	      .   t t| jddjt|dd||dI dH S )rJ  r:  rK  rL  r<  r=  Nr
   r   rB  rN  r   rO  r   r   r   retrieve_async	     	
zSessionService.retrieve_asyncr5  c              	   C   rI  )+
        Updates a Session object.
        rE  rK  rL  r<  r=  rM  rO  r   r   r   update	  rQ  zSessionService.updatec              	      rR  )rV  rE  rK  rL  r<  r=  NrS  rO  r   r   r   update_async	  rU  zSessionService.update_asyncr  c              	   C   rI  )
        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.
        rE  &/v1/checkout/sessions/{session}/expirerL  r<  r=  rM  rO  r   r   r   expire	  s   zSessionService.expirec              	      rR  )rY  rE  rZ  rL  r<  r=  NrS  rO  r   r   r   expire_async	  s   
zSessionService.expire_async)vr   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  rI  rN  rU  rY  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  r  r  r  r  r  r  r,  r0  r2  r4  r6  r   r   r   rA  rC  rF  rG  r   rP  rT  rW  rX  r[  r\  __classcell__r   r   r   r   r      s     R




$

$
P A 

&8
 x
$


?


0








r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.checkout._sessionr   *stripe.checkout._session_line_item_servicer   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   r   <module>   s   