
    kh_                         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y
)    )
ListObject)ListableAPIResource)StripeObject)ClassVarOptional)LiteralUnpackTYPE_CHECKING)TransactionListParams)TransactionRetrieveParamsc                   x   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y)Transactionzk
    A Transaction represents a real transaction that affects a Financial Connections Account balance.
    z!financial_connections.transactionOBJECT_NAMEc                   0    e Zd ZU ee   ed<   	 ee   ed<   y)Transaction.StatusTransitions	posted_atvoid_atN)__name__
__module____qualname__r   int__annotations__     i/var/www/api/v1/venv_fitandmore/lib/python3.12/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                     | j                  d| j                         |      }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   s]     $$MMO % 

 &*-7<((* 
 r   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)r/   r0   r1   Nr2   )_static_request_asyncr4   r5   r   r6   r7   r   r8   s      r   
list_asynczTransaction.list_asyncg   sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r   c                 8     | |fi |}|j                          |S )N
        Retrieves the details of a Financial Connections Transaction
        )refreshr9   r!   r,   instances       r   retrievezTransaction.retrieve{   s$     r$V$r   c                 T   K    | |fi |}|j                          d{    |S 7 w)r@   N)refresh_asyncrB   s       r   retrieve_asynczTransaction.retrieve_async   s3      r$V$$$&&& 	's   (&(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      s   
 	, '"EFG L  L K M  	G N 788 /00 *)  L 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%m4 Cr   