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 )	IinNc                    s"   t t| | tjtj | _d S N)superr   __init__r   V1IINbase_url)selfclient	__class__ v/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/razorpay/resources/iin.pyr      s   zIin.__init__c                    s   t t| j||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   r   r   r   
   s   z	Iin.fetchc                 K   s    | 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   urlr   r   r   all   s   zIin.allr   )__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    