
    kh                         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 d dlmZ erd dlmZ d d	lmZ  G d
 de      Zy)    )
ListObject)RequestOptions)StripeService)TaxCode)sanitize_id)Optionalcast)TYPE_CHECKING)TaxCodeListParams)TaxCodeRetrieveParamsc            	           e Zd Z	 	 dded   dee   dee   fdZ	 	 dded   dee   dee   fdZ	 	 dde	ded	   dee   defd
Z
	 	 dde	ded	   dee   defdZy)TaxCodeServiceNparamsr   optionsreturnc           
      X    t        t        t           | 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.
        get/v1/tax_codesapibase_addressr   r   )r	   r   r   _requestselfr   r   s      X/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/_tax_code_service.pylistzTaxCodeService.list   s9     wMM"  	
 		
    c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r   r   r   r   r   N)r	   r   r   _request_asyncr   s      r   
list_asynczTaxCodeService.list_async$   sI      w%%" &  	
 		
s   +86
	8idr   c                 |    t        t        | 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   /v1/tax_codes/{id}r"   r   r   )r	   r   r   formatr   r   r"   r   r   s       r   retrievezTaxCodeService.retrieve7   sF     MM$++{2+?"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r$   r   r%   r&   r   r   N)r	   r   r    r'   r   r(   s       r   retrieve_asynczTaxCodeService.retrieve_asyncK   sV      %%$++{2+?" &  	
 		
s   =A
A
 	A
)NN)__name__
__module____qualname__r   r   r   r   r   r!   strr)   r+    r   r   r   r      s     15,0
,-
 .)
 
G		
* 15,0
,-
 .)
 
G		
, 59,0	

 01
 .)	

 

. 59,0	

 01
 .)	

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