
    _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)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dS )LocationServiceNlocationparamsr   optionsr	   returnr   c                     t          d|                     dd                    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       e/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/terminal/_location_service.pyr   zLocationService.delete   s`     MM3::(22 ;   #   
 
 	
    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LocationService.delete_async2   s       %%3::(22 ;   # &        
 
 	
r$   r   c                     t          d|                     dd                    t          |                    d||                    S ).
        Retrieves a Location object.
        r   getr   r   r   r   r   r!   s       r#   retrievezLocationService.retrieveH   s`     MM3::(22 ;   #   
 
 	
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LocationService.retrieve_async^   s       %%3::(22 ;   # &        
 
 	
r$   r   c                     t          d|                     dd                    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   s`     MM3::(22 ;   #   
 
 	
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LocationService.update_async   s       %%3::(22 ;   # &        
 
 	
r$   r   ListObject[Location]c           
      R    t          d|                     ddd||                    S )5
        Returns a list of Location objects.
        r5   r+   /v1/terminal/locationsr   r   r   r   r"   r   r   s      r#   listzLocationService.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LocationService.list_async   sb       "%%(" &        	
 	
 		
r$   r
   c           
      R    t          d|                     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   r1   r8   r   r   r9   r:   s      r#   createzLocationService.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LocationService.create_async   sb       %%(" &        	
 	
 		
r$   )NN)__name__
__module____qualname__strr   r   r(   r,   r.   r2   r4   r;   r>   rA   rC    r$   r#   r   r      s*        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   rH   r$   r#   <module>rU      s`   1 0 0 0 0 0 $ $ $ $ $ $ ! ! ! ! ! ! ! ! + + + + + + 3......666666           POOOOO           322222Q
 Q
 Q
 Q
 Q
m Q
 Q
 Q
 Q
 Q
r$   