
    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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)ConfigurationCreateParams)ConfigurationDeleteParams)ConfigurationListParams)ConfigurationRetrieveParams)ConfigurationUpdateParams)Configurationc            	          e Z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   ded   ddf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   ded   ddfdZy)ConfigurationServiceNconfigurationparamsr   optionsr	   returnr   c                 t    t        d| j                  ddj                  t        |            d||            S )1
        Deletes a Configuration object.
        r   delete+/v1/terminal/configurations/{configuration}r   apibase_addressr   r   r   _requestformatr   selfr   r   r   s       Y/var/www/html/immo/lib/python3.12/site-packages/stripe/terminal/_configuration_service.pyr   zConfigurationService.delete   sO     MM=DD"-m"< E  #  
 	
    c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r   r   r   r   r   r   r   Nr   _request_asyncr    r   r!   s       r#   delete_asyncz!ConfigurationService.delete_async4   s_      %%=DD"-m"< E  # &  
 	
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S )3
        Retrieves a Configuration object.
        r   getr   r   r   r   r   r!   s       r#   retrievezConfigurationService.retrieveJ   sO     MM=DD"-m"< E  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r+   r   r,   r   r   r   r   Nr&   r!   s       r#   retrieve_asyncz#ConfigurationService.retrieve_async`   s_      %%=DD"-m"< E  # &  
 	
r)   r   c                 t    t        d| j                  ddj                  t        |            d||            S )5
        Updates a new Configuration object.
        r   postr   r   r   r   r   r!   s       r#   updatezConfigurationService.updatev   sO     MM=DD"-m"< E  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r1   r   r2   r   r   r   r   Nr&   r!   s       r#   update_asyncz!ConfigurationService.update_async   s_      %%=DD"-m"< E  # &  
 	
r)   r   ListObject[Configuration]c           
      B    t        d| j                  ddd||            S ):
        Returns a list of Configuration objects.
        r6   r,   /v1/terminal/configurationsr   r   r   r   r"   r   r   s      r#   listzConfigurationService.list   s4     'MM-"  	
 		
r$   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r8   r6   r,   r9   r   r   Nr   r'   r;   s      r#   
list_asynczConfigurationService.list_async   sD      '%%-" &  	
 		
    -+
	-r
   c           
      B    t        d| j                  ddd||            S )5
        Creates a new Configuration object.
        r   r2   r9   r   r   r:   r;   s      r#   createzConfigurationService.create   s4     MM-"  	
 		
r$   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)rB   r   r2   r9   r   r   Nr>   r;   s      r#   create_asyncz!ConfigurationService.create_async   sD      %%-" &  	
 		
r@   )NN)__name__
__module____qualname__strr   r   r(   r-   r/   r3   r5   r<   r?   rC   rE    r$   r#   r   r      sP    9=.2	

 45
 *+	

 

2 9=.2	

 45
 *+	

 

2 ;?.2	

 67
 *+	

 

2 ;?.2	

 67
 *+	

 

2 9=.2	

 45
 *+	

 

2 9=.2	

 45
 *+	

 

0 7;.2
23
 *+
 
%	
* 7;.2
23
 *+
 
%	
* 9=.2
45
 *+
 
	
* 9=.2
45
 *+
 
	
r$   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   3stripe.params.terminal._configuration_create_paramsr
   3stripe.params.terminal._configuration_delete_paramsr   1stripe.params.terminal._configuration_list_paramsr   5stripe.params.terminal._configuration_retrieve_paramsr   3stripe.params.terminal._configuration_update_paramsr   stripe.terminal._configurationr   r   rJ   r$   r#   <module>rW      sH    1 $ ! +.6 =O
= O
r$   