o
    Bi^                     @   sp   d dl mZ d dlmZ 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 G dd	 d	eZd
S )    )
ListObject)RequestOptions)StripeService)sanitize_id)Transaction)Listcast)NotRequired	TypedDictc                	   @   s   e Zd ZG dd deZG dd deZG dd deZG dd deZi fd	d
dede	e
 fddZi fd	d
dede	e
 fddZi i fded	ddede
fddZi i fded	ddede
fddZdS )TransactionServicec                   @   sn   e Zd ZU eed< 	 ee ed< 	 eee  ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ed ed	< d
S )TransactionService.ListParamsaccountending_beforeexpandlimitstarting_afterz-TransactionService.ListParamsTransactedAt|inttransacted_at/TransactionService.ListParamsTransactionRefreshtransaction_refreshN)__name__
__module____qualname__str__annotations__r	   r   int r   r   q/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/financial_connections/_transaction_service.py
ListParams   s&   
 r   c                   @   sD   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )z)TransactionService.ListParamsTransactedAtgtgteltlteN)r   r   r   r	   r   r   r   r   r   r   ListParamsTransactedAt/   s   
 r"   c                   @   s   e Zd ZU eed< dS )r   afterN)r   r   r   r   r   r   r   r   r   ListParamsTransactionRefreshA   s   
 r$   c                   @   s   e Zd ZU eee  ed< dS )!TransactionService.RetrieveParamsr   N)r   r   r   r	   r   r   r   r   r   r   r   RetrieveParamsG   s   
 r&   paramsr   optionsreturnc              	   C   s   t tt | jddd||dS )N
        Returns a list of Financial Connections Transaction objects.
        get&/v1/financial_connections/transactionsapibase_addressr'   r(   )r   r   r   _requestselfr'   r(   r   r   r   listM   s   zTransactionService.listc              	      s&   t tt | jddd||dI dH S )r*   r+   r,   r-   r.   N)r   r   r   _request_asyncr1   r   r   r   
list_async`   s   
zTransactionService.list_asynctransactionr%   c              	   C   s&   t t| jddjt|dd||dS )N
        Retrieves the details of a Financial Connections Transaction
        r+   4/v1/financial_connections/transactions/{transaction}r6   r-   r.   )r   r   r0   formatr   r2   r6   r'   r(   r   r   r   retrieves   s   	zTransactionService.retrievec              	      s.   t t| jddjt|dd||dI dH S )r7   r+   r8   r9   r-   r.   N)r   r   r4   r:   r   r;   r   r   r   retrieve_async   s   	
z!TransactionService.retrieve_asyncN)r   r   r   r
   r   r"   r$   r&   r   r   r   r3   r5   r   r<   r=   r   r   r   r   r      sV    "	


r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   )stripe.financial_connections._transactionr   typingr   r   typing_extensionsr	   r
   r   r   r   r   r   <module>   s   