
    <@g<                     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	 d dl
mZmZ d dlmZmZmZ  G d d	e      Zy
)    )
ListObject)RequestOptions)StripeService)sanitize_id)Transaction)Listcast)LiteralNotRequired	TypedDictc            	           e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Zi fddde	de
e   fdZi fddde	de
e   fdZi i fdeddde	defdZi i fdeddde	defdZy)TransactionServicec                       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<   y)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
        c/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/treasury/_transaction_service.py
ListParamsr      s    GHH	 #3''	 DI&&	 	 3	 g&<=>>	 $C((	 G$<=>>	 (<
 	
	r&   r(   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)$TransactionService.ListParamsCreatedgtgteltlteNr   r    r!   r   r$   r"   r%   r&   r'   ListParamsCreatedr*   5   H    	 	 	 	r&   r0   c                       e Zd ZU ed   ed<   y)r   z:TransactionService.ListParamsStatusTransitionsPostedAt|intr   N)r   r    r!   r   r"   r%   r&   r'   ListParamsStatusTransitionsz.TransactionService.ListParamsStatusTransitionsG   s    H
 	
	r&   r3   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)6TransactionService.ListParamsStatusTransitionsPostedAtr+   r,   r-   r.   Nr/   r%   r&   r'   #ListParamsStatusTransitionsPostedAtr5   O   r1   r&   r6   c                   $    e Zd ZU eee      ed<   y)!TransactionService.RetrieveParamsr   N)r   r    r!   r   r   r#   r"   r%   r&   r'   RetrieveParamsr8   a   s    DI&&	r&   r9   paramsr   optionsreturnc           
      X    t        t        t           | j                  ddd||            S ):
        Retrieves a list of Transaction objects.
        get/v1/treasury/transactionsapibase_addressr:   r;   )r	   r   r   _requestselfr:   r;   s      r'   listzTransactionService.listg   s9     {#MM+"  	
 		
r&   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r>   r?   r@   rA   rB   N)r	   r   r   _request_asyncrE   s      r'   
list_asynczTransactionService.list_asyncz   sI      {#%%+" &  	
 		
s   +86
	8idr8   c                 |    t        t        | j                  ddj                  t	        |            d||            S )C
        Retrieves the details of an existing Transaction.
        r?   /v1/treasury/transactions/{id}rK   rA   rB   )r	   r   rD   formatr   rF   rK   r:   r;   s       r'   retrievezTransactionService.retrieve   sF     MM077;r?7K"  	
 		
r&   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rM   r?   rN   rO   rA   rB   N)r	   r   rI   rP   r   rQ   s       r'   retrieve_asyncz!TransactionService.retrieve_async   sV      %%077;r?7K" &  	
 		
s   =A
A
 	A
N)r   r    r!   r   r(   r0   r3   r6   r9   r   r   r   rG   rJ   r#   rR   rT   r%   r&   r'   r   r      s    &Y &PI $i i $  #%
/
  
 
K	 	
, #%
/
  
 
K	 	
, 79"$	

 4
  	

 

. 79"$	

 4
  	

 

r&   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'   <module>r\      s-    + 2 0 $ 4  = =g
 g
r&   