@@ -26,9 +26,12 @@ def _translate_keys(self, **kwargs):
26
26
model ['metadata' ] = kwargs .get ('metadata' )
27
27
model ['substitution_data' ] = kwargs .get ('substitution_data' )
28
28
29
+ model ['options' ]['start_time' ] = kwargs .get ('start_time' )
29
30
model ['options' ]['open_tracking' ] = kwargs .get ('track_opens' )
30
31
model ['options' ]['click_tracking' ] = kwargs .get ('track_clicks' )
32
+ model ['options' ]['transactional' ] = kwargs .get ('transactional' )
31
33
model ['options' ]['sandbox' ] = kwargs .get ('use_sandbox' )
34
+ model ['options' ]['skip_suppression' ] = kwargs .get ('skip_suppression' )
32
35
33
36
model ['content' ]['use_draft_template' ] = \
34
37
kwargs .get ('use_draft_template' , False )
@@ -83,13 +86,21 @@ def send(self, **kwargs):
83
86
:param dict substitution_data: Corresponds to substitutions in
84
87
html/text content. See `substitutions reference
85
88
<https://www.sparkpost.com/docs/substitutions-reference>`_.
89
+ :param str start_time: Delay generation of messages until this
90
+ datetime. Format YYYY-MM-DDTHH:MM:SS+-HH:MM. Example:
91
+ '2015-02-11T08:00:00-04:00'.
86
92
:param bool track_opens: Defaults to True. Used to track opens of
87
93
transmission
88
94
:param bool track_clicks: Defaults to True. Used to track clicks of
89
95
transmission
90
96
:param bool use_sandbox: Flag must be set to use sandbox domain instead
91
97
of verified sending domain. Limited to a lifetime of 50
92
98
transmissions with this domain
99
+ :param bool transactional: Whether message is transactional or
100
+ non-transactional for unsubscribe and suppression purposes
101
+ :param bool skip_suppression: Whether or not to ignore customer
102
+ suppression rules, for this transmission only. Only applicable if
103
+ your configuration supports this parameter. (SparkPost Elite only)
93
104
:param dict custom_headers: Used to set any headers associated with
94
105
transmission
95
106
0 commit comments