
    Dh                     z    S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
JrJr  S SKJrJrJr   " S S	\5      rg
)    )
ListObject)RequestOptions)StripeService)sanitize_id)ReceivedCredit)Listcast)LiteralNotRequired	TypedDictc            	           \ rS rSr " S S\5      r " S S\5      r " S S\5      r0 4SS	S
\S\	\
   4S jjr0 4SS	S
\S\	\
   4S jjr0 0 4S\SSS
\S\
4S jjr0 0 4S\SSS
\S\
4S jjrSrg)ReceivedCreditService   c                       \ rS rSr% \\   \S'    \\\      \S'    \\S'    \\   \S'    \S   \S'    \\   \S'    \\	S	      \S
'   Sr
g) ReceivedCreditService.ListParams   ending_beforeexpandfinancial_accountlimit+ReceivedCreditService.ListParamsLinkedFlowslinked_flowsstarting_after)failed	succeededstatus N)__name__
__module____qualname____firstlineno__r   str__annotations__r   intr
   __static_attributes__r       k/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/treasury/_received_credit_service.py
ListParamsr      s    "3''	 DI&&	 	 3	 "9
 	
	 $C((	 G$9:;;	r&   r(   c                   &    \ rS rSr% \S   \S'   Srg)r   -   )credit_reversalotheroutbound_paymentoutbound_transferpayoutsource_flow_typer   N)r   r   r    r!   r
   r#   r%   r   r&   r'   ListParamsLinkedFlows+ReceivedCreditService.ListParamsLinkedFlows-   s    !
 	
	r&   r1   c                   ,    \ rS rSr% \\\      \S'   Srg)$ReceivedCreditService.RetrieveParams9   r   r   N)	r   r   r    r!   r   r   r"   r#   r%   r   r&   r'   RetrieveParamsr4   9   s    DI&&	r&   r6   paramsr   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ )$
Returns a list of ReceivedCredits.
get/v1/treasury/received_creditsapibase_addressr7   r8   )r	   r   r   _requestselfr7   r8   s      r'   listReceivedCreditService.list?   s9     ~&MM/"  	
 		
r&   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r;   r<   r=   r>   r?   N)r	   r   r   _request_asyncrB   s      r'   
list_async ReceivedCreditService.list_asyncR   sH      ~&%%/" &  	
 		
s   (53
	5idr4   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ ){
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.
r<   "/v1/treasury/received_credits/{id}rJ   r>   r?   )r	   r   rA   formatr   rC   rJ   r7   r8   s       r'   retrieveReceivedCreditService.retrievee   sM     MM4;;"2 <  #  
 	
r&   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rL   r<   rM   rN   r>   r?   N)r	   r   rG   rO   r   rP   s       r'   retrieve_async$ReceivedCreditService.retrieve_async{   s\      %%4;;"2 <  # &  
 	
s   7AA
	Ar   N)r   r   r    r!   r   r(   r1   r6   r   r   r   rD   rH   r"   rQ   rT   r%   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>r]      s-    + 2 0 $ ;  = =C
M C
r&   