
    _j                         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dS )	    )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dS )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	d
S )!Association.TaxTransactionAttemptc                       e Zd ZU eed<   dS )+Association.TaxTransactionAttempt.CommittedtransactionN)__name__
__module____qualname__str__annotations__     [/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/tax/_association.py	Committedr      s"          r   r   c                   &    e Zd ZU ed         ed<   dS ))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      s2         .    r   r&   	committederroredsourcestatus)r'   r(   N)
r   r   r   r   r   r&   r   r   r   _inner_class_typesr   r   r   TaxTransactionAttemptr      s         	 	 	 	 	 	 	 	
	 
	 
	 
	 
	l 
	 
	 
	 I&&&&'""""	 	 ,5IIr   r,   calculationidobjectpayment_intenttax_transaction_attemptsparamsr   returnc                 N    t          d|                     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   s:    
 +    
 
 	
r   c                 ^   K   t          d|                     dd|           d{V           S )r5   r   r6   r7   r8   N)r   _static_request_asyncr:   s     r   
find_asynczAssociation.find_asyncW   s\       +++ ,        
 
 	
r   N)r   r   r   __doc__r   r   r	   r   r   r,   r   r   r   classmethodr
   r<   r?   r+   r   r   r   r   r      sQ          9JK'"345IIIJ J J J J J J J>  	GGG %&&&&  't,A'BCC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      s    - , , , , , . . . . . . 1 1 1 1 1 1 1 1 1 1 1 1 < < < < < < < < < <      
YM YM YM YM YM+m, YM YM YM YM YMr   