
    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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 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)RegistrationCreateParams)RegistrationListParams)RegistrationRetrieveParams)RegistrationUpdateParams)Registrationc            	       <   e Z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d
ded   ddfdZ	 dd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y)RegistrationServiceNparamsr   optionsr	   returnListObject[Registration]c           
      B    t        d| j                  ddd||            S )=
        Returns a list of Tax Registration objects.
        r   get/v1/tax/registrationsapibase_addressr   r   r   _requestselfr   r   s      S/var/www/html/immo/lib/python3.12/site-packages/stripe/tax/_registration_service.pylistzRegistrationService.list   s4     &MM'"  	
 		
    c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r   r   r   r   r   r   Nr   _request_asyncr   s      r    
list_asynczRegistrationService.list_async.   sD      &%%'" &  	
 		
    -+
	-r
   r   c           
      B    t        d| j                  ddd||            S )8
        Creates a new Tax Registration object.
        r   postr   r   r   r   r   s      r    createzRegistrationService.createA   s4     MM'"  	
 		
r"   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r)   r   r*   r   r   r   Nr$   r   s      r    create_asyncz RegistrationService.create_asyncT   sD      %%'" &  	
 		
r'   idr   c                 t    t        d| j                  ddj                  t        |            d||            S )4
        Returns a Tax Registration object.
        r   r   /v1/tax/registrations/{id}r.   r   r   r   r   formatr   r   r.   r   r   s       r    retrievezRegistrationService.retrieveg   sF     MM,33{23G"  	
 		
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r0   r   r   r1   r2   r   r   Nr   r%   r4   r   r5   s       r    retrieve_asyncz"RegistrationService.retrieve_async{   sV      %%,33{23G" &  	
 		
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S )
        Updates an existing Tax Registration object.

        A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
        r   r*   r1   r2   r   r   r3   r5   s       r    updatezRegistrationService.update   sF     MM,33{23G"  	
 		
r"   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r<   r   r*   r1   r2   r   r   Nr8   r5   s       r    update_asyncz RegistrationService.update_async   sV      %%,33{23G" &  	
 		
r:   )NN)N)__name__
__module____qualname__r   r!   r&   r+   r-   strr6   r9   r=   r?    r"   r    r   r      s    6:.2
12
 *+
 
$	
* 6:.2
12
 *+
 
$	
, /3
*
 *+
 
	
, /3
*
 *+
 
	
, :>.2	

 56
 *+	

 

. :>.2	

 56
 *+	

 

. 8<.2	

 34
 *+	

 

2 8<.2	

 34
 *+	

 

r"   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   -stripe.params.tax._registration_create_paramsr
   +stripe.params.tax._registration_list_paramsr   /stripe.params.tax._registration_retrieve_paramsr   -stripe.params.tax._registration_update_paramsr   stripe.tax._registrationr   r   rD   r"   r    <module>rP      sC    1 $ ! +.6 6_
- _
r"   