
    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)ReceivedCredit)Listcast)LiteralNotRequired	TypedDictc            	           e Zd 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)ReceivedCreditServicec                       e Zd ZU ee   ed<   	 eee      ed<   	 eed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 eed      ed	<   y
) ReceivedCreditService.ListParamsending_beforeexpandfinancial_accountlimit+ReceivedCreditService.ListParamsLinkedFlowslinked_flowsstarting_after)failed	succeededstatusN)	__name__
__module____qualname__r   str__annotations__r   intr
        n/var/www/html/Kila-kolis-project/venv/lib/python3.12/site-packages/stripe/treasury/_received_credit_service.py
ListParamsr      s    "3''	 DI&&	 	 3	 "9
 	
	 $C((	 G$9:;;	r"   r$   c                       e Zd ZU ed   ed<   y)r   )credit_reversalotheroutbound_paymentoutbound_transferpayoutsource_flow_typeN)r   r   r   r
   r   r!   r"   r#   ListParamsLinkedFlowsz+ReceivedCreditService.ListParamsLinkedFlows-   s    !
 	
	r"   r,   c                   $    e Zd ZU eee      ed<   y)$ReceivedCreditService.RetrieveParamsr   N)r   r   r   r   r   r   r   r!   r"   r#   RetrieveParamsr.   9   s    DI&&	r"   r/   paramsr   optionsreturnc           
      X    t        t        t           | j                  ddd||            S )4
        Returns a list of ReceivedCredits.
        get/v1/treasury/received_creditsapibase_addressr0   r1   )r	   r   r   _requestselfr0   r1   s      r#   listzReceivedCreditService.list?   s9     ~&MM/"  	
 		
r"   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r4   r5   r6   r7   r8   N)r	   r   r   _request_asyncr;   s      r#   
list_asyncz ReceivedCreditService.list_asyncR   sI      ~&%%/" &  	
 		
s   +86
	8idr.   c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.
        r5   "/v1/treasury/received_credits/{id}rA   r7   r8   )r	   r   r:   formatr   r<   rA   r0   r1   s       r#   retrievezReceivedCreditService.retrievee   sM     MM4;;"2 <  #  
 	
r"   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rC   r5   rD   rE   r7   r8   N)r	   r   r?   rF   r   rG   s       r#   retrieve_asyncz$ReceivedCreditService.retrieve_async{   s]      %%4;;"2 <  # &  
 	
s   =A
A
 	A
N)r   r   r   r   r$   r,   r/   r   r   r   r=   r@   r   rH   rJ   r!   r"   r#   r   r      s    Y @
	 
  #%
2
  
 
N	#	
, #%
2
  
 
N	#	
, :<"$	

 7
  	

 

2 :<"$	

 7
  	

 

r"   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr    stripe.treasury._received_creditr   typingr   r	   typing_extensionsr
   r   r   r   r!   r"   r#   <module>rR      s-    + 2 0 $ ;  = =C
M C
r"   