
    jof=                        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 d d
lmZmZmZmZmZ erd dlmZ d dlm Z  d dl!m"Z"  G d ded         ed         e	d                   Z#dS )    )CreateableAPIResource)DeletableAPIResource)ExpandableField)
ListObject)ListableAPIResource)RequestOptions)StripeObject)class_method_variantsanitize_id)ClassVarListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Account)Application)Customerc                      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         ed<   	 eed<   	 eed                  ed<   	 eed<   	 eed<   	 ed         ed<   	 ee	         ed<   	 ed         ed<   	 eed<   	 ee
         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d0            Z" e d1          d"ed(         d$d fd2            Z"ed"ed3         d$e#d          fd4            Z$ed"ed3         d$e#d          fd5            Z%eded"ed6         d$d fd7            Z&eded"ed6         d$d fd8            Z'e	e
d9Z(d:S );TaxIda}  
    You can add one or multiple tax IDs to a [customer](https://stripe.com/docs/api/customers) or account.
    Customer and account tax IDs get displayed on related invoices and credit notes.

    Related guides: [Customer tax identification numbers](https://stripe.com/docs/billing/taxes/tax-ids), [Account tax IDs](https://stripe.com/docs/invoicing/connect#account-tax-ids)
    tax_idOBJECT_NAMEc                       e Zd ZU eed                  ed<   	 eed                  ed<   	 eed                  ed<   	 ed         ed<   d	S )
TaxId.Ownerr   accountr   applicationr   customerr   r    r!   selftypeN)__name__
__module____qualname__r   r   __annotations__r        H/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_tax_id.pyOwnerr   (   s         /)45555	 om<====	 ?:67777	 BCCCC	 	r*   r,   c                   V    e Zd ZU ed         ed<   	 ee         ed<   	 ee         ed<   dS )TaxId.Verification)pendingunavailable
unverifiedverifiedstatusverified_addressverified_nameN)r%   r&   r'   r   r(   r   strr)   r*   r+   Verificationr.   :   sV         JKKKK	 #3-'''	  }$$$	 	r*   r7   c                   n    e Zd ZU eee                  ed<   	 ed         ed<   	 ed         ed<   	 eed<   dS )TaxId.CreateParamsexpandTaxId.CreateParamsOwnerowner)Iad_nrtae_trnar_cuitau_abnau_arnbg_uicbh_vatbo_tinbr_cnpjbr_cpfca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstch_uidch_vatcl_tincn_tinco_nitcr_tinde_stndo_rcnec_ruceg_tines_cif
eu_oss_vateu_vatgb_vatge_vathk_brhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkr_brnkz_binli_uidmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnz_gstom_vatpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsv_nitth_vattr_tintw_vatua_vatus_einuy_rucve_rifvn_tinza_vatr$   valueN)r%   r&   r'   r   r   r6   r(   r   r)   r*   r+   CreateParamsr9   H   s}         DI&&&&	 45555	 HJ
 J	
 J	
 J	
