o
    Bi                     @   sp   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	 d	eZd
S )    )
ListObject)RequestOptions)StripeService)TaxCode)sanitize_id)Listcast)NotRequired	TypedDictc                	   @   s   e Zd ZG dd deZG dd deZi i fdddedee fd	d
Z	i i fdddedee fddZ
i i fdedddedefddZi i fdedddedefddZdS )TaxCodeServicec                   @   sH   e Zd ZU ee ed< 	 eee  ed< 	 ee ed< 	 ee ed< dS )TaxCodeService.ListParamsending_beforeexpandlimitstarting_afterN)__name__
__module____qualname__r	   str__annotations__r   int r   r   X/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_tax_code_service.py
ListParams   s   
 r   c                   @   s   e Zd ZU eee  ed< dS )TaxCodeService.RetrieveParamsr   N)r   r   r   r	   r   r   r   r   r   r   r   RetrieveParams   s   
 r   paramsr   optionsreturnc              	   C   s   t tt | jd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   r   r   r   list%   s   zTaxCodeService.listc              	      s&   t tt | jddd||dI dH S )r   r    r!   r"   r#   N)r   r   r   _request_asyncr&   r   r   r   
list_async8   s   
zTaxCodeService.list_asyncidr   c              	   C   s&   t t| jddjt|dd||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   r   r   r   retrieveK   s   	zTaxCodeService.retrievec              	      s.   t t| jddjt|dd||dI dH S )r,   r    r-   r.   r"   r#   N)r   r   r)   r/   r   r0   r   r   r   retrieve_async_   s   	
zTaxCodeService.retrieve_asyncN)r   r   r   r
   r   r   r   r   r   r(   r*   r   r1   r2   r   r   r   r   r      sV    


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   r   <module>   s   