
    _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)TaxId)CustomerTaxIdCreateParams)CustomerTaxIdDeleteParams)CustomerTaxIdListParams)CustomerTaxIdRetrieveParamsc                      e Zd Z	 	 ddededed         ded         dd	f
d
Z	 	 ddededed         ded         dd	f
dZ	 	 ddededed         ded         dd	f
dZ	 	 dde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ded         dd	fdZ	 ddeddded         dd	fdZdS )CustomerTaxIdServiceNcustomeridparamsr   optionsr	   returnr
   c                     t          d|                     dd                    t          |          t          |                    d||                    S )4
        Deletes an existing tax_id object.
        r
   delete%/v1/customers/{customer}/tax_ids/{id}r   r   apibase_addressr   r   r   _requestformatr   selfr   r   r   r   s        c/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/_customer_tax_id_service.pyr   zCustomerTaxIdService.delete   si     MM7>>(22"2 ?   #  	 	
 
 	
    c                    K   t          d|                     dd                    t          |          t          |                    d||           d{V           S )r   r
   r   r   r   r   r   Nr   _request_asyncr    r   r!   s        r#   delete_asyncz!CustomerTaxIdService.delete_async3   s       %%7>>(22"2 ?   # & 	 	 	 	 	 	 	 	
 
 	
r$   r   c                     t          d|                     dd                    t          |          t          |                    d||                    S )H
        Retrieves the tax_id object with the given identifier.
        r
   getr   r   r   r   r   r!   s        r#   retrievezCustomerTaxIdService.retrieveK   si     MM7>>(22"2 ?   #  	 	
 
 	
r$   c                    K   t          d|                     dd                    t          |          t          |                    d||           d{V           S )r*   r
   r+   r   r   r   r   Nr&   r!   s        r#   retrieve_asyncz#CustomerTaxIdService.retrieve_asyncc   s       %%7>>(22"2 ?   # & 	 	 	 	 	 	 	 	
 
 	
r$   r   ListObject[TaxId]c                     t          d|                     dd                    t          |                    d||                    S );
        Returns a list of tax IDs for a customer.
        r/   r+    /v1/customers/{customer}/tax_idsr   r   r   r   r"   r   r   r   s       r#   listzCustomerTaxIdService.list{   s`     MM299(22 :   #   
 
 	
r$   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r1   r/   r+   r2   r3   r   r   Nr&   r4   s       r#   
list_asynczCustomerTaxIdService.list_async   s       %%299(22 :   # &        
 
 	
r$   r   c                     t          d|                     dd                    t          |                    d||                    S )=
        Creates a new tax_id object for a customer.
        r
   postr2   r3   r   r   r   r4   s       r#   createzCustomerTaxIdService.create   s`     MM299(22 :   #   
 
 	
r$   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r9   r
   r:   r2   r3   r   r   Nr&   r4   s       r#   create_asyncz!CustomerTaxIdService.create_async   s       %%299(22 :   # &        
 
 	
r$   )NN)N)__name__
__module____qualname__strr   r   r(   r,   r.   r5   r7   r;   r=    r$   r#   r   r      s       
 9=.2
 

 
 45	

 *+
 

 
 
 
8 9=.2
 

 
 45	

 *+
 

 
 
 
8 ;?.2
 

 
 67	

 *+
 

 
 
 
8 ;?.2
 

 
 67	

 *+
 

 
 
 
6 7;.2	
 

 23
 *+	

 

 
 
 
2 7;.2	
 

 23
 *+	

 

 
 
 
4 /3	
 

 ,
 *+	

 

 
 
 
4 /3	
 

 ,
 *+	

 

 
 
 
 
 
r$   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   stripe._tax_idr
   ,stripe.params._customer_tax_id_create_paramsr   ,stripe.params._customer_tax_id_delete_paramsr   *stripe.params._customer_tax_id_list_paramsr   .stripe.params._customer_tax_id_retrieve_paramsr   r   rB   r$   r#   <module>rN      sI   1 0 0 0 0 0 $ $ $ $ $ $ ! ! ! ! ! ! ! ! + + + + + + ......666666$$$$$$                    
w
 w
 w
 w
 w
= w
 w
 w
 w
 w
r$   