
    jof86              	           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 d dlmZmZ d d	lmZmZmZmZmZmZ d d
lmZmZmZmZ  G d ded         ed         ed         ed                   ZdS )    )CreateableAPIResource)DeletableAPIResource)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackc                      e Zd ZU dZdZeed                  ed<    G d de          Z	 G d de
          Z G d d	e          Z G d
 de
          Z G d de
          Z G d de
          Z G d de          Z G d de
          Ze	ed<   ee         ed<   	 eed<   	 eed<   	 eed<   	 eeef         ed<   	 ed         ed<   	 eed                  ed<   	 eded         dd fd             Zeded         dd fd!            Zed"eded#         dd fd$            Zeed"eded#         dd fd%                        Zeded#         dd fd&            Z ed'          ded#         dd fd(            Zed"eded#         dd fd)            Z eed"eded#         dd fd*                        Z!eded#         dd fd+            Z! ed,          ded#         dd fd-            Z!eded.         de"d          fd/            Z#eded.         de"d          fd0            Z$ededed1         dd fd2            Z%ededed1         dd fd3            Z&ededed4         dd fd5            Z'ededed4         dd fd6            Z(de	iZ)d7S )8Locationz
    A Location represents a grouping of readers.

    Related guide: [Fleet management](https://stripe.com/docs/terminal/fleet/locations)
    zterminal.locationOBJECT_NAMEc                       e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )Location.Addresscitycountryline1line2postal_codestateN)__name__
