U
    ^g%iÏ  ã                   @   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   ZV1ZFUND_ACCOUNT_URLÚbase_url)ÚselfÚclient©Ú	__class__© ú^/var/www/html/api-medvista/venv/lib/python3.8/site-packages/razorpay/resources/fund_account.pyr      s    zFundAccount.__init__c                    s   t t| ƒj|f|Ž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|Ž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   Zpost_url)r	   r   r   Úurlr   r   r   Úcreate   s    zFundAccount.create)N)Ú__name__Ú
__module__Ú__qualname__r   r   r   Ú__classcell__r   r   r   r   r      s   	r   N)Úbaser   Zconstants.urlr   r   r   r   r   r   Ú<module>   s   