
    _j                         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dS )    )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dS )RegistrationServiceNparamsr   optionsr	   returnListObject[Registration]c           
      R    t          d|                     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      d/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/tax/_registration_service.pylistzRegistrationService.list   s>     &MM'"   	
 	
 		
    c           
      b   K   t          d|                     ddd||           d{V           S )r   r   r   r   r   r   Nr   _request_asyncr   s      r    
list_asynczRegistrationService.list_async.   sb       &%%'" &        	
 	
 		
r"   r
   r   c           
      R    t          d|                     ddd||                    S )8
        Creates a new Tax Registration object.
        r   postr   r   r   r   r   s      r    createzRegistrationService.createA   s>     MM'"   	
 	
 		
r"   c           
      b   K   t          d|                     ddd||           d{V           S )r(   r   r)   r   r   r   Nr$   r   s      r    create_asyncz RegistrationService.create_asyncT   sb       %%'" &        	
 	
 		
r"   idr   c                     t          d|                     dd                    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   sU     MM,33{23GG"   	
 	
 		
r"   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r/   r   r   r0   r1   r   r   Nr   r%   r3   r   r4   s       r    retrieve_asyncz"RegistrationService.retrieve_async{   sy       %%,33{23GG" &        	
 	
 		
r"   r   c                     t          d|                     dd                    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)   r0   r1   r   r   r2   r4   s       r    updatezRegistrationService.update   sU     MM,33{23GG"   	
 	
 		
r"   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r:   r   r)   r0   r1   r   r   Nr7   r4   s       r    update_asyncz RegistrationService.update_async   sy       %%,33{23GG" &        	
 	
 		
r"   )NN)N)__name__
__module____qualname__r   r!   r&   r*   r,   strr5   r8   r;   r=    r"   r    r   r      sr        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   rB   r"   r    <module>rN      sK   1 0 0 0 0 0 $ $ $ $ $ $ ! ! ! ! ! ! ! ! + + + + + + 6......666666                     655555_
 _
 _
 _
 _
- _
 _
 _
 _
 _
r"   