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)Transaction)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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                   @   s   e Zd ZU 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d
  ed< 	 ed ed< dS )TransactionService.ListParamsz(TransactionService.ListParamsCreated|intcreatedending_beforeexpandfinancial_accountlimit)r   	posted_atorder_bystarting_after)openpostedvoidstatus.TransactionService.ListParamsStatusTransitionsstatus_transitionsN)	__name__
__module____qualname__r
   __annotations__strr   intr	    r"   r"   d/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/treasury/_transaction_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$TransactionService.ListParamsCreatedgtgteltlteNr   r   r   r
   r!   r   r"   r"   r"   r#   ListParamsCreated5      
 r+   c                   @   s   e Zd ZU ed ed< dS )r   z:TransactionService.ListParamsStatusTransitionsPostedAt|intr   N)r   r   r   r
   r   r"   r"   r"   r#   ListParamsStatusTransitionsG   s
   
 r-   c                   @   r%   )z6TransactionService.ListParamsStatusTransitionsPostedAtr&   r'   r(   r)   Nr*   r"   r"   r"   r#   #ListParamsStatusTransitionsPostedAtO   r,   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#   RetrieveParamsa   s   
 r0   paramsr   optionsreturnc              	   C   s   t tt | jddd||dS ):
        Retrieves a list of Transaction objects.
        get/v1/treasury/transactionsapibase_addressr1   r2   )r   r   r   _requestselfr1   r2   r"   r"   r#   listg   s   zTransactionService.listc              	      s&   t tt | jddd||dI dH S )r4   r5   r6   r7   r8   N)r   r   r   _request_asyncr;   r"   r"   r#   
list_asyncz   s   
zTransactionService.list_asyncidr/   c              	   C   s&   t t| jddjt|dd||dS )C
        Retrieves the details of an existing Transaction.
        r5   /v1/treasury/transactions/{id}r@   r7   r8   )r   r   r:   formatr   r<   r@   r1   r2   r"   r"   r#   retrieve   s   	zTransactionService.retrievec              	      s.   t t| jddjt|dd||dI dH S )rA   r5   rB   rC   r7   r8   N)r   r   r>   rD   r   rE   r"   r"   r#   retrieve_async   s   	
z!TransactionService.retrieve_asyncN)r   r   r   r   r$   r+   r-   r.   r0   r   r   r   r=   r?   r    rF   rG   r"   r"   r"   r#   r      sX    (	


r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   stripe.treasury._transactionr   typingr   r   typing_extensionsr	   r
   r   r   r"   r"   r"   r#   <module>   s   