
    Ch=                         S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJrJrJrJrJr  S S	KJrJrJrJr   " S
 S\S   \S   \S   5      rg)    )CreateableAPIResource)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)sanitize_id)ClassVarDictListOptionalcast)LiteralNotRequired	TypedDictUnpackc                   "   \ rS rSr% SrSr\\S      \S'    " S S\	5      r
 " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r\\S'    \\   \S'    \\S'    \\   \S'    \\S'    \\   \S'    \\
   \S'    \\S'    \\S'    \\   \S'    \\S      \S'    \\S'    \\\\4      \S'    \S   \S'    \\S '    \\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    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S0 j5       r \S\S&\S1   S(S 4S2 j5       r!\S\S&\S1   S(S 4S3 j5       r"S\
0r#S4r$g5)6TaxRate   aR  
Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.

Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
tax_rateOBJECT_NAMEc                   ,    \ rS rSr% \\S'    \\S'   Srg)TaxRate.FlatAmount   amountcurrency N)__name__
__module____qualname____firstlineno__int__annotations__str__static_attributes__r       S/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_tax_rate.py
FlatAmountr      s    	 	r&   r(   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\S'    \\\      \S'    \\S'    \\   \S'    \\	\\4      \S	'    \
\S
'    \\   \S'    \\S      \S'   Srg)TaxRate.CreateParams%   activecountrydescriptiondisplay_nameexpand	inclusivejurisdictionmetadata
percentagestateamusement_taxcommunications_taxgsthstigstjct	lease_taxpstqstretail_delivery_feerst	sales_taxservice_taxvattax_typer   N)r   r   r    r!   r   boolr#   r$   r   r   floatr   r%   r   r&   r'   CreateParamsr*   %   s    D!!	 S!!	 !%%	 	 DI&&	 	 "#&&	 d38n--	 	 3	 
 	
$	r&   rH   c                       \ rS rSr% \\   \S'    \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\	   \S'    \\   \S	'   S
r
g)TaxRate.ListParamsd   r,   zTaxRate.ListParamsCreated|intcreatedending_beforer0   r1   limitstarting_afterr   N)r   r   r    r!   r   rF   r#   r$   r   r"   r%   r   r&   r'   
ListParamsrJ   d   s    D!!	 <==	 #3''	 DI&&	 t$$	 3	 $C((	r&   rP   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)TaxRate.ListParamsCreated   gtgteltlter   N)r   r   r    r!   r   r"   r#   r%   r   r&   r'   ListParamsCreatedrR      sH    	 	 	 	r&   rX   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\\      \S'    \\   \S'    \S   \S	'    \\   \S
'    \\	S      \S'   Sr
g)TaxRate.ModifyParams   r,   r-   r.   r/   r0   r2   zLiteral['']|Dict[str, str]r3   r5   r6   rE   r   N)r   r   r    r!   r   rF   r#   r$   r   r   r%   r   r&   r'   ModifyParamsrZ      s    D!!	 S!!	 !%%	 "#&&	 DI&&	 "#&&	 :;;	 3	 
 	
$	r&   r\   c                   ,    \ rS rSr% \\\      \S'   Srg)TaxRate.RetrieveParams   r0   r   N)	r   r   r    r!   r   r   r$   r#   r%   r   r&   r'   RetrieveParamsr^      s    DI&&	r&   r`   r,   r-   rL   r.   r/   effective_percentageflat_amountidr1   r2   )cityr-   countydistrictmultipler5   jurisdiction_levellivemoder3   objectr4   )rb   r4   	rate_typer5   r6   rE   paramsr*   returnc           	      T    [        SU R                  SU R                  5       US95      $ )
Creates a new tax rate.
r   postrl   )r   _static_request	class_urlclsrl   s     r'   createTaxRate.create/  s6    
    
 	
r&   c           	      p   #    [        SU R                  SU R                  5       US9I Sh  vN 5      $  N7f)ro   r   rp   rq   N)r   _static_request_asyncrs   rt   s     r'   create_asyncTaxRate.create_async=  sC      ++ ,  
 	
s   )64
	6rJ   c                     U R                  SU R                  5       US9n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$ )
Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.
getrq   %Expected list object from API, got %s)rr   rs   
isinstancer   	TypeErrortyper   ru   rl   results      r'   listTaxRate.listM  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~   rq   Nr   )ry   rs   r   r   r   r   r   r   s      r'   
list_asyncTaxRate.list_asynca  sm      00MMO 1 
 

 &*--7<((* 
 
s   #A$A"=A$rZ   c           	      x    U R                  5       < S[        U5      < 3n[        SU R                  SUUS95      $ )
Updates an existing tax rate.
/r   rp   rq   )rs   r	   r   rr   ru   rc   rl   urls       r'   modifyTaxRate.modifyu  sD     +b/:   
 	
r&   c           	         #    U R                  5       < S[        U5      < 3n[        SU R                  SUUS9I Sh  vN 5      $  N7f)r   r   r   rp   rq   N)rs   r	   r   ry   r   s       r'   modify_asyncTaxRate.modify_async  sQ      +b/:++ ,  
 	
s   ;AA
	Ar^   c                 8    U " U40 UD6nUR                  5         U$ )(
Retrieves a tax rate with the given ID
)refreshru   rc   rl   instances       r'   retrieveTaxRate.retrieve  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)r   N)refresh_asyncr   s       r'   retrieve_asyncTaxRate.retrieve_async  s2      r$V$$$&&& 	's   (&(r   N)%r   r   r    r!   __doc__r   r
   r   r#   r   r(   r   rH   rP   r   rX   r\   r`   rF   r   r$   r"   rG   r   classmethodr   rv   rz   r   r   r   r   r   r   r   _inner_class_typesr%   r   r&   r'   r   r      s+   
 2<K'*-.;\ =~ =~^ <I $5~ 5n  L c] L #  #5/)
 *%% 	G O 3- !LM  N tCH~&& J   ;<== C= 	
 $ 
f%;< 
 
 
 
45
	
 
 23	I	 & 23	I	 & 

 &'= >
	
 
  

 &'= >
	
 
   &'? @	   &'? @	  (4r&   r   N)stripe._createable_api_resourcer   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr	   typingr
   r   r   r   r   typing_extensionsr   r   r   r   r   r   r&   r'   <module>r      sM    B * = 2 . A $ 7 7 E E_5)$	")$_5r&   