
    Ai                         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y)    )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y)TaxRateServiceNparamsr   optionsr	   returnListObject[TaxRate]c           
      B    t        d| j                  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      K/var/www/html/immo/lib/python3.12/site-packages/stripe/_tax_rate_service.pylistzTaxRateService.list   s4     !MM"  	
 		
    c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r   r   r   r   r   r   Nr   _request_asyncr   s      r    
list_asynczTaxRateService.list_async&   sD      !%%" &  	
 		
    -+
	-r   r
   c           
      B    t        d| j                  ddd||            S ))
        Creates a new tax rate.
        r
   postr   r   r   r   r   s      r    createzTaxRateService.create9   s4     MM"  	
 		
r"   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r)   r
   r*   r   r   r   Nr$   r   s      r    create_asynczTaxRateService.create_asyncL   sD      %%" &  	
 		
r'   tax_rater   c                 t    t        d| j                  ddj                  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_   sN     MM*11(2 2  #  
 	
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r0   r
   r   r1   r2   r   r   Nr   r%   r4   r   r5   s       r    retrieve_asynczTaxRateService.retrieve_asyncu   s^      %%*11(2 2  # &  
 	
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S )/
        Updates an existing tax rate.
        r
   r*   r1   r2   r   r   r3   r5   s       r    updatezTaxRateService.update   sN     MM*11(2 2  #  
 	
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r<   r
   r*   r1   r2   r   r   Nr8   r5   s       r    update_asynczTaxRateService.update_async   s^      %%*11(2 2  # &  
 	
r:   )NN)N)__name__
__module____qualname__r   r!   r&   r+   r-   strr6   r9   r=   r?    r"   r    r   r      s    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   rD   r"   r    <module>rP      s9    1 $ ! +.6(IEMIc
] c
r"   