
    _j_                         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 erd dlmZ d dlmZ  G d d	ed	                   Zd
S )    )
ListObject)ListableAPIResource)StripeObject)ClassVarOptional)LiteralUnpackTYPE_CHECKING)TransactionListParams)TransactionRetrieveParamsc                      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
ed<   	 e
ed	<   	 e
ed
<   	 eed<   	 ed         ed<   	 ed         ed<   	 e	ed<   eed<   	 e
ed<   	 eed<   	 eded         ded          fd            Zeded         ded          fd            Zed
e
ded         dd fd            Zed
e
ded         dd fd            Zde	iZdS )Transactionzk
    A Transaction represents a real transaction that affects a Financial Connections Account balance.
    z!financial_connections.transactionOBJECT_NAMEc                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )Transaction.StatusTransitions	posted_atvoid_atN)__name__
__module____qualname__r   int__annotations__     m/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/financial_connections/_transaction.pyStatusTransitionsr      s=         C=   	 #	 	r   r   accountamountcurrencydescriptionidlivemodeobject)pendingpostedvoidstatusstatus_transitionstransacted_attransaction_refreshupdatedparamsr   returnc                     |                      d|                                 |          }t          |t                    s$t	          dt          |          j        z            |S )N
        Returns a list of Financial Connections Transaction objects.
        getr,   %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrortyper   clsr,   results      r   listzTransaction.listS   sp     $$MMOO % 
 

 &*-- 	7<<(*  
 r   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )r/   r0   r1   Nr2   )_static_request_asyncr4   r5   r   r6   r7   r   r8   s      r   
list_asynczTransaction.list_asyncg   s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r   r   c                 @     | |fi |}|                                  |S )N
        Retrieves the details of a Financial Connections Transaction
        )refreshr9   r!   r,   instances       r   retrievezTransaction.retrieve{   s2     3r$$V$$r   c                 P   K    | |fi |}|                                  d{V  |S )r@   N)refresh_asyncrB   s       r   retrieve_asynczTransaction.retrieve_async   sH       3r$$V$$$$&&&&&&&&&r   N)r   r   r   __doc__r   r   r   r   r   r   strr   boolclassmethodr	   r   r;   r>   rD   rG   _inner_class_typesr   r   r   r   r      sC         
 	, '"EFG       L    LLL KKK MMM  	GGG NNN 78888 /0000 *)))  LLL 56	M	"   [& 56	M	"   [&  &'B C	   [  &'B C	   [ /0ABr   r   N)stripe._list_objectr   stripe._listable_api_resourcer   stripe._stripe_objectr   typingr   r   typing_extensionsr   r	   r
   <stripe.params.financial_connections._transaction_list_paramsr   @stripe.params.financial_connections._transaction_retrieve_paramsr   r   r   r   r   <module>rT      s   + * * * * * = = = = = = . . . . . . % % % % % % % % < < < < < < < < < <           
C C C C C%m4 C C C C Cr   