
    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r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)Product)ProductListParams)ProductRetrieveParamsc            	           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
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)ProductServiceNparamsr   optionsr	   returnListObject[Product]c           
      B    t        d| j                  ddd||            S )>
        Lists all available Climate product objects.
        r   get/v1/climate/productsapibase_addressr   r   )r   _requestselfr   r   s      R/var/www/html/immo/lib/python3.12/site-packages/stripe/climate/_product_service.pylistzProductService.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ProductService.list_async&   sD      !%%&" &  	
 		
s    -+
	-productr   r
   c                 t    t        d| j                  ddj                  t        |            d||            S )O
        Retrieves the details of a Climate product with the given ID.
        r
   r   /v1/climate/products/{product}r#   r   r   )r   r   formatr   r   r#   r   r   s       r   retrievezProductService.retrieve9   sN     MM077'0 8  #  
 	
r   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r%   r
   r   r&   r'   r   r   N)r   r!   r(   r   r)   s       r   retrieve_asynczProductService.retrieve_asyncO   s^      %%077'0 8  # &  
 	
s   9AA
	A)NN)	__name__
__module____qualname__r   r   r"   strr*   r,    r   r   r   r      s     15.2
,-
 *+
 
	
* 15.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.climate._productr
   *stripe.params.climate._product_list_paramsr   .stripe.params.climate._product_retrieve_paramsr   r   r1   r   r   <module>r;      s5    1 $ ! +.6/L
Q
] Q
r   