
    <@g(                     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	 d dl
mZmZ d dlmZmZmZ  G d d	e      Zy
)    )
ListObject)RequestOptions)StripeService)sanitize_id)Alert)Listcast)LiteralNotRequired	TypedDictc            	          e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      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 fdddedefdZi fddded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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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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')(AlertServicec                   $    e Zd ZU eee      ed<   y)AlertService.ActivateParamsexpandN__name__
__module____qualname__r   r   str__annotations__     \/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/billing/_alert_service.pyActivateParamsr          DI&&	r   r   c                   $    e Zd ZU eee      ed<   y)AlertService.ArchiveParamsr   Nr   r   r   r   ArchiveParamsr      r   r   r   c                   T    e Zd ZU ed   ed<   	 eee      ed<   	 eed<   	 ed   ed<   y)AlertService.CreateParamsusage_threshold
alert_typer   title'AlertService.CreateParamsUsageThresholdN)r   r   r   r
   r   r   r   r   r   r   r   CreateParamsr!      sH    -..	 DI&&	 
	 %%NOO	r   r&   c                   T    e Zd ZU eed      ed<   	 eed<   	 ee   ed<   	 ed   ed<   y)r%   -AlertService.CreateParamsUsageThresholdFilterfiltersgtemeterone_time
recurrenceN)	r   r   r   r   r   r   intr   r
   r   r   r   CreateParamsUsageThresholdz'AlertService.CreateParamsUsageThreshold+   sM    @A
 	
	 	 3	 J''	r   r/   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r(   customertypeN)r   r   r   r   r   r   r
   r   r   r    CreateParamsUsageThresholdFilterz-AlertService.CreateParamsUsageThresholdFilter?   s$    c""	 j!!	r   r3   c                   $    e Zd ZU eee      ed<   y)AlertService.DeactivateParamsr   Nr   r   r   r   DeactivateParamsr5   I   r   r   r6   c                       e Zd ZU eed      ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)	AlertService.ListParamsr"   r#   ending_beforer   limitr+   starting_afterN)	r   r   r   r   r
   r   r   r   r.   r   r   r   
ListParamsr8   O   sv    (9 :;;	 #3''	 DI&&	 3	 3	 $C((	r   r<   c                   $    e Zd ZU eee      ed<   y)AlertService.RetrieveParamsr   Nr   r   r   r   RetrieveParamsr>   i   r   r   r?   paramsr8   optionsreturnc           
      X    t        t        t           | j                  ddd||            S ):
        Lists billing active and inactive alerts
        get/v1/billing/alertsapibase_addressr@   rA   )r	   r   r   _requestselfr@   rA   s      r   listzAlertService.listo   s9     uMM$"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)rD   rE   rF   rG   rH   N)r	   r   r   _request_asyncrK   s      r   
list_asynczAlertService.list_async   sI      u%%$" &  	
 		
s   +86
	8r!   c           
      J    t        t        | j                  ddd||            S ))
        Creates a billing alert
        postrF   rG   rH   )r	   r   rJ   rK   s      r   createzAlertService.create   s4     MM$"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)rR   rS   rF   rG   rH   N)r	   r   rO   rK   s      r   create_asynczAlertService.create_async   sD      %%$" &  	
 		
s   $1/
	1idr>   c                 |    t        t        | j                  ddj                  t	        |            d||            S )7
        Retrieves a billing alert given an ID
        rE   /v1/billing/alerts/{id}rW   rG   rH   r	   r   rJ   formatr   rL   rW   r@   rA   s       r   retrievezAlertService.retrieve   sF     MM)00KO0D"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rY   rE   rZ   r[   rG   rH   Nr	   r   rO   r]   r   r^   s       r   retrieve_asynczAlertService.retrieve_async   sV      %%)00KO0D" &  	
 		
   =A
A
 	A
r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )G
        Reactivates this alert, allowing it to trigger again.
        rS    /v1/billing/alerts/{id}/activater[   rG   rH   r\   r^   s       r   activatezAlertService.activate   sF     MM299[_9M"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)re   rS   rf   r[   rG   rH   Nra   r^   s       r   activate_asynczAlertService.activate_async   sV      %%299[_9M" &  	
 		
rc   r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )g
        Archives this alert, removing it from the list view and APIs. This is non-reversible.
        rS   /v1/billing/alerts/{id}/archiver[   rG   rH   r\   r^   s       r   archivezAlertService.archive  sF     MM188KO8L"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rk   rS   rl   r[   rG   rH   Nra   r^   s       r   archive_asynczAlertService.archive_async  sV      %%188KO8L" &  	
 		
rc   r5   c                 |    t        t        | j                  ddj                  t	        |            d||            S )H
        Deactivates this alert, preventing it from triggering.
        rS   "/v1/billing/alerts/{id}/deactivater[   rG   rH   r\   r^   s       r   
deactivatezAlertService.deactivate/  sM     MM4;;"2 <  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rq   rS   rr   r[   rG   rH   Nra   r^   s       r   deactivate_asynczAlertService.deactivate_asyncE  s]      %%4;;"2 <  # &  
 	
rc   N)r   r   r   r   r   r   r&   r/   r3   r6   r<   r?   r   r   r   rM   rP   rT   rV   r   r_   rb   rg   ri   rm   ro   rs   ru   r   r   r   r   r      s    	 y $Y (9 9 Y 4  -/"$
)
  
 
E		
* -/"$
)
  
 
E		
( NP
1
<J
	
$ NP
1
<J
	
( 13"$	

 .
  	

 

. 13"$	

 .
  	

 

. 13"$	

 .
  	

 

. 13"$	

 .
  	

 

. 02"$	

 -
  	

 

. 02"$	

 -
  	

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

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

 

r   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.billing._alertr   typingr   r	   typing_extensionsr
   r   r   r   r   r   r   <module>r}      s-    + 2 0 $ '  = =M
= M
r   