o
    &i                     @   sl   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 ded ZdS )	    )APIResource)StripeObject)ClassVarListOptionalcast)LiteralUnpackTYPE_CHECKING)AssociationFindParamsc                   @   s   e Zd ZU dZdZeed  ed< G d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dZeded dd fd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                   @   sd   e Zd ZU G dd deZG dd deZee ed< ee ed< eed< 	 eed< 	 eed	Z	d
S )z!Association.TaxTransactionAttemptc                   @   s   e Zd ZU eed< dS )z+Association.TaxTransactionAttempt.CommittedtransactionN)__name__
__module____qualname__str__annotations__ r   r   X/var/www/html/humari/django-venv/lib/python3.10/site-packages/stripe/tax/_association.py	Committed   s   
 r   c                   @   s   e Zd ZU ed ed< dS )z)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   r   Errored   s
   
 r   	committederroredsourcestatus)r   r   N)
r   r   r   r   r   r   r   r   r   _inner_class_typesr   r   r   r   TaxTransactionAttempt   s   
 r#   calculationidobjectpayment_intenttax_transaction_attemptsparamsr   returnc                 K   s   t d| jdd|dS )E
        Finds a tax association object by PaymentIntent id.
        r   get/v1/tax/associations/findr)   )r   _static_requestclsr)   r   r   r   findI   s   zAssociation.findc                    s   t d| jdd|dI dH S )r+   r   r,   r-   r.   N)r   _static_request_asyncr0   r   r   r   
find_asyncW   s   
zAssociation.find_asyncN)r   r   r   __doc__r   r   r   r   r   r#   r   r   r   classmethodr	   r2   r4   r"   r   r   r   r   r      s.   
 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   r   <module>   s   