o
    BiN                     @   sX   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 G dd deZdS )	    )Balance)RequestOptions)StripeService)Listcast)NotRequired	TypedDictc                   @   sT   e Zd ZG dd deZi i fdddedefddZi i fdddedefd	d
ZdS )BalanceServicec                   @   s   e Zd ZU eee  ed< dS )BalanceService.RetrieveParamsexpandN)__name__
__module____qualname__r   r   str__annotations__ r   r   W/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_balance_service.pyRetrieveParams   s   
 r   paramsr
   optionsreturnc              	   C   s   t t| jddd||dS )  
        Retrieves the current account balance, based on the authentication that was used to make the request.
         For a sample request, see [Accounting for negative balances](https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
        get/v1/balanceapibase_addressr   r   )r   r   _requestselfr   r   r   r   r   retrieve   s   	zBalanceService.retrievec              	      s"   t t| jddd||dI dH S )r   r   r   r   r   N)r   r   _request_asyncr   r   r   r   retrieve_async%   s   	
zBalanceService.retrieve_asyncN)	r   r   r   r   r   r   r   r    r"   r   r   r   r   r	   
   s(    
r	   N)stripe._balancer   stripe._request_optionsr   stripe._stripe_servicer   typingr   r   typing_extensionsr   r   r	   r   r   r   r   <module>   s   