
    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  G d
 de      Zy)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)TaxCode)TaxCodeListParams)TaxCodeRetrieveParamsc            	           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
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)TaxCodeServiceNparamsr   optionsr	   returnListObject[TaxCode]c           
      B    t        d| j                  ddd||            S )
        A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations.
        r   get/v1/tax_codesapibase_addressr   r   )r   _requestselfr   r   s      K/var/www/html/immo/lib/python3.12/site-packages/stripe/_tax_code_service.pylistzTaxCodeService.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TaxCodeService.list_async$   sD      !%%" &  	
 		
s    -+
	-idr   r
   c                 t    t        d| j                  ddj                  t        |            d||            S )
        Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.
        r
   r   /v1/tax_codes/{id}r#   r   r   )r   r   formatr   r   r#   r   r   s       r   retrievezTaxCodeService.retrieve7   sF     MM$++{2+?"  	
 		
r   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r%   r
   r   r&   r'   r   r   N)r   r!   r(   r   r)   s       r   retrieve_asynczTaxCodeService.retrieve_asyncK   sV      %%$++{2+?" &  	
 		
s   9AA
	A)NN)	__name__
__module____qualname__r   r   r"   strr*   r,    r   r   r   r      s     15.2
,-
 *+
 
	
* 15.2
,-
 *+
 
	
, 59.2	

 01
 *+	

 

. 59.2	

 01
 *+	

 

r   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   stripe._tax_coder
   #stripe.params._tax_code_list_paramsr   'stripe.params._tax_code_retrieve_paramsr   r   r1   r   r   <module>r;      s3    1 $ ! +.6(EMM
] M
r   