
    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)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y)CustomerTaxIdServiceNcustomeridparamsr   optionsr	   returnr
   c                     t        d| j                  ddj                  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        R/var/www/html/immo/lib/python3.12/site-packages/stripe/_customer_tax_id_service.pyr   zCustomerTaxIdService.delete   sU     MM7>>(2"2 ?  #  	
 	
    c                    K   t        d| j                  ddj                  t        |      t        |            d||       d{         S 7 w)r   r
   r   r   r   r   r   Nr   _request_asyncr    r   r!   s        r#   delete_asyncz!CustomerTaxIdService.delete_async3   se      %%7>>(2"2 ?  # & 	 	
 	
	   AAA
	Ar   c                     t        d| j                  ddj                  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   sU     MM7>>(2"2 ?  #  	
 	
r$   c                    K   t        d| j                  ddj                  t        |      t        |            d||       d{         S 7 w)r+   r
   r,   r   r   r   r   Nr&   r!   s        r#   retrieve_asyncz#CustomerTaxIdService.retrieve_asyncc   se      %%7>>(2"2 ?  # & 	 	
 	
	r)   r   ListObject[TaxId]c                 t    t        d| j                  ddj                  t        |            d||            S );
        Returns a list of tax IDs for a customer.
        r0   r,    /v1/customers/{customer}/tax_idsr   r   r   r   r"   r   r   r   s       r#   listzCustomerTaxIdService.list{   sN     MM299(2 :  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r2   r0   r,   r3   r4   r   r   Nr&   r5   s       r#   
list_asynczCustomerTaxIdService.list_async   s^      %%299(2 :  # &  
 	
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S )=
        Creates a new tax_id object for a customer.
        r
   postr3   r4   r   r   r   r5   s       r#   createzCustomerTaxIdService.create   sN     MM299(2 :  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r;   r
   r<   r3   r4   r   r   Nr&   r5   s       r#   create_asyncz!CustomerTaxIdService.create_async   s^      %%299(2 :  # &  
 	
r9   )NN)N)__name__
__module____qualname__strr   r   r(   r-   r/   r6   r8   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   rD   r$   r#   <module>rP      sA    1 $ ! +.6$
w
= w
r$   