
    kh                         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)Location)Optionalcast)TYPE_CHECKING)LocationCreateParams)LocationDeleteParams)LocationListParams)LocationRetrieveParams)LocationUpdateParamsc            	          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)LocationServiceNlocationparamsr   optionsreturnc                 |    t        t        | j                  ddj                  t	        |            d||            S ),
        Deletes a Location object.
        delete!/v1/terminal/locations/{location}r   apibase_addressr   r   r	   r   _requestformatr   selfr   r   r   s       a/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/terminal/_location_service.pyr   zLocationService.delete   sN     MM3::(2 ;  #  
 	
    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LocationService.delete_async2   s^      %%3::(2 ;  # &  
 	
   =A
A
 	A
r   c                 |    t        t        | j                  ddj                  t	        |            d||            S ).
        Retrieves a Location object.
        getr   r   r   r   r   r!   s       r#   retrievezLocationService.retrieveH   sN     MM3::(2 ;  #  
 	
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LocationService.retrieve_async^   s^      %%3::(2 ;  # &  
 	
r)   r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        postr   r   r   r   r   r!   s       r#   updatezLocationService.updatet   sN     MM3::(2 ;  #  
 	
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LocationService.update_async   s^      %%3::(2 ;  # &  
 	
r)   r   c           
      X    t        t        t           | j                  ddd||            S )5
        Returns a list of Location objects.
        r,   /v1/terminal/locationsr   r   )r	   r   r   r   r"   r   r   s      r#   listzLocationService.list   s9     x 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LocationService.list_async   sI      x %%(" &  	
 		
s   +86
	8r   c           
      J    t        t        | j                  ddd||            S )
        Creates a new Location object.
        For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide.
        r2   r8   r   r   )r	   r   r   r9   s      r#   createzLocationService.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LocationService.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    48,0	

 /0
 .)	

 

2 48,0	

 /0
 .)	

 

2 6:,0	

 12
 .)	

 

2 6:,0	

 12
 .)	

 

2 48,0	

 /0
 .)	

 

2 48,0	

 /0
 .)	

 

0 26,0
-.
 .)
 
H		
* 26,0
-.
 .)
 
H		
* 48,0
/0
 .)
 
	
, 48,0
/0
 .)
 
	
r$   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.terminal._locationr   typingr   r	   typing_extensionsr
   .stripe.params.terminal._location_create_paramsr   .stripe.params.terminal._location_delete_paramsr   ,stripe.params.terminal._location_list_paramsr   0stripe.params.terminal._location_retrieve_paramsr   .stripe.params.terminal._location_update_paramsr   r   rF   r$   r#   <module>rS      sG    + 2 0 $ . ! + P
Q
m Q
r$   