a
    ù!f¹  ã                   @   sX   d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	 d dl
mZ G dd„ deƒZdS )	é    )ÚCustomer)ÚStripeObject)ÚClassVarÚDictÚOptional)ÚLiteral)Ú
quote_plusc                   @   sŒ   e Zd ZU dZdZeed  ed< G dd„ deƒZ	e
eeef  ed< eed< eed< ed ed	< e	ed
< dd„ Zeddd„ƒZd
e	iZdS )ÚCashBalancezß
    A customer's `Cash balance` represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account.
    Zcash_balanceÚOBJECT_NAMEc                   @   s"   e Zd ZU ed ed< eed< dS )zCashBalance.Settings)Z	automaticZmanualZreconciliation_modeZusing_merchant_defaultN)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__Úbool© r   r   úb/var/www/html/python-backend/venv/lib/python3.9/site-packages/stripe/api_resources/cash_balance.pyÚSettings   s   
r   Ú	availableÚcustomerZlivemodeÚobjectÚsettingsc                 C   s"   | j }t ¡ }t|ƒ}d||f S )Nz%s/%s/cash_balance)r   r   Z	class_urlr   )Úselfr   ÚbaseZ	cust_extnr   r   r   Úinstance_url-   s    zCashBalance.instance_urlNc                 K   s   t dƒ‚d S )NzkCan't retrieve a Customer Cash Balance without a Customer ID. Use Customer.retrieve_cash_balance('cus_123'))ÚNotImplementedError)ÚclsÚidZapi_keyÚparamsr   r   r   Úretrieve3   s    ÿzCashBalance.retrieve)N)r   r   r   Ú__doc__r
   r   r   r   r   r   r   r   ÚstrÚintr   r   Úclassmethodr   Z_inner_class_typesr   r   r   r   r	   
   s   

r	   N)Zstripe.api_resources.customerr   Zstripe.stripe_objectr   Útypingr   r   r   Ztyping_extensionsr   Úurllib.parser   r	   r   r   r   r   Ú<module>   s
   