
    khf                         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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)    )
ListObject)RequestOptions)StripeService)sanitize_id)Configuration)Optionalcast)TYPE_CHECKING)ConfigurationCreateParams)ConfigurationDeleteParams)ConfigurationListParams)ConfigurationRetrieveParams)ConfigurationUpdateParamsc            	          e Zd Z	 	 ddeded   dee   defdZ	 	 ddeded   dee   defdZ	 	 ddeded	   dee   defd
Z		 	 ddeded	   dee   defdZ
	 	 ddeded   dee   defdZ	 	 ddeded   dee   defdZ	 	 dded   dee   dee   fdZ	 	 dded   dee   dee   fdZ	 	 dded   dee   defdZ	 	 dded   dee   defdZy)ConfigurationServiceNconfigurationparamsr   optionsreturnc                 |    t        t        | j                  ddj                  t	        |            d||            S )1
        Deletes a Configuration object.
        delete+/v1/terminal/configurations/{configuration}r   apibase_addressr   r   r	   r   _requestformatr   selfr   r   r   s       f/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/terminal/_configuration_service.pyr   zConfigurationService.delete   sO     MM=DD"-m"< E  #  
 	
    c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r   r   r   r   r   r   Nr	   r   _request_asyncr    r   r!   s       r#   delete_asyncz!ConfigurationService.delete_async4   s_      %%=DD"-m"< E  # &  
 	
   =A
A
 	A
r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )3
        Retrieves a Configuration object.
        getr   r   r   r   r   r!   s       r#   retrievezConfigurationService.retrieveJ   sO     MM=DD"-m"< E  #  
 	
r$   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)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        | j                  ddj                  t	        |            d||            S )5
        Updates a new Configuration object.
        postr   r   r   r   r   r!   s       r#   updatezConfigurationService.updatev   sO     MM=DD"-m"< E  #  
 	
r$   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r1   r2   r   r   r   r   Nr&   r!   s       r#   update_asyncz!ConfigurationService.update_async   s_      %%=DD"-m"< E  # &  
 	
r)   r   c           
      X    t        t        t           | j                  ddd||            S ):
        Returns a list of Configuration objects.
        r,   /v1/terminal/configurationsr   r   )r	   r   r   r   r"   r   r   s      r#   listzConfigurationService.list   s9     }%MM-"  	
 		
r$   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r7   r,   r8   r   r   N)r	   r   r   r'   r9   s      r#   
list_asynczConfigurationService.list_async   sI      }%%%-" &  	
 		
s   +86
	8r   c           
      J    t        t        | j                  ddd||            S )5
        Creates a new Configuration object.
        r2   r8   r   r   )r	   r   r   r9   s      r#   createzConfigurationService.create   s4     MM-"  	
 		
r$   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)r>   r2   r8   r   r   N)r	   r   r'   r9   s      r#   create_asyncz!ConfigurationService.create_async   sD      %%-" &  	
 		
s   $1/
	1)NN)__name__
__module____qualname__strr   r   r   r   r(   r-   r/   r3   r5   r   r:   r<   r?   rA    r$   r#   r   r      sP    9=,0	

 45
 .)	

 

2 9=,0	

 45
 .)	

 

2 ;?,0	

 67
 .)	

 

2 ;?,0	

 67
 .)	

 

2 9=,0	

 45
 .)	

 

2 9=,0	

 45
 .)	

 

0 7;,0
23
 .)
 
M	"	
* 7;,0
23
 .)
 
M	"	
* 9=,0
45
 .)
 
	
* 9=,0
45
 .)
 
	
r$   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.terminal._configurationr   typingr   r	   typing_extensionsr
   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   r   rF   r$   r#   <module>rS      sF    + 2 0 $ 8 ! +
O
= O
r$   