o
    Bi                     @   st   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mZ G dd	 d	eZd
S )    )
ListObject)RequestOptions)StripeService)sanitize_id)TransactionEntry)Listcast)Literal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 )TransactionEntryServicec                   @   s   e Zd ZU ed ed< 	 ed ed< ee ed< 	 eee  ed< 	 eed< 	 ee ed< 	 eed	  ed
< 	 ee ed< 	 ee ed< dS )"TransactionEntryService.ListParamsz-TransactionEntryService.ListParamsCreated|intcreatedz1TransactionEntryService.ListParamsEffectiveAt|inteffective_atending_beforeexpandfinancial_accountlimit)r   r   order_bystarting_aftertransactionN)	__name__
__module____qualname__r
   __annotations__strr   intr	    r   r   j/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/treasury/_transaction_entry_service.py
ListParams   s(   
 r   c                   @   D   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )z)TransactionEntryService.ListParamsCreatedgtgteltlteNr   r   r   r
   r   r   r   r   r   r   ListParamsCreated2      
 r&   c                   @   r    )z-TransactionEntryService.ListParamsEffectiveAtr!   r"   r#   r$   Nr%   r   r   r   r   ListParamsEffectiveAtD   r'   r(   c                   @   s   e Zd ZU eee  ed< dS )&TransactionEntryService.RetrieveParamsr   N)r   r   r   r
   r   r   r   r   r   r   r   RetrieveParamsV   s   
 r*   paramsr   optionsreturnc              	   C   s   t tt | jddd||dS )?
        Retrieves a list of TransactionEntry objects.
        get /v1/treasury/transaction_entriesapibase_addressr+   r,   )r   r   r   _requestselfr+   r,   r   r   r   list\   s   zTransactionEntryService.listc              	      s&   t tt | jddd||dI dH S )r.   r/   r0   r1   r2   N)r   r   r   _request_asyncr5   r   r   r   
list_asynco   s   
z"TransactionEntryService.list_asyncidr)   c              	   C   s&   t t| jddjt|dd||dS )6
        Retrieves a TransactionEntry object.
        r/   %/v1/treasury/transaction_entries/{id}r:   r1   r2   )r   r   r4   formatr   r6   r:   r+   r,   r   r   r   retrieve   s   	z TransactionEntryService.retrievec              	      s.   t t| jddjt|dd||dI dH S )r;   r/   r<   r=   r1   r2   N)r   r   r8   r>   r   r?   r   r   r   retrieve_async   s   	
z&TransactionEntryService.retrieve_asyncN)r   r   r   r   r   r&   r(   r*   r   r   r   r7   r9   r   r@   rA   r   r   r   r   r      sV    %	


r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   "stripe.treasury._transaction_entryr   typingr   r   typing_extensionsr	   r
   r   r   r   r   r   r   <module>   s   