
    Ai                         d dl mZ d dlmZ d dlmZmZ d dlmZ er6d 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 d dlmZ d dlmZ d dlmZ  G d de      Zy)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)Alert)AlertActivateParams)AlertArchiveParams)AlertCreateParams)AlertDeactivateParams)AlertListParams)AlertRetrieveParamsc            	          e Zd Z	 	 dded   ded   ddfdZ	 	 dded   ded   ddfd	Z	 ddd
ded   ddfdZ	 ddd
ded   ddfdZ	 	 ddeded   ded   ddfdZ		 	 ddeded   ded   ddfdZ
	 	 ddeded   ded   ddfdZ	 	 ddeded   ded   ddfdZ	 	 ddeded   ded   ddfdZ	 	 ddeded   ded   ddfdZ	 	 ddeded   ded   ddfdZ	 	 ddeded   ded   ddfdZy)AlertServiceNparamsr   optionsr	   returnListObject[Alert]c           
      B    t        d| j                  ddd||            S ):
        Lists billing active and inactive alerts
        r   get/v1/billing/alertsapibase_addressr   r   r   _requestselfr   r   s      P/var/www/html/immo/lib/python3.12/site-packages/stripe/billing/_alert_service.pylistzAlertService.list   s4     MM$"  	
 		
    c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r   r   r   r   r   r   Nr   _request_asyncr    s      r"   
list_asynczAlertService.list_async.   sD      %%$" &  	
 		
    -+
	-r   r
   c           
      B    t        d| j                  ddd||            S ))
        Creates a billing alert
        r
   postr   r   r   r   r    s      r"   createzAlertService.createA   s4     MM$"  	
 		
r$   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r+   r
   r,   r   r   r   Nr&   r    s      r"   create_asynczAlertService.create_asyncT   sD      %%$" &  	
 		
r)   idr   c                 t    t        d| j                  ddj                  t        |            d||            S )7
        Retrieves a billing alert given an ID
        r
   r   /v1/billing/alerts/{id}r0   r   r   r   r   formatr   r!   r0   r   r   s       r"   retrievezAlertService.retrieveg   sF     MM)00KO0D"  	
 		
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r2   r
   r   r3   r4   r   r   Nr   r'   r6   r   r7   s       r"   retrieve_asynczAlertService.retrieve_async{   sV      %%)00KO0D" &  	
 		
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S )G
        Reactivates this alert, allowing it to trigger again.
        r
   r,    /v1/billing/alerts/{id}/activater4   r   r   r5   r7   s       r"   activatezAlertService.activate   sF     MM299[_9M"  	
 		
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r>   r
   r,   r?   r4   r   r   Nr:   r7   s       r"   activate_asynczAlertService.activate_async   sV      %%299[_9M" &  	
 		
r<   r   c                 t    t        d| j                  ddj                  t        |            d||            S )g
        Archives this alert, removing it from the list view and APIs. This is non-reversible.
        r
   r,   /v1/billing/alerts/{id}/archiver4   r   r   r5   r7   s       r"   archivezAlertService.archive   sF     MM188KO8L"  	
 		
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)rD   r
   r,   rE   r4   r   r   Nr:   r7   s       r"   archive_asynczAlertService.archive_async   sV      %%188KO8L" &  	
 		
r<   r   c                 t    t        d| j                  ddj                  t        |            d||            S )H
        Deactivates this alert, preventing it from triggering.
        r
   r,   "/v1/billing/alerts/{id}/deactivater4   r   r   r5   r7   s       r"   
deactivatezAlertService.deactivate   sM     MM4;;"2 <  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)rJ   r
   r,   rK   r4   r   r   Nr:   r7   s       r"   deactivate_asynczAlertService.deactivate_async   s]      %%4;;"2 <  # &  
 	
r<   )NN)N)__name__
__module____qualname__r   r#   r(   r-   r/   strr8   r;   r@   rB   rF   rH   rL   rN    r$   r"   r   r      s    /3.2
*+
 *+
 
	
* /3.2
*+
 *+
 
	
, /3
#
 *+
 
	
, /3
#
 *+
 
	
, 37.2	

 ./
 *+	

 

. 37.2	

 ./
 *+	

 

. 37.2	

 ./
 *+	

 

. 37.2	

 ./
 *+	

 

. 26.2	

 -.
 *+	

 

. 26.2	

 -.
 *+	

 

. 59.2	

 01
 *+	

 

2 59.2	

 01
 *+	

 

r$   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   stripe.billing._alertr
   ,stripe.params.billing._alert_activate_paramsr   +stripe.params.billing._alert_archive_paramsr   *stripe.params.billing._alert_create_paramsr   .stripe.params.billing._alert_deactivate_paramsr   (stripe.params.billing._alert_list_paramsr   ,stripe.params.billing._alert_retrieve_paramsr   r   rS   r$   r"   <module>ra      sK    1 $ ! +.6+ OL I
o
= o
r$   