o
    ŒL)jL	  ã                   @   sX   d dl mZ d dlmZmZ d dlmZ d dlmZm	Z	 d dl
mZ G dd„ deƒZdS )	é    )ÚCustomer)ÚStripeObjectÚUntypedStripeObject)Úsanitize_id)ÚClassVarÚOptional)ÚLiteralc                   @   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d< 	 eed< 	 e
e ed< 	 eed	< 	 ed ed
< 	 e	ed< dd„ Ze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.
    Úcash_balanceÚOBJECT_NAMEc                   @   s$   e Zd ZU ed ed< 	 eed< dS )zCashBalance.Settings)Ú	automaticÚmanualÚreconciliation_modeÚusing_merchant_defaultN)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__Úbool© r   r   úy/var/www/html/finance-dev.cargoinsureonline.com/_shared/backend-venv/lib/python3.10/site-packages/stripe/_cash_balance.pyÚSettings   s
   
 r   Ú	availableÚcustomerÚcustomer_accountÚlivemodeÚobjectÚsettingsc                 C   s"   | j }t ¡ }t|ƒ}d||f S )Nz%s/%s/cash_balance)r   r   Ú	class_urlr   )Úselfr   ÚbaseÚ	cust_extnr   r   r   Úinstance_url1   s   zCashBalance.instance_urlc                 K   s   t dƒ‚)NzkCan't retrieve a Customer Cash Balance without a Customer ID. Use Customer.retrieve_cash_balance('cus_123'))ÚNotImplementedError)ÚclsÚidÚparamsr   r   r   Úretrieve7   s   ÿzCashBalance.retrieveN)r   r   r   Ú__doc__r   r   r   r   r   r   r   r   ÚintÚstrr   r"   Úclassmethodr'   Ú_inner_class_typesr   r   r   r   r	   
   s&   
 

r	   N)Ústripe._customerr   Ústripe._stripe_objectr   r   Ústripe._utilr   Útypingr   r   Útyping_extensionsr   r	   r   r   r   r   Ú<module>   s   