
    Ai7                         d dl mZ d dlmZ d dlmZmZ d dlmZ er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  G d
 de      Zy)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)TransactionListParams)TransactionRetrieveParams)Transactionc            	           e Zd Z	 dddded   ddfdZ	 dddded   ddfd	Z	 	 dd
eded   ded   ddfdZ	 	 dd
eded   ded   ddfdZy)TransactionServiceNparamsr
   optionsr	   returnListObject[Transaction]c           
      B    t        d| j                  ddd||            S ):
        Retrieves a list of Transaction objects.
        r   get/v1/treasury/transactionsapibase_addressr   r   )r   _requestselfr   r   s      W/var/www/html/immo/lib/python3.12/site-packages/stripe/treasury/_transaction_service.pylistzTransactionService.list   s4     %MM+"  	
 		
    c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r   r   r   r   r   r   N)r   _request_asyncr   s      r   
list_asynczTransactionService.list_async(   sD      %%%+" &  	
 		
s    -+
	-idr   r   c                 t    t        d| j                  ddj                  t        |            d||            S )C
        Retrieves the details of an existing Transaction.
        r   r   /v1/treasury/transactions/{id}r#   r   r   )r   r   formatr   r   r#   r   r   s       r   retrievezTransactionService.retrieve;   sF     MM077;r?7K"  	
 		
r   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r%   r   r   r&   r'   r   r   N)r   r!   r(   r   r)   s       r   retrieve_asyncz!TransactionService.retrieve_asyncO   sV      %%077;r?7K" &  	
 		
s   9AA
	A)N)NN)	__name__
__module____qualname__r   r   r"   strr*   r,    r   r   r   r      s     /3
'
 *+
 
#	
, /3
'
 *+
 
#	
, 9=.2	

 45
 *+	

 

. 9=.2	

 45
 *+	

 

r   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   /stripe.params.treasury._transaction_list_paramsr
   3stripe.params.treasury._transaction_retrieve_paramsr   stripe.treasury._transactionr   r   r1   r   r   <module>r;      s9    1 $ ! +.6 9M
 M
r   