
    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)LocationCreateParams)LocationDeleteParams)LocationListParams)LocationRetrieveParams)LocationUpdateParams)Locationc            	          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)LocationServiceNlocationparamsr   optionsr	   returnr   c                 t    t        d| j                  ddj                  t        |            d||            S ),
        Deletes a Location object.
        r   delete!/v1/terminal/locations/{location}r   apibase_addressr   r   r   _requestformatr   selfr   r   r   s       T/var/www/html/immo/lib/python3.12/site-packages/stripe/terminal/_location_service.pyr   zLocationService.delete   sN     MM3::(2 ;  #  
 	
    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LocationService.delete_async2   s^      %%3::(2 ;  # &  
 	
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S ).
        Retrieves a Location object.
        r   getr   r   r   r   r   r!   s       r#   retrievezLocationService.retrieveH   sN     MM3::(2 ;  #  
 	
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LocationService.retrieve_async^   s^      %%3::(2 ;  # &  
 	
r)   r   c                 t    t        d| 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.
        r   postr   r   r   r   r   r!   s       r#   updatezLocationService.updatet   sN     MM3::(2 ;  #  
 	
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LocationService.update_async   s^      %%3::(2 ;  # &  
 	
r)   r   ListObject[Location]c           
      B    t        d| j                  ddd||            S )5
        Returns a list of Location objects.
        r6   r,   /v1/terminal/locationsr   r   r   r   r"   r   r   s      r#   listzLocationService.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LocationService.list_async   sD      "%%(" &  	
 		
    -+
	-r
   c           
      B    t        d| 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.
        r   r2   r9   r   r   r:   r;   s      r#   createzLocationService.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LocationService.create_async   sD      %%(" &  	
 		
r@   )NN)__name__
__module____qualname__strr   r   r(   r-   r/   r3   r5   r<   r?   rC   rE    r$   r#   r   r      sP    48.2	

 /0
 *+	

 

2 48.2	

 /0
 *+	

 

2 6:.2	

 12
 *+	

 

2 6:.2	

 12
 *+	

 

2 48.2	

 /0
 *+	

 

2 48.2	

 /0
 *+	

 

0 26.2
-.
 *+
 
 	
* 26.2
-.
 *+
 
 	
* 48.2
/0
 *+
 
	
, 48.2
/0
 *+
 
	
r$   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   .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   stripe.terminal._locationr   r   rJ   r$   r#   <module>rW      sI    1 $ ! +.6 P 3Q
m Q
r$   