
    Ch                     h    S SK Jr  S SKJr  S SKJr  S SKJrJr  S SK	J
r
JrJr   " S S\S   5      rg)	    )
ListObject)ListableAPIResource)RequestOptions)ClassVarList)LiteralNotRequiredUnpackc                   2   \ rS rSr% SrSr\\S      \S'    " S S\	5      r
 " S S\	5      r\\S	'    \\S
'    \\S'    \S   \S'    \S\S   S\S    4S j5       r\S\S   S\S    4S j5       r\S
\S\S   SS 4S j5       r\S
\S\S   SS 4S j5       rSrg)TaxCode
   zg
[Tax codes](https://stripe.com/docs/tax/tax-categories) classify goods and services for tax purposes.
tax_codeOBJECT_NAMEc                   b    \ rS rSr% \\   \S'    \\\      \S'    \\   \S'    \\   \S'   Sr	g)TaxCode.ListParams   ending_beforeexpandlimitstarting_after N)
__name__
__module____qualname____firstlineno__r	   str__annotations__r   int__static_attributes__r       S/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_tax_code.py
ListParamsr      sL    "3''	 DI&&	 3	 $C((	r    r"   c                   ,    \ rS rSr% \\\      \S'   Srg)TaxCode.RetrieveParams#   r   r   N)	r   r   r   r   r	   r   r   r   r   r   r    r!   RetrieveParamsr$   #   s    DI&&	r    r&   descriptionidnameobjectparamsr   returnc                     U R                  SU R                  5       US9n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$ )
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r+   %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrortyper   clsr+   results      r!   listTaxCode.list:   s`     $$MMO % 

 &*--7<((* 
 r    c                    #    U R                  SU R                  5       US9I Sh  vN n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$  N<7f)r.   r/   r0   Nr1   )_static_request_asyncr3   r4   r   r5   r6   r   r7   s      r!   
list_asyncTaxCode.list_asyncN   sm      00MMO 1 
 

 &*--7<((* 
 
s   #A$A"=A$r$   c                 8    U " U40 UD6nUR                  5         U$ )
Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.
)refreshr8   r(   r+   instances       r!   retrieveTaxCode.retrieveb   s$     r$V$r    c                 T   #    U " U40 UD6nUR                  5       I Sh  vN   U$  N7f)rA   N)refresh_asyncrC   s       r!   retrieve_asyncTaxCode.retrieve_asyncm   s2      r$V$$$&&& 	's   (&(r   N)r   r   r   r   __doc__r   r   r   r   r   r"   r&   r   classmethodr
   r   r:   r>   rE   rI   r   r   r    r!   r   r   
   s.    2<K'*-.;^ $   	G I J 23	I	 & 23	I	 &  &'? @	   &'? @	 r    r   N)stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   typingr   r   typing_extensionsr   r	   r
   r   r   r    r!   <module>rR      s-    + = 2 ! : :l!), lr    