
    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 )Iinc                 x    t         t        |   |       t        j                  t        j
                  z   | _        y N)superr   __init__r   V1IINbase_url)selfclient	__class__s     T/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/razorpay/resources/iin.pyr   zIin.__init__   s&    c4!&)(    c                 .    t        t        | 
  ||fi |S )zr
        fetch card properties using token iin

        Returns:
            Iin dict for given token iin
        )r
   r   fetch)r   	token_iindatakwargsr   s       r   r   z	Iin.fetch
   s     S$%i@@@r   c                 H    | j                    d} | j                  ||fi |S )z
        Fetch all iins supporting native otp
        Fetch all iins with business sub-type

        Returns:
            Dictionary of Iin data
        z/list)r   get_url)r   r   r   urls       r   allzIin.all   s,     u%t||C000r   r	   )__name__
__module____qualname__r   r   r   __classcell__)r   s   @r   r   r      s    ) %' A  	1r   r   N)baser   constants.urlr   r    r   r   <module>r$      s     1( 1r   