V	 


	 	r*   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ed         ed<   dS )r;   r   r!   r"   r$   Nr%   r&   r'   r   r6   r(   r   r)   r*   r+   CreateParamsOwnerzTaxId.CreateParamsOwner   X         S!!!!	 c""""	 BCCCC	 	r*   r   c                       e Zd ZdS )TaxId.DeleteParamsN)r%   r&   r'   r)   r*   r+   DeleteParamsr      s        r*   r   c                       e Zd ZU ee         ed<   	 eee                  ed<   	 ee         ed<   	 ed         ed<   	 ee         ed<   dS )TaxId.ListParamsending_beforer:   limitTaxId.ListParamsOwnerr<   starting_afterN)r%   r&   r'   r   r6   r(   r   intr)   r*   r+   
ListParamsr      s         "3''''	 DI&&&&	 3	 23333	 $C((((	 	r*   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ed         ed<   dS )r   r   r!   r"   r$   Nr   r)   r*   r+   ListParamsOwnerzTaxId.ListParamsOwner   r   r*   r   c                   2    e Zd ZU eee                  ed<   dS )TaxId.RetrieveParamsr:   N)r%   r&   r'   r   r   r6   r(   r)   r*   r+   RetrieveParamsr      s+         DI&&&&	 	r*   r   countrycreatedr   r!   idlivemodeobjectr<   )Jr=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   unknownr   r   r   r   r   r$   r   verificationTdeletedparamsr9   returnc                 r    t          d|                     d|                                 |                    S )B
        Creates a new account or customer tax_id object.
        r   postr   )r   _static_request	class_urlclsr   s     r+   createzTaxId.createW  sB    
     
 
 	
r*   c                    K   t          d|                     d|                                 |           d{V           S )r   r   r   r   N)r   _static_request_asyncr   r   s     r+   create_asynczTaxId.create_asynce  sd       ++ ,        
 
 	
r*   sidr   c                     |                                  dt          |          }t          d|                     d||                    S )H
        Deletes an existing account or customer tax_id object.
        /r   deleter   )r   r   r   r   r   r   r   urls       r+   _cls_deletezTaxId._cls_deleteu  s[     +c*:*:*:;    
 
 	
r*   c                     dS r   Nr)   r   r   s     r+   r   zTaxId.delete  s	     	r*   c                     dS r   r)   r#   r   s     r+   r   zTaxId.delete  s	    
 	r*   r   c                 V    |                      d|                                 |          S )r   r   r   )_request_and_refreshinstance_urlr   s     r+   r   zTaxId.delete  s6     (( ) 
 
 	
r*   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r   r   r   r   r   N)r   r   r   r   r   s       r+   _cls_delete_asynczTaxId._cls_delete_async  s}       +c*:*:*:;++ ,        
 
 	
r*   c                 
   K   dS r   r)   r   s     r+   delete_asynczTaxId.delete_async  s       	r*   c                 
   K   dS r   r)   r   s     r+   r   zTaxId.delete_async  s       	r*   r   c                 f   K   |                      d|                                 |           d{V S )r   r   r   N)_request_and_refresh_asyncr   r   s     r+   r   zTaxId.delete_async  sX       44 5 
 
 
 
 
 
 
 
 	
r*   r   c                     |                      d|                                 |          }t          |t                    s$t	          dt          |          j        z            |S ),
        Returns a list of tax IDs.
        getr   %Expected list object from API, got %s)r   r   
isinstancer   	TypeErrorr$   r%   r   r   results      r+   listz
TaxId.list  sp    
 $$MMOO % 
 

 &*-- 	7<<(*  
 r*   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )r   r   r   Nr   )r   r   r   r   r   r$   r%   r   s      r+   
list_asynczTaxId.list_async  s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r*   r   c                 @     | |fi |}|                                  |S )A
        Retrieves an account or customer tax_id object.
        )refreshr   r   r   instances       r+   retrievezTaxId.retrieve  s2     3r$$V$$r*   c                 P   K    | |fi |}|                                  d{V  |S )r   N)refresh_asyncr   s       r+   retrieve_asynczTaxId.retrieve_async  sH       3r$$V$$$$&&&&&&&&&r*   )r<   r   N))r%   r&   r'   __doc__r   r   r   r(   r	   r,   r7   r   r   r   r   r   r   r   r   r   r6   r   r   boolclassmethodr   r   r   r   r   staticmethodr   r
   r   r   r   r   r   r   r   _inner_class_typesr)   r*   r+   r   r      s        
  08K'(+,777       $    |   Z Z Z Z Z~ Z Z Zx    I       ~       ^   ,    )           c] LLL z23333 	GGG NNN H E? I	K K K KX JJJ <(((( gdm$$$$ 
f%9: 
w 
 
 
 [
 
23
	
 
 
 [
 

!'(<!=
	
 
 
 [
  C 6*>#? G    \ X v&:;     X -((

34

	

 

 

 )(

 

!'(<!=
	
 
 
 [
  "#78	   \ X 34	   X -..

34

	

 

 

 /.

 F#56 :g;N    [" 01	G	   [&  &'= >	   [  &'= >	   [ $),GGr*   r   N)$stripe._createable_api_resourcer   stripe._deletable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr	   stripe._utilr
   r   typingr   r   r   r   r   typing_extensionsr   r   r   r   r   stripe._accountr   stripe._applicationr   stripe._customerr   r   r)   r*   r+   <module>r      s   B A A A A A ? ? ? ? ? ? 4 4 4 4 4 4 * * * * * * = = = = = = 2 2 2 2 2 2 . . . . . . : : : : : : : : ; ; ; ; ; ; ; ; ; ; ; ; ; ;               *''''''//////))))))uH uH uH uH uH'"! uH uH uH uH uHr*   