
    h                     2    d dl mZ ddlmZ  G d de      Zy)   )Resource   )URLc                   *     e Zd Zd fd	Zi fdZ xZS )RegistrationLinkc                 x    t         t        |   |       t        j                  t        j
                  z   | _        y N)superr   __init__r   V1REGISTRATION_LINK_URLbase_url)selfclient	__class__s     b/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/razorpay/resources/registration_link.pyr   zRegistrationLink.__init__   s)    .v6!:!::    c                 b    dj                  | j                  d      } | j                  ||fi |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{}/{}
auth_links)formatr   post_url)r   datakwargsurls       r   createzRegistrationLink.create
   s0     nnT]]L9t}}S$1&11r   r	   )__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      s    ;  2r   r   N)baser   constants.urlr   r    r   r   <module>r#      s     2x 2r   