
    h                     2    d dl mZ ddlmZ  G d de      Zy)   )Resource   )URLc                   8     e Zd Zd fd	Zi f fd	Zi fdZ xZS )FundAccountc                 x    t         t        |   |       t        j                  t        j
                  z   | _        y N)superr   __init__r   V1FUND_ACCOUNT_URLbase_url)selfclient	__class__s     ]/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/razorpay/resources/fund_account.pyr   zFundAccount.__init__   s(    k4)&1!5!55    c                 ,    t        t        | 
  |fi |S )zj
        Fetch all Fund Account entities

        Returns:
            Dictionary of Fund Account
        )r
   r   all)r   datakwargsr   s      r   r   zFundAccount.all
   s     [$+D;F;;r   c                 B    | 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   urls       r   createzFundAccount.create   s%     mmt}}S$1&11r   r	   )__name__
__module____qualname__r   r   r   __classcell__)r   s   @r   r   r      s    6  <  2r   r   N)baser   constants.urlr   r    r   r   <module>r#      s     2( 2r   