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dd„Z‡  ZS )ÚRegistrationLinkNc                    s"   t t| ƒ |¡ tjtj | _d S )N)Úsuperr   Ú__init__r   ZV1ZREGISTRATION_LINK_URLÚbase_url)ÚselfÚclient©Ú	__class__© úc/var/www/html/api-medvista/venv/lib/python3.8/site-packages/razorpay/resources/registration_link.pyr      s    zRegistrationLink.__init__c                 K   s   d  | jd¡}| j||f|ŽS )a
  
        Create a Registration Link
        Args:
            customer : Details of the customer to whom the registration link will be sent.
            type* : In this case the value is link.
            currency* : Currency used in Order
            amount* : Amount of Order
            description : The count may not be greater than 100.
            subscription_registration : Details of the authorization payment.
            notes : A key-value pair
        
        Returns:
            {"success": true}
        z{}/{}Z
auth_links)Úformatr   Zpost_url)r	   ÚdataÚkwargsÚurlr   r   r   Úcreate
   s    zRegistrationLink.create)N)Ú__name__Ú
__module__Ú__qualname__r   r   Ú__classcell__r   r   r   r   r      s   r   N)Úbaser   Zconstants.urlr   r   r   r   r   r   Ú<module>   s   