
    _j                         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dS )    )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dS )ConfigurationServiceNconfigurationparamsr   optionsr	   returnr   c                     t          d|                     dd                    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       j/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/terminal/_configuration_service.pyr   zConfigurationService.delete   sa     MM=DD"-m"<"< E   #   
 
 	
    c                    K   t          d|                     dd                    t          |                    d||           d{V           S )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   # &        
 
 	
r$   r   c                     t          d|                     dd                    t          |                    d||                    S )3
        Retrieves a Configuration object.
        r   getr   r   r   r   r   r!   s       r#   retrievezConfigurationService.retrieveJ   sa     MM=DD"-m"<"< E   #   
 
 	
r$   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )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          d|                     dd                    t          |                    d||                    S )5
        Updates a new Configuration object.
        r   postr   r   r   r   r   r!   s       r#   updatezConfigurationService.updatev   sa     MM=DD"-m"<"< E   #   
 
 	
r$   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r0   r   r1   r   r   r   r   Nr&   r!   s       r#   update_asyncz!ConfigurationService.update_async   s       %%=DD"-m"<"< E   # &        
 
 	
r$   r   ListObject[Configuration]c           
      R    t          d|                     ddd||                    S ):
        Returns a list of Configuration objects.
        r5   r+   /v1/terminal/configurationsr   r   r   r   r"   r   r   s      r#   listzConfigurationService.list   s>     'MM-"   	
 	
 		
r$   c           
      b   K   t          d|                     ddd||           d{V           S )r7   r5   r+   r8   r   r   Nr   r'   r:   s      r#   
list_asynczConfigurationService.list_async   sb       '%%-" &        	
 	
 		
r$   r
   c           
      R    t          d|                     ddd||                    S )5
        Creates a new Configuration object.
        r   r1   r8   r   r   r9   r:   s      r#   createzConfigurationService.create   s>     MM-"   	
 	
 		
r$   c           
      b   K   t          d|                     ddd||           d{V           S )r@   r   r1   r8   r   r   Nr=   r:   s      r#   create_asyncz!ConfigurationService.create_async   sb       %%-" &        	
 	
 		
r$   )NN)__name__
__module____qualname__strr   r   r(   r,   r.   r2   r4   r;   r>   rA   rC    r$   r#   r   r      s*        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   rH   r$   r#   <module>rU      si   1 0 0 0 0 0 $ $ $ $ $ $ ! ! ! ! ! ! ! ! + + + + + + =......666666                          =<<<<<O
 O
 O
 O
 O
= O
 O
 O
 O
 O
r$   