__module____qualname__r   str__annotations__     S/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/terminal/_location.pyAddressr      s         sm	 #	 }	 }	 c]"""	 }	 	r'   r)   c                   z    e Zd ZU ded<   	 ee         ed<   	 eed<   	 eee                  ed<   	 ed         ed<   dS )	Location.CreateParamsLocation.CreateParamsAddressaddressconfiguration_overridesdisplay_nameexpandLiteral['']|Dict[str, str]metadataN)r!   r"   r#   r%   r   r$   r   r&   r'   r(   CreateParamsr+   7   s         ////	 "-S!1111	 	 DI&&&&	 :;;;;	 	r'   r3   c                       e Zd ZU ee         ed<   	 eed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )r,   r   r   r   r   r   r    Nr!   r"   r#   r   r$   r%   r&   r'   r(   CreateParamsAddresszLocation.CreateParamsAddressM   s         #	 	 3	 3	 !%%%%	 3	 	r'   r6   c                       e Zd ZdS )Location.DeleteParamsN)r!   r"   r#   r&   r'   r(   DeleteParamsr8   g   s        r'   r9   c                   z    e Zd ZU ee         ed<   	 eee                  ed<   	 ee         ed<   	 ee         ed<   dS )Location.ListParamsending_beforer0   limitstarting_afterN)r!   r"   r#   r   r$   r%   r   intr&   r'   r(   
ListParamsr;   j   ss         "3''''	 DI&&&&	 3	 $C((((	 	r'   r@   c                       e Zd ZU ed         ed<   	 ed         ed<   	 ee         ed<   	 eee                  ed<   	 ed         ed<   d	S )
Location.ModifyParamsLocation.ModifyParamsAddressr-   zLiteral['']|strr.   r/   r0   r1   r2   N)r!   r"   r#   r   r%   r$   r   r&   r'   r(   ModifyParamsrB   |   s         ;<<<<	 "-->!????	 "#&&&&	 DI&&&&	 :;;;;	 	r'   rD   c                       e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )rC   r   r   r   r   r   r    Nr5   r&   r'   r(   ModifyParamsAddresszLocation.ModifyParamsAddress   s         #	 S!!!!	 3	 3	 !%%%%	 3	 	r'   rF   c                   2    e Zd ZU eee                  ed<   dS )Location.RetrieveParamsr0   N)r!   r"   r#   r   r   r$   r%   r&   r'   r(   RetrieveParamsrH      s+         DI&&&&	 	r'   rI   r-   r.   r/   idlivemoder2   objectTdeletedparamsr+   returnc                 r    t          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://stripe.com/docs/terminal/fleet/locations) guide.
        r   postrN   )r   _static_request	class_urlclsrN   s     r(   createzLocation.create   sB         
 
 	
r'   c                    K   t          d|                     d|                                 |           d{V           S )rQ   r   rR   rS   N)r   _static_request_asyncrU   rV   s     r(   create_asynczLocation.create_async   sd       ++ ,        
 
 	
r'   sidr8   c                     |                                  dt          |          }t          d|                     d||                    S ),
        Deletes a Location object.
        /r   deleterS   rU   r   r   rT   rW   r\   rN   urls       r(   _cls_deletezLocation._cls_delete   s[     +c*:*:*:;    
 
 	
r'   c                     dS r^   Nr&   r\   rN   s     r(   r`   zLocation.delete  s	     	r'   c                     dS rf   r&   selfrN   s     r(   r`   zLocation.delete  s	    
 	r'   rd   c                 V    |                      d|                                 |          S )r^   r`   rS   )_request_and_refreshinstance_urlri   s     r(   r`   zLocation.delete  s6     (( ) 
 
 	
r'   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r^   r_   r   r`   rS   NrU   r   r   rZ   rb   s       r(   _cls_delete_asynczLocation._cls_delete_async  s}       +c*:*:*:;++ ,        
 
 	
r'   c                 
   K   dS rf   r&   rg   s     r(   delete_asynczLocation.delete_async0  s       	r'   c                 
   K   dS rf   r&   ri   s     r(   rr   zLocation.delete_async:  s       	r'   rp   c                 f   K   |                      d|                                 |           d{V S )r^   r`   rS   N)_request_and_refresh_asyncrm   ri   s     r(   rr   zLocation.delete_asyncC  sX       44 5 
 
 
 
 
 
 
 
 	
r'   r;   c                     |                      d|                                 |          }t          |t                    s$t	          dt          |          j        z            |S )5
        Returns a list of Location objects.
        getrS   %Expected list object from API, got %s)rT   rU   
isinstancer   	TypeErrortyper!   rW   rN   results      r(   listzLocation.listP  sp     $$MMOO % 
 

 &*-- 	7<<(*  
 r'   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )rw   rx   rS   Nry   )rZ   rU   rz   r   r{   r|   r!   r}   s      r(   
list_asynczLocation.list_asyncd  s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r'   rB   c                     |                                  dt          |          }t          d|                     d||                    S )
        Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        r_   r   rR   rS   ra   rW   rJ   rN   rc   s       r(   modifyzLocation.modifyx  sX     +b///:    
 
 	
r'   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r   r_   r   rR   rS   Nro   r   s       r(   modify_asynczLocation.modify_async  sz       +b///:++ ,        
 
 	
r'   rH   c                 @     | |fi |}|                                  |S ).
        Retrieves a Location object.
        )refreshrW   rJ   rN   instances       r(   retrievezLocation.retrieve  s2     3r$$V$$r'   c                 P   K    | |fi |}|                                  d{V  |S )r   N)refresh_asyncr   s       r(   retrieve_asynczLocation.retrieve_async  sH       3r$$V$$$$&&&&&&&&&r'   N)*r!   r"   r#   __doc__r   r   r   r%   r   r)   r   r3   r   r6   r9   r@   rD   rF   rI   r   r$   boolr   classmethodr   rX   r[   rd   r   staticmethodr`   r
   rp   rr   r   r   r   r   r   r   r   _inner_class_typesr&   r'   r(   r   r      s          ;NK'"567MMM    ,   4    ~   ,    i   4    ~       ^   $    ~   ,    i   4        %c]***  	GGG NNN 38n '(((( gdm$$$$ 
f%<= 
* 
 
 
 [
 
56
	
 
 
 [
  

!'(?!@
	
 
 
 [
  "#:;	   \ X v&=> :    X -((

67

	

 

 

 )(

 

!'(?!@
	
 
 
 [
  "#:;	   \ X 67	   X -..

67

	

 

 

 /.

 34	J	   [& 34	J	   [& 

 &'> ?
	
 
 
 [
  

 &'> ?
	
 
 
 [
   &'@ A	   [  &'@ A	   [ $W-r'   r   N)stripe._createable_api_resourcer   stripe._deletable_api_resourcer   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer	   stripe._utilr
   r   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   r&   r'   r(   <module>r      sN   B A A A A A ? ? ? ? ? ? * * * * * * = = = = = = 2 2 2 2 2 2 . . . . . . A A A A A A : : : : : : : : A A A A A A A A A A A A A A A A E E E E E E E E E E E Ea. a. a. a. a.*%$
#*%	a. a. a. a. a.r'   