
    xh8                     "     G d  de           ZdS )c                       e Zd ZdZ	 ddZed             Zej        d             Zed             Zej        d             Zed             Z	e	j        d	             Z	ed
             Z
e
j        d             Z
d ZdS )SubscriptionTrackingzAllows you to insert a subscription management link at the bottom of the
    text and html bodies of your email. If you would like to specify the
    location of the link within your email, you may use the substitution_tag.
    Nc                     d| _         d| _        d| _        d| _        ||| _        ||| _        ||| _        |	|| _        dS dS )ag  Create a SubscriptionTracking to customize subscription management.

        :param enable: Whether this setting is enabled.
        :type enable: boolean, optional
        :param text: Text to be appended to the email with the link as "<% %>".
        :type text: SubscriptionText, optional
        :param html: HTML to be appended to the email with the link as "<% %>".
        :type html: SubscriptionHtml, optional
        :param substitution_tag: Tag replaced with URL. Overrides text, html
                                 params.
        :type substitution_tag: SubscriptionSubstitutionTag, optional
        N)_enable_text_html_substitution_tagenabletexthtmlsubstitution_tag)selfr	   r
   r   r   s        ^/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/subscription_tracking.py__init__zSubscriptionTracking.__init__   sd     

!% DKDIDI'$4D!!! ('    c                     | j         S )zGIndicates if this setting is enabled.

        :rtype: boolean
        r   r   s    r   r	   zSubscriptionTracking.enable#   s     |r   c                     || _         dS )zIndicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        Nr   r   values     r   r	   zSubscriptionTracking.enable+   s     r   c                     | j         S )zText to be appended to the email, with the subscription tracking
        link. You may control where the link is by using the tag <% %>

        :rtype: string
        r   r   s    r   r
   zSubscriptionTracking.text4        zr   c                     || _         dS )ao  Text to be appended to the email, with the subscription tracking
        link. You may control where the link is by using the tag <% %>

        :param value: Text to be appended to the email, with the subscription
                      tracking link. You may control where the link is by
                      using the tag <% %>
        :type value: string
        Nr   r   s     r   r
   zSubscriptionTracking.text=        


r   c                     | j         S )zHTML to be appended to the email, with the subscription tracking
        link. You may control where the link is by using the tag <% %>

        :rtype: string
        r   r   s    r   r   zSubscriptionTracking.htmlI   r   r   c                     || _         dS )ao  HTML to be appended to the email, with the subscription tracking
        link. You may control where the link is by using the tag <% %>

        :param value: HTML to be appended to the email, with the subscription
                      tracking link. You may control where the link is by
                      using the tag <% %>
        :type value: string
        Nr   r   s     r   r   zSubscriptionTracking.htmlR   r   r   c                     | j         S )aH  "A tag that will be replaced with the unsubscribe URL. for example:
        [unsubscribe_url]. If this parameter is used, it will override both the
        `text` and `html` parameters. The URL of the link will be placed at the
        substitution tag's location, with no additional formatting.

        :rtype: string
        r   r   s    r   r   z%SubscriptionTracking.substitution_tag^   s     %%r   c                     || _         dS )a  "A tag that will be replaced with the unsubscribe URL. for example:
        [unsubscribe_url]. If this parameter is used, it will override both the
        `text` and `html` parameters. The URL of the link will be placed at the
        substitution tag's location, with no additional formatting.

        :param value: A tag that will be replaced with the unsubscribe URL.
                      For example: [unsubscribe_url]. If this parameter is
                      used, it will override both the `text` and `html`
                      parameters. The URL of the link will be placed at the
                      substitution tag's location, with no additional
                      formatting.
        :type value: string
        Nr    r   s     r   r   z%SubscriptionTracking.substitution_tagi   s     "'r   c                     i }| j         
| j         |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   |S )z
        Get a JSON-ready representation of this SubscriptionTracking.

        :returns: This SubscriptionTracking, ready for use in a request body.
        :rtype: dict
        Nr	   r
   r   r   )r	   r
   getr   r   )r   subscription_trackings     r   r#   zSubscriptionTracking.getz   s     !#;".2k!(+9 ,0IMMOO!&)9 ,0IMMOO!&) ,%))++ ""45$$r   )NNNN)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r#    r   r   r   r      s*         GK5 5 5 58   X ]  ]   X 
[	 	 [	   X 
[	 	 [	 & & X& ' ' ' % % % % %r   r   N)objectr   r+   r   r   <module>r-      sC   M% M% M% M% M%6 M% M% M% M% M%r   