Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/bypass_bounce_management.py: 41%
16 statements
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
1class BypassBounceManagement(object):
2 """Setting for Bypass Bounce Management
5 Allows you to bypass the bounce list to ensure that the email is delivered to recipients.
6 Spam report and unsubscribe lists will still be checked; addresses on these other lists
7 will not receive the message. This filter cannot be combined with the bypass_list_management filter.
8 """
10 def __init__(self, enable=None):
11 """Create a BypassBounceManagement.
13 :param enable: Whether emails should bypass bounce management.
14 :type enable: boolean, optional
15 """
16 self._enable = None
18 if enable is not None:
19 self.enable = enable
21 @property
22 def enable(self):
23 """Indicates if this setting is enabled.
25 :rtype: boolean
26 """
27 return self._enable
29 @enable.setter
30 def enable(self, value):
31 """Indicates if this setting is enabled.
33 :param value: Indicates if this setting is enabled.
34 :type value: boolean
35 """
36 self._enable = value
38 def get(self):
39 """
40 Get a JSON-ready representation of this BypassBounceManagement.
42 :returns: This BypassBounceManagement, ready for use in a request body.
43 :rtype: dict
44 """
45 bypass_bounce_management = {}
46 if self.enable is not None:
47 bypass_bounce_management["enable"] = self.enable
48 return bypass_bounce_management