
    _j                         d dl mZ d dlmZ d dlmZmZ d dlmZ er*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  G d de          ZdS )    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)TaxRate)TaxRateCreateParams)TaxRateListParams)TaxRateRetrieveParams)TaxRateUpdateParamsc            	          e Zd Z	 	 dded         ded         ddfdZ	 	 dded         ded         ddfd	Z	 ddd
ded         ddfdZ	 ddd
ded         ddfdZ	 	 ddeded         ded         ddfdZ		 	 ddeded         ded         ddfdZ
	 	 ddeded         ded         ddfdZ	 	 ddeded         ded         ddfdZdS )TaxRateServiceNparamsr   optionsr	   returnListObject[TaxRate]c           
      R    t          d|                     ddd||                    S )
        Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.
        r   get/v1/tax_ratesapibase_addressr   r   r   _requestselfr   r   s      \/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/_tax_rate_service.pylistzTaxRateService.list   s>     !MM"   	
 	
 		
    c           
      b   K   t          d|                     ddd||           d{V           S )r   r   r   r   r   r   Nr   _request_asyncr   s      r    
list_asynczTaxRateService.list_async&   sb       !%%" &        	
 	
 		
r"   r   r
   c           
      R    t          d|                     ddd||                    S ))
        Creates a new tax rate.
        r
   postr   r   r   r   r   s      r    createzTaxRateService.create9   s>     MM"   	
 	
 		
r"   c           
      b   K   t          d|                     ddd||           d{V           S )r(   r
   r)   r   r   r   Nr$   r   s      r    create_asynczTaxRateService.create_asyncL   sb       %%" &        	
 	
 		
r"   tax_rater   c                     t          d|                     dd                    t          |                    d||                    S )8
        Retrieves a tax rate with the given ID
        r
   r   /v1/tax_rates/{tax_rate}r-   r   r   r   r   formatr   r   r-   r   r   s       r    retrievezTaxRateService.retrieve_   s`     MM*11(22 2   #   
 
 	
r"   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r/   r
   r   r0   r1   r   r   Nr   r%   r3   r   r4   s       r    retrieve_asynczTaxRateService.retrieve_asyncu   s       %%*11(22 2   # &        
 
 	
r"   r   c                     t          d|                     dd                    t          |                    d||                    S )/
        Updates an existing tax rate.
        r
   r)   r0   r1   r   r   r2   r4   s       r    updatezTaxRateService.update   s`     MM*11(22 2   #   
 
 	
r"   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r:   r
   r)   r0   r1   r   r   Nr7   r4   s       r    update_asynczTaxRateService.update_async   s       %%*11(22 2   # &        
 
 	
r"   )NN)N)__name__
__module____qualname__r   r!   r&   r*   r,   strr5   r8   r;   r=    r"   r    r   r      sr        15.2
 
,-
 *+
 
	
 
 
 
* 15.2
 
,-
 *+
 
	
 
 
 
, /3
 
%
 *+
 
	
 
 
 
, /3
 
%
 *+
 
	
 
 
 
, 59.2	
 

 01
 *+	

 

 
 
 
2 59.2	
 

 01
 *+	

 

 
 
 
2 37.2	
 

 ./
 *+	

 

 
 
 
2 37.2	
 

 ./
 *+	

 

 
 
 
 
 
r"   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   stripe._tax_rater
   %stripe.params._tax_rate_create_paramsr   #stripe.params._tax_rate_list_paramsr   'stripe.params._tax_rate_retrieve_paramsr   %stripe.params._tax_rate_update_paramsr   r   rB   r"   r    <module>rN      s   1 0 0 0 0 0 $ $ $ $ $ $ ! ! ! ! ! ! ! ! + + + + + + J......666666((((((IIIIIIEEEEEEMMMMMMIIIIIIc
 c
 c
 c
 c
] c
 c
 c
 c
 c
r"   