Skip to content

Commit 58724c6

Browse files
committed
Merge pull request #56 from SparkPost/ISSUE-45
Additional options for transmissions
2 parents 2bac548 + 60a746b commit 58724c6

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

lib/SparkPost/Transmission.php

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,29 @@ class Transmission extends APIResource {
1515
* @var array
1616
*/
1717
protected static $parameterMappings = [
18+
'attachments'=>'content.attachments',
1819
'campaign'=>'campaign_id',
19-
'metadata'=>'metadata',
20-
'substitutionData'=>'substitution_data',
20+
'customHeaders'=>'content.headers',
2121
'description'=>'description',
22-
'returnPath'=>'return_path',
23-
'replyTo'=>'content.reply_to',
24-
'subject'=>'content.subject',
2522
'from'=>'content.from',
2623
'html'=>'content.html',
27-
'text'=>'content.text',
28-
'rfc822'=>'content.email_rfc822',
29-
'customHeaders'=>'content.headers',
30-
'recipients'=>'recipients',
31-
'recipientList'=>'recipients.list_id',
32-
'attachments'=>'content.attachments',
24+
'inlineCss'=>'options.inline_css',
3325
'inlineImages'=>'content.inline_images',
26+
'metadata'=>'metadata',
27+
'recipientList'=>'recipients.list_id',
28+
'recipients'=>'recipients',
29+
'replyTo'=>'content.reply_to',
30+
'returnPath'=>'return_path',
31+
'rfc822'=>'content.email_rfc822',
32+
'sandbox'=>'options.sandbox',
33+
'startTime'=>'options.start_time',
34+
'subject'=>'content.subject',
35+
'substitutionData'=>'substitution_data',
3436
'template'=>'content.template_id',
35-
'trackOpens'=>'options.open_tracking',
37+
'text'=>'content.text',
3638
'trackClicks'=>'options.click_tracking',
39+
'trackOpens'=>'options.open_tracking',
40+
'transactional'=>'options.transactional',
3741
'useDraftTemplate'=>'use_draft_template'
3842
];
3943

@@ -57,22 +61,28 @@ class Transmission extends APIResource {
5761
* This method assumes that all the appropriate fields have
5862
* been populated by the user through configuration. Acceptable
5963
* configuration values are:
64+
* 'attachments': array,
6065
* 'campaign': string,
61-
* 'metadata': array,
62-
* 'substitutionData': array,
66+
* 'customHeaders': array,
6367
* 'description': string,
64-
* 'replyTo': string,
65-
* 'subject': string,
6668
* 'from': string,
6769
* 'html': string,
68-
* 'text': string,
69-
* 'rfc822': string,
70-
* 'customHeaders': array,
71-
* 'recipients': array,
70+
* 'inlineCss': boolean,
71+
* 'inlineImages': array,
72+
* 'metadata': array,
7273
* 'recipientList': string,
74+
* 'recipients': array,
75+
* 'replyTo': string,
76+
* 'rfc822': string,
77+
* 'sandbox': boolean,
78+
* 'startTime': string,
79+
* 'subject': string,
80+
* 'substitutionData': array,
7381
* 'template': string,
74-
* 'trackOpens': boolean,
82+
* 'text': string,
7583
* 'trackClicks': boolean,
84+
* 'trackOpens': boolean,
85+
* 'transactional': boolean,
7686
* 'useDraftTemplate': boolean
7787
*
7888
* @param array $transmissionConfig

0 commit comments

Comments
 (0)