o
    i                     @   s   d dl mZ d dlmZ d dlmZmZ d dlmZ erLd 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 deZdS )    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)ConfigurationCreateParams)ConfigurationDeleteParams)ConfigurationListParams)ConfigurationRetrieveParams)ConfigurationUpdateParams)Configurationc                	   @   s  e Zd Z		d"deded ded ddfd	d
Z		d"deded ded ddfddZ		d"deded ded ddfddZ		d"deded ded ddfddZ		d"deded ded ddfddZ			d"deded ded ddfddZ
		d"ded ded ddfddZ		d"ded ded ddfddZ		d"ded ded ddfddZ		d"ded ded ddfd d!ZdS )#ConfigurationServiceNconfigurationparamsr
   optionsr   returnr   c              	   C   &   t d| jddjt|dd||dS )1
        Deletes a Configuration object.
        r   delete+/v1/terminal/configurations/{configuration}r   apibase_addressr   r   r   _requestformatr   selfr   r   r    r!   /var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/terminal/_configuration_service.pyr         	zConfigurationService.deletec              	      .   t d| jddjt|dd||dI dH S )r   r   r   r   r   r   r   Nr   _request_asyncr   r   r   r!   r!   r"   delete_async4      	
z!ConfigurationService.delete_asyncr   c              	   C   r   )3
        Retrieves a Configuration object.
        r   getr   r   r   r   r   r   r!   r!   r"   retrieveJ   r#   zConfigurationService.retrievec              	      r$   )r)   r   r*   r   r   r   r   Nr%   r   r!   r!   r"   retrieve_async`   r(   z#ConfigurationService.retrieve_asyncr   c              	   C   r   )5
        Updates a new Configuration object.
        r   postr   r   r   r   r   r   r!   r!   r"   updatev   r#   zConfigurationService.updatec              	      r$   )r-   r   r.   r   r   r   r   Nr%   r   r!   r!   r"   update_async   r(   z!ConfigurationService.update_asyncr   ListObject[Configuration]c              	   C      t d| jddd||dS ):
        Returns a list of Configuration objects.
        r1   r*   /v1/terminal/configurationsr   r   r   r   r    r   r   r!   r!   r"   list      zConfigurationService.listc              	      "   t d| jddd||dI dH S )r3   r1   r*   r4   r   r   Nr   r&   r6   r!   r!   r"   
list_async      
zConfigurationService.list_asyncr	   c              	   C   r2   )5
        Creates a new Configuration object.
        r   r.   r4   r   r   r5   r6   r!   r!   r"   create   r8   zConfigurationService.createc              	      r9   )r=   r   r.   r4   r   r   Nr:   r6   r!   r!   r"   create_async   r<   z!ConfigurationService.create_async)NN)__name__
__module____qualname__strr   r   r'   r+   r,   r/   r0   r7   r;   r>   r?   r!   r!   r!   r"   r      s    








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   r!   r!   r!   r"   <module>   s   