
    
i                     t    d dl mZ d dlmZ d dlmZmZmZmZ d dl	m
Z
mZmZ erd dlmZ  G d ded         Zy)	    )APIResource)StripeObject)ClassVarListOptionalcast)LiteralUnpackTYPE_CHECKING)AssociationFindParamsc                       e Zd ZU dZdZeed      ed<    G d de      Z	e
ed<   	 e
ed<   	 ed   ed<   	 e
ed	<   	 eee	      ed
<   	 eded   dd fd       Zeded   dd fd       Zd
e	iZy)Associationz
    A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input
    ztax.associationOBJECT_NAMEc                   |    e Zd ZU  G d de      Z G d de      Zee   ed<   ee   ed<   eed<   	 eed<   	 eed	Z	y
)!Association.TaxTransactionAttemptc                       e Zd ZU eed<   y)+Association.TaxTransactionAttempt.CommittedtransactionN)__name__
__module____qualname__str__annotations__     \/mnt/e/genesis-system/.venvs/sunaiva/lib/python3.12/site-packages/stripe/tax/_association.py	Committedr      s    r   r   c                       e Zd ZU ed   ed<   y))Association.TaxTransactionAttempt.Errored)+another_payment_associated_with_calculationcalculation_expiredcurrency_mismatchoriginal_transaction_voidedunique_reference_violationreasonN)r   r   r   r	   r   r   r   r   Erroredr      s    . r   r&   	committederroredsourcestatus)r'   r(   N)
r   r   r   r   r   r&   r   r   r   _inner_class_typesr   r   r   TaxTransactionAttemptr      sU    	 	
	l 
	 I&&'""	 	 ,5Ir   r,   calculationidobjectpayment_intenttax_transaction_attemptsparamsr   returnc                 >    t        d| j                  dd|            S )E
        Finds a tax association object by PaymentIntent id.
        r   get/v1/tax/associations/findr2   )r   _static_requestclsr2   s     r   findzAssociation.findI   s0    
 +   
 	
r   c                 Z   K   t        d| j                  dd|       d{         S 7 w)r5   r   r6   r7   r8   N)r   _static_request_asyncr:   s     r   
find_asynczAssociation.find_asyncW   s>      +++ ,  
 	
s   +)
	+N)r   r   r   __doc__r   r   r	   r   r   r,   r   r   r   classmethodr
   r<   r?   r+   r   r   r   r   r      s     9JK'"345IJ J>  	G %&&  't,A'BCC 
F#:; 
 
 
 
56
	
 
 56KLr   r   N)stripe._api_resourcer   stripe._stripe_objectr   typingr   r   r   r   typing_extensionsr	   r
   r   *stripe.params.tax._association_find_paramsr   r   r   r   r   <module>rG      s6    - . 1 1 < <
YM+m, YMr   