
    <@g                     v    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mZ  G d d	e      Zy
)    )
ListObject)RequestOptions)StripeService)TaxCode)sanitize_id)Listcast)NotRequired	TypedDictc            	           e Zd Z G d de      Z G d de      Zi i fdddedee   fd	Z	i i fdddedee   fd
Z
i i fdedddedefdZi i fdedddedefdZy)TaxCodeServicec                   Z    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)TaxCodeService.ListParamsending_beforeexpandlimitstarting_afterN)__name__
__module____qualname__r
   str__annotations__r   int     W/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_tax_code_service.py
ListParamsr      sL    "3''	 DI&&	 3	 $C((	r   r   c                   $    e Zd ZU eee      ed<   y)TaxCodeService.RetrieveParamsr   N)r   r   r   r
   r   r   r   r   r   r   RetrieveParamsr      s    DI&&	r   r    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      r   listzTaxCodeService.list%   s9     wMM"  	
 		
r   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_async8   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}r2   r(   r)   )r	   r   r+   formatr   r-   r2   r!   r"   s       r   retrievezTaxCodeService.retrieveK   sF     MM$++{2+?"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r4   r&   r5   r6   r(   r)   N)r	   r   r0   r7   r   r8   s       r   retrieve_asynczTaxCodeService.retrieve_async_   sV      %%$++{2+?" &  	
 		
s   =A
A
 	A
N)r   r   r   r   r   r    r   r   r   r.   r1   r   r9   r;   r   r   r   r   r      s    Y $  /1"$
+
  
 
G		
* /1"$
+
  
 
G		
, 35"$	

 0
  	

 

. 35"$	

 0
  	

 

r   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._tax_coder   stripe._utilr   typingr   r	   typing_extensionsr
   r   r   r   r   r   <module>rC      s*    + 2 0 $ $  4e
] e
r   