@@ -3,17 +3,29 @@ class MailSettings(object):
33
44 def __init__ (self ,
55 bcc_settings = None ,
6+ bypass_bounce_management = None ,
67 bypass_list_management = None ,
8+ bypass_spam_management = None ,
9+ bypass_unsubscribe_management = None ,
710 footer_settings = None ,
811 sandbox_mode = None ,
912 spam_check = None ):
1013 """Create a MailSettings object
1114
1215 :param bcc_settings: The BCC Settings of this MailSettings
1316 :type bcc_settings: BCCSettings, optional
17+ :param bypass_bounce_management: Whether this MailSettings bypasses bounce management.
18+ Should not be combined with bypass_list_management.
19+ :type bypass_list_management: BypassBounceManagement, optional
1420 :param bypass_list_management: Whether this MailSettings bypasses list
1521 management
1622 :type bypass_list_management: BypassListManagement, optional
23+ :param bypass_spam_management: Whether this MailSettings bypasses spam management.
24+ Should not be combined with bypass_list_management.
25+ :type bypass_list_management: BypassSpamManagement, optional
26+ :param bypass_unsubscribe_management: Whether this MailSettings bypasses unsubscribe management.
27+ Should not be combined with bypass_list_management.
28+ :type bypass_list_management: BypassUnsubscribeManagement, optional
1729 :param footer_settings: The default footer specified by this
1830 MailSettings
1931 :type footer_settings: FooterSettings, optional
@@ -24,17 +36,29 @@ def __init__(self,
2436 :type spam_check: SpamCheck, optional
2537 """
2638 self ._bcc_settings = None
39+ self ._bypass_bounce_management = None
2740 self ._bypass_list_management = None
41+ self ._bypass_spam_management = None
42+ self ._bypass_unsubscribe_management = None
2843 self ._footer_settings = None
2944 self ._sandbox_mode = None
3045 self ._spam_check = None
3146
3247 if bcc_settings is not None :
3348 self .bcc_settings = bcc_settings
3449
50+ if bypass_bounce_management is not None :
51+ self .bypass_bounce_management = bypass_bounce_management
52+
3553 if bypass_list_management is not None :
3654 self .bypass_list_management = bypass_list_management
3755
56+ if bypass_spam_management is not None :
57+ self .bypass_spam_management = bypass_spam_management
58+
59+ if bypass_unsubscribe_management is not None :
60+ self .bypass_unsubscribe_management = bypass_unsubscribe_management
61+
3862 if footer_settings is not None :
3963 self .footer_settings = footer_settings
4064
@@ -61,6 +85,23 @@ def bcc_settings(self, value):
6185 """
6286 self ._bcc_settings = value
6387
88+ @property
89+ def bypass_bounce_management (self ):
90+ """Whether this MailSettings bypasses bounce management.
91+
92+ :rtype: BypassBounceManagement
93+ """
94+ return self ._bypass_bounce_management
95+
96+ @bypass_bounce_management .setter
97+ def bypass_bounce_management (self , value ):
98+ """Whether this MailSettings bypasses bounce management.
99+
100+ :param value: Whether this MailSettings bypasses bounce management.
101+ :type value: BypassBounceManagement
102+ """
103+ self ._bypass_bounce_management = value
104+
64105 @property
65106 def bypass_list_management (self ):
66107 """Whether this MailSettings bypasses list management.
@@ -78,6 +119,40 @@ def bypass_list_management(self, value):
78119 """
79120 self ._bypass_list_management = value
80121
122+ @property
123+ def bypass_spam_management (self ):
124+ """Whether this MailSettings bypasses spam management.
125+
126+ :rtype: BypassSpamManagement
127+ """
128+ return self ._bypass_spam_management
129+
130+ @bypass_spam_management .setter
131+ def bypass_spam_management (self , value ):
132+ """Whether this MailSettings bypasses spam management.
133+
134+ :param value: Whether this MailSettings bypasses spam management.
135+ :type value: BypassSpamManagement
136+ """
137+ self ._bypass_spam_management = value
138+
139+ @property
140+ def bypass_unsubscribe_management (self ):
141+ """Whether this MailSettings bypasses unsubscribe management.
142+
143+ :rtype: BypassUnsubscribeManagement
144+ """
145+ return self ._bypass_unsubscribe_management
146+
147+ @bypass_unsubscribe_management .setter
148+ def bypass_unsubscribe_management (self , value ):
149+ """Whether this MailSettings bypasses unsubscribe management.
150+
151+ :param value: Whether this MailSettings bypasses unsubscribe management.
152+ :type value: BypassUnsubscribeManagement
153+ """
154+ self ._bypass_unsubscribe_management = value
155+
81156 @property
82157 def footer_settings (self ):
83158 """The default footer specified by this MailSettings.
@@ -141,10 +216,22 @@ def get(self):
141216 if self .bcc_settings is not None :
142217 mail_settings ["bcc" ] = self .bcc_settings .get ()
143218
219+ if self .bypass_bounce_management is not None :
220+ mail_settings [
221+ "bypass_bounce_management" ] = self .bypass_bounce_management .get ()
222+
144223 if self .bypass_list_management is not None :
145224 mail_settings [
146225 "bypass_list_management" ] = self .bypass_list_management .get ()
147226
227+ if self .bypass_spam_management is not None :
228+ mail_settings [
229+ "bypass_spam_management" ] = self .bypass_spam_management .get ()
230+
231+ if self .bypass_unsubscribe_management is not None :
232+ mail_settings [
233+ "bypass_unsubscribe_management" ] = self .bypass_unsubscribe_management .get ()
234+
148235 if self .footer_settings is not None :
149236 mail_settings ["footer" ] = self .footer_settings .get ()
150237
0 commit comments