
    Aih                         d dl mZ d dlmZ d dlmZmZ d dlmZ er0d 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)Order)OrderCancelParams)OrderCreateParams)OrderListParams)OrderRetrieveParams)OrderUpdateParamsc            	          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y)OrderServiceNparamsr   optionsr	   returnListObject[Order]c           
      B    t        d| j                  ddd||            S )
        Lists all Climate order objects. The orders are returned sorted by creation date, with the
        most recently created orders appearing first.
        r   get/v1/climate/ordersapibase_addressr   r   r   _requestselfr   r   s      P/var/www/html/immo/lib/python3.12/site-packages/stripe/climate/_order_service.pylistzOrderService.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OrderService.list_async*   sD      %%$" &  	
 		
    -+
	-r   r
   c           
      B    t        d| j                  ddd||            S )
        Creates a Climate order object for a given Climate product. The order will be processed immediately
        after creation and payment will be deducted your Stripe balance.
        r
   postr   r   r   r   r   s      r!   createzOrderService.create>   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OrderService.create_asyncR   sD      %%$" &  	
 		
r(   orderr   c                 t    t        d| j                  ddj                  t        |            d||            S )T
        Retrieves the details of a Climate order object with the given ID.
        r
   r   /v1/climate/orders/{order}r/   r   r   r   r   formatr   r    r/   r   r   s       r!   retrievezOrderService.retrievef   sG     MM,33+e:L3M"  	
 		
r#   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r1   r
   r   r2   r3   r   r   Nr   r&   r5   r   r6   s       r!   retrieve_asynczOrderService.retrieve_asyncz   sW      %%,33+e:L3M" &  	
 		
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S )]
        Updates the specified order by setting the values of the parameters passed.
        r
   r+   r2   r3   r   r   r4   r6   s       r!   updatezOrderService.update   sG     MM,33+e:L3M"  	
 		
r#   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r=   r
   r+   r2   r3   r   r   Nr9   r6   s       r!   update_asynczOrderService.update_async   sW      %%,33+e:L3M" &  	
 		
r;   r   c                 t    t        d| j                  ddj                  t        |            d||            S )  
        Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
        reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
        might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
        provides 90 days advance notice and refunds the amount_total.
        r
   r+   !/v1/climate/orders/{order}/cancelr3   r   r   r4   r6   s       r!   cancelzOrderService.cancel   sN     MM3::%e, ;  #  
 	
r#   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)rB   r
   r+   rC   r3   r   r   Nr9   r6   s       r!   cancel_asynczOrderService.cancel_async   s^      %%3::%e, ;  # &  
 	
r;   )NN)N)__name__
__module____qualname__r   r"   r'   r,   r.   strr7   r:   r>   r@   rD   rF    r#   r!   r   r      s>    /3.2
*+
 *+
 
	
, /3.2
*+
 *+
 
	
. /3
#
 *+
 
	
. /3
#
 *+
 
	
. 37.2	

 ./
 *+	

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

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

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

 

. 15.2	

 ,-
 *+	

 

8 15.2	

 ,-
 *+	

 

r#   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   stripe.climate._orderr
   *stripe.params.climate._order_cancel_paramsr   *stripe.params.climate._order_create_paramsr   (stripe.params.climate._order_list_paramsr   ,stripe.params.climate._order_retrieve_paramsr   *stripe.params.climate._order_update_paramsr   r   rK   r#   r!   <module>rX      sA    1 $ ! +.6+LLH MQ
= Q
r#   