
    xh!                     "     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
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 )MailSettingszDA collection of mail settings that specify how to handle this email.Nc	                 
   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        |	|| _        dS dS )a>  Create a MailSettings object

        :param bcc_settings: The BCC Settings of this MailSettings
        :type bcc_settings: BCCSettings, optional
        :param bypass_bounce_management: Whether this MailSettings bypasses bounce management.
                                         Should not be combined with bypass_list_management.
        :type bypass_list_management: BypassBounceManagement, optional
        :param bypass_list_management: Whether this MailSettings bypasses list
                                       management
        :type bypass_list_management: BypassListManagement, optional
        :param bypass_spam_management: Whether this MailSettings bypasses spam management.
                                       Should not be combined with bypass_list_management.
        :type bypass_list_management: BypassSpamManagement, optional
        :param bypass_unsubscribe_management: Whether this MailSettings bypasses unsubscribe management.
                                              Should not be combined with bypass_list_management.
        :type bypass_list_management: BypassUnsubscribeManagement, optional
        :param footer_settings: The default footer specified by this
                                MailSettings
        :type footer_settings: FooterSettings, optional
        :param sandbox_mode: Whether this MailSettings enables sandbox mode
        :type sandbox_mode: SandBoxMode, optional
        :param spam_check: How this MailSettings requests email to be checked
                           for spam
        :type spam_check: SpamCheck, optional
        N)_bcc_settings_bypass_bounce_management_bypass_list_management_bypass_spam_management_bypass_unsubscribe_management_footer_settings_sandbox_mode_spam_checkbcc_settingsbypass_bounce_managementbypass_list_managementbypass_spam_managementbypass_unsubscribe_managementfooter_settingssandbox_mode
spam_check)	selfr   r   r   r   r   r   r   r   s	            V/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/mail_settings.py__init__zMailSettings.__init__   s    D ")-&'+$'+$.2+ $!# ,D#/,DD)!-*@D'!-*@D'(41ND.&#2D # ,D!(DOOO "!    c                     | j         S )zLThe BCC Settings of this MailSettings.

        :rtype: BCCSettings
        r   r   s    r   r   zMailSettings.bcc_settingsG        !!r   c                     || _         dS )zThe BCC Settings of this MailSettings.

        :param value: The BCC Settings of this MailSettings.
        :type value: BCCSettings
        Nr   r   values     r   r   zMailSettings.bcc_settingsO        #r   c                     | j         S )zfWhether this MailSettings bypasses bounce management.

        :rtype: BypassBounceManagement
        r   r   s    r   r   z%MailSettings.bypass_bounce_managementX   s     --r   c                     || _         dS )zWhether this MailSettings bypasses bounce management.

        :param value: Whether this MailSettings bypasses bounce management.
        :type value: BypassBounceManagement
        Nr"   r   s     r   r   z%MailSettings.bypass_bounce_management`   s     */&&&r   c                     | j         S )zbWhether this MailSettings bypasses list management.

        :rtype: BypassListManagement
        r   r   s    r   r   z#MailSettings.bypass_list_managementi        ++r   c                     || _         dS )zWhether this MailSettings bypasses list management.

        :param value: Whether this MailSettings bypasses list management.
        :type value: BypassListManagement
        Nr%   r   s     r   r   z#MailSettings.bypass_list_managementq        (-$$$r   c                     | j         S )zbWhether this MailSettings bypasses spam management.

        :rtype: BypassSpamManagement
        r   r   s    r   r   z#MailSettings.bypass_spam_managementz   r&   r   c                     || _         dS )zWhether this MailSettings bypasses spam management.

        :param value: Whether this MailSettings bypasses spam management.
        :type value: BypassSpamManagement
        Nr*   r   s     r   r   z#MailSettings.bypass_spam_management   r(   r   c                     | j         S )zpWhether this MailSettings bypasses unsubscribe management.

        :rtype: BypassUnsubscribeManagement
        r	   r   s    r   r   z*MailSettings.bypass_unsubscribe_management   s     22r   c                     || _         dS )zWhether this MailSettings bypasses unsubscribe management.

        :param value: Whether this MailSettings bypasses unsubscribe management.
        :type value: BypassUnsubscribeManagement
        Nr-   r   s     r   r   z*MailSettings.bypass_unsubscribe_management   s     /4+++r   c                     | j         S )z[The default footer specified by this MailSettings.

        :rtype: FooterSettings
        r
   r   s    r   r   zMailSettings.footer_settings   s     $$r   c                     || _         dS )zThe default footer specified by this MailSettings.

        :param value: The default footer specified by this MailSettings.
        :type value: FooterSettings
        Nr0   r   s     r   r   zMailSettings.footer_settings   s     !&r   c                     | j         S )zUWhether this MailSettings enables sandbox mode.

        :rtype: SandBoxMode
        r   r   s    r   r   zMailSettings.sandbox_mode   r   r   c                     || _         dS )zWhether this MailSettings enables sandbox mode.

        :param value: Whether this MailSettings enables sandbox mode.
        :type value: SandBoxMode
        Nr3   r   s     r   r   zMailSettings.sandbox_mode   r    r   c                     | j         S )z`How this MailSettings requests email to be checked for spam.

        :rtype: SpamCheck
        r   r   s    r   r   zMailSettings.spam_check   s     r   c                     || _         dS )zHow this MailSettings requests email to be checked for spam.

        :param value: How this MailSettings requests email to be checked
                      for spam.
        :type value: SpamCheck
        Nr6   r   s     r   r   zMailSettings.spam_check   s     !r   c                 :   i }| j         | j                                         |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d	<   |S )
z
        Get a JSON-ready representation of this MailSettings.

        :returns: This MailSettings, ready for use in a request body.
        :rtype: dict
        Nbccr   r   r   r   footerr   r   )	r   getr   r   r   r   r   r   r   )r   mail_settingss     r   r;   zMailSettings.get   s=    (#'#4#8#8#:#:M% (4.2.K.O.O.Q.Q *, &2,0,G,K,K,M,M (* &2,0,G,K,K,M,M (* -9373U3Y3Y3[3[ /1 +&*&:&>&>&@&@M(#(,0,=,A,A,C,CM.)?&*./*=*=*?*?M,'r   )NNNNNNNN)__name__
__module____qualname____doc__r   propertyr   setterr   r   r   r   r   r   r   r;    r   r   r   r      s,       NN #*.(,(,/3!%" A) A) A) A)F " " X" # # # . . X. $/ / %$/ , , X, "- - #"- , , X, "- - #"- 3 3 X3 #)4 4 *)4 % % X% & & & " " X" # # #     X  ! ! !# # # # #r   r   N)objectr   rC   r   r   <module>rE      sC   r r r r r6 r r r r rr   