o
    
¼>hÏ  ã                   @   s,   d dl mZ ddlmZ G dd„ deƒZdS )é   )ÚResourceé   )ÚURLc                       s:   e Zd Zd‡ fdd„	Zi f‡ fdd„	Zi fdd„Z‡  ZS )	ÚFundAccountNc                    s"   t t| ƒ |¡ tjtj | _d S ©N)Úsuperr   Ú__init__r   ÚV1ÚFUND_ACCOUNT_URLÚbase_url)ÚselfÚclient©Ú	__class__© ú/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/razorpay/resources/fund_account.pyr      s   zFundAccount.__init__c                    s   t t| ƒj|fi |¤ŽS )zj
        Fetch all Fund Account entities

        Returns:
            Dictionary of Fund Account
        )r   r   Úall)r   ÚdataÚkwargsr   r   r   r   
   s   zFundAccount.allc                 K   s   | j }| j||fi |¤ŽS )a†  
        Create a fund account

        Args:
            data : Dictionary having keys using which order have to be created
                'customerId' :  Customer Id for the customer
                'account_type' : The bank_account to be linked to the customer ID
                'bank_account' : key value pair

        Returns:
            fund account Dict which was created
        )r   Úpost_url)r   r   r   Úurlr   r   r   Úcreate   s   zFundAccount.creater   )Ú__name__Ú
__module__Ú__qualname__r   r   r   Ú__classcell__r   r   r   r   r      s    	r   N)Úbaser   Úconstants.urlr   r   r   r   r   r   Ú<module>   s    