
    <@g                     b    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  G d de      Zy)	    )CustomerSession)RequestOptions)StripeService)Listcast)LiteralNotRequired	TypedDictc                       e Zd 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	i fddde
defdZi fddde
defdZy)CustomerSessionServicec                   <    e Zd ZU ded<   	 eed<   	 eee      ed<   y)#CustomerSessionService.CreateParams-CustomerSessionService.CreateParamsComponents
componentscustomerexpandN)__name__
__module____qualname____annotations__strr	   r        _/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_customer_session_service.pyCreateParamsr      s/    CC	 	 DI&&	r   r   c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r   6CustomerSessionService.CreateParamsComponentsBuyButton
buy_button;CustomerSessionService.CreateParamsComponentsPaymentElementpayment_element9CustomerSessionService.CreateParamsComponentsPricingTablepricing_tableN)r   r   r   r	   r   r   r   r   CreateParamsComponentsz-CustomerSessionService.CreateParamsComponents   sE    D
 	
	 %I
 	
	 #G
 	
	r   r#   c                       e Zd ZU eed<   y)r   enabledNr   r   r   boolr   r   r   r   CreateParamsComponentsBuyButtonz6CustomerSessionService.CreateParamsComponentsBuyButton-       	r   r(   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r%   CCustomerSessionService.CreateParamsComponentsPaymentElementFeaturesfeaturesN)r   r   r   r'   r   r	   r   r   r   $CreateParamsComponentsPaymentElementz;CustomerSessionService.CreateParamsComponentsPaymentElement3   s#    	 Q
 	
	r   r-   c                       e Zd ZU eeed         ed<   	 eed      ed<   	 ee   ed<   	 eed      ed<   	 eed      ed<   	 eed      ed	<   y
)r+   )alwayslimitedunspecified&payment_method_allow_redisplay_filters)disabledr%   payment_method_redisplaypayment_method_redisplay_limitpayment_method_removepayment_method_save)off_session
on_sessionpayment_method_save_usageN)r   r   r   r	   r   r   r   intr   r   r   ,CreateParamsComponentsPaymentElementFeatureszCCustomerSessionService.CreateParamsComponentsPaymentElementFeatures?   s    0;;<=1
 	
	
 #.g6K.L"MM	 )4C(88	  +73H+IJJ	
 )1F)GHH	
 $//0$
 	
	r   r<   c                       e Zd ZU eed<   y)r!   r%   Nr&   r   r   r   "CreateParamsComponentsPricingTablez9CustomerSessionService.CreateParamsComponentsPricingTablee   r)   r   r>   paramsr   optionsreturnc           
      J    t        t        | j                  ddd||            S )
        Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
        post/v1/customer_sessionsapibase_addressr?   r@   )r   r   _requestselfr?   r@   s      r   createzCustomerSessionService.createk   s4     MM'"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)rC   rD   rE   rF   rG   N)r   r   _request_asyncrJ   s      r   create_asyncz#CustomerSessionService.create_async~   sD      %%'" &  	
 		
s   $1/
	1N)r   r   r   r
   r   r#   r(   r-   r<   r>   r   r   rL   rO   r   r   r   r   r   
   s    y  () 
y 
$y $LY  #%
5
  
 
	
, #%
5
  
 
	
r   r   N)stripe._customer_sessionr   stripe._request_optionsr   stripe._stripe_servicer   typingr   r   typing_extensionsr   r	   r
   r   r   r   r   <module>rU      s'    5 2 0  = =E
] E
r   