|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace SForce\Wsdl; |
|
4
|
|
|
|
|
5
|
|
|
class SingleEmailMessage extends Email |
|
6
|
|
|
{ |
|
7
|
|
|
/** |
|
8
|
|
|
* @var string[] |
|
9
|
|
|
*/ |
|
10
|
|
|
protected $bccAddresses = null; |
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* @var string[] |
|
14
|
|
|
*/ |
|
15
|
|
|
protected $ccAddresses = null; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* @var string |
|
19
|
|
|
*/ |
|
20
|
|
|
protected $charset = null; |
|
21
|
|
|
|
|
22
|
|
|
/** |
|
23
|
|
|
* @var ID[] |
|
24
|
|
|
*/ |
|
25
|
|
|
protected $documentAttachments = null; |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* @var ID[] |
|
29
|
|
|
*/ |
|
30
|
|
|
protected $entityAttachments = null; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* @var EmailFileAttachment[] |
|
34
|
|
|
*/ |
|
35
|
|
|
protected $fileAttachments = null; |
|
36
|
|
|
|
|
37
|
|
|
/** |
|
38
|
|
|
* @var string |
|
39
|
|
|
*/ |
|
40
|
|
|
protected $htmlBody = null; |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* @var string |
|
44
|
|
|
*/ |
|
45
|
|
|
protected $inReplyTo = null; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @var SendEmailOptOutPolicy |
|
49
|
|
|
*/ |
|
50
|
|
|
protected $optOutPolicy = null; |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* @var ID |
|
54
|
|
|
*/ |
|
55
|
|
|
protected $orgWideEmailAddressId = null; |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @var string |
|
59
|
|
|
*/ |
|
60
|
|
|
protected $plainTextBody = null; |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* @var string |
|
64
|
|
|
*/ |
|
65
|
|
|
protected $references = null; |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @var ID |
|
69
|
|
|
*/ |
|
70
|
|
|
protected $targetObjectId = null; |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* @var ID |
|
74
|
|
|
*/ |
|
75
|
|
|
protected $templateId = null; |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* @var string |
|
79
|
|
|
*/ |
|
80
|
|
|
protected $templateName = null; |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @var string[] |
|
84
|
|
|
*/ |
|
85
|
|
|
protected $toAddresses = null; |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* @var boolean |
|
89
|
|
|
*/ |
|
90
|
|
|
protected $treatBodiesAsTemplate = null; |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* @var boolean |
|
94
|
|
|
*/ |
|
95
|
|
|
protected $treatTargetObjectAsRecipient = null; |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* @var ID |
|
99
|
|
|
*/ |
|
100
|
|
|
protected $whatId = null; |
|
101
|
|
|
|
|
102
|
|
|
public function __construct() |
|
103
|
|
|
{ |
|
104
|
|
|
parent::__construct(); |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
|
|
* @return string[] |
|
109
|
|
|
*/ |
|
110
|
|
|
public function getBccAddresses() |
|
111
|
|
|
{ |
|
112
|
|
|
return $this->bccAddresses; |
|
113
|
|
|
} |
|
114
|
|
|
|
|
115
|
|
|
/** |
|
116
|
|
|
* @param string[] $bccAddresses |
|
117
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
118
|
|
|
*/ |
|
119
|
|
|
public function setBccAddresses(array $bccAddresses = null) |
|
120
|
|
|
{ |
|
121
|
|
|
$this->bccAddresses = $bccAddresses; |
|
122
|
|
|
return $this; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
/** |
|
126
|
|
|
* @return string[] |
|
127
|
|
|
*/ |
|
128
|
|
|
public function getCcAddresses() |
|
129
|
|
|
{ |
|
130
|
|
|
return $this->ccAddresses; |
|
131
|
|
|
} |
|
132
|
|
|
|
|
133
|
|
|
/** |
|
134
|
|
|
* @param string[] $ccAddresses |
|
135
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
136
|
|
|
*/ |
|
137
|
|
|
public function setCcAddresses(array $ccAddresses = null) |
|
138
|
|
|
{ |
|
139
|
|
|
$this->ccAddresses = $ccAddresses; |
|
140
|
|
|
return $this; |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
/** |
|
144
|
|
|
* @return string |
|
145
|
|
|
*/ |
|
146
|
|
|
public function getCharset() |
|
147
|
|
|
{ |
|
148
|
|
|
return $this->charset; |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
/** |
|
152
|
|
|
* @param string $charset |
|
153
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
154
|
|
|
*/ |
|
155
|
|
|
public function setCharset($charset) |
|
156
|
|
|
{ |
|
157
|
|
|
$this->charset = $charset; |
|
158
|
|
|
return $this; |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
/** |
|
162
|
|
|
* @return ID[] |
|
163
|
|
|
*/ |
|
164
|
|
|
public function getDocumentAttachments() |
|
165
|
|
|
{ |
|
166
|
|
|
return $this->documentAttachments; |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* @param ID[] $documentAttachments |
|
171
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
172
|
|
|
*/ |
|
173
|
|
|
public function setDocumentAttachments(array $documentAttachments = null) |
|
174
|
|
|
{ |
|
175
|
|
|
$this->documentAttachments = $documentAttachments; |
|
176
|
|
|
return $this; |
|
177
|
|
|
} |
|
178
|
|
|
|
|
179
|
|
|
/** |
|
180
|
|
|
* @return ID[] |
|
181
|
|
|
*/ |
|
182
|
|
|
public function getEntityAttachments() |
|
183
|
|
|
{ |
|
184
|
|
|
return $this->entityAttachments; |
|
185
|
|
|
} |
|
186
|
|
|
|
|
187
|
|
|
/** |
|
188
|
|
|
* @param ID[] $entityAttachments |
|
189
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
190
|
|
|
*/ |
|
191
|
|
|
public function setEntityAttachments(array $entityAttachments = null) |
|
192
|
|
|
{ |
|
193
|
|
|
$this->entityAttachments = $entityAttachments; |
|
194
|
|
|
return $this; |
|
195
|
|
|
} |
|
196
|
|
|
|
|
197
|
|
|
/** |
|
198
|
|
|
* @return EmailFileAttachment[] |
|
199
|
|
|
*/ |
|
200
|
|
|
public function getFileAttachments() |
|
201
|
|
|
{ |
|
202
|
|
|
return $this->fileAttachments; |
|
203
|
|
|
} |
|
204
|
|
|
|
|
205
|
|
|
/** |
|
206
|
|
|
* @param EmailFileAttachment[] $fileAttachments |
|
207
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
208
|
|
|
*/ |
|
209
|
|
|
public function setFileAttachments(array $fileAttachments = null) |
|
210
|
|
|
{ |
|
211
|
|
|
$this->fileAttachments = $fileAttachments; |
|
212
|
|
|
return $this; |
|
213
|
|
|
} |
|
214
|
|
|
|
|
215
|
|
|
/** |
|
216
|
|
|
* @return string |
|
217
|
|
|
*/ |
|
218
|
|
|
public function getHtmlBody() |
|
219
|
|
|
{ |
|
220
|
|
|
return $this->htmlBody; |
|
221
|
|
|
} |
|
222
|
|
|
|
|
223
|
|
|
/** |
|
224
|
|
|
* @param string $htmlBody |
|
225
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
226
|
|
|
*/ |
|
227
|
|
|
public function setHtmlBody($htmlBody) |
|
228
|
|
|
{ |
|
229
|
|
|
$this->htmlBody = $htmlBody; |
|
230
|
|
|
return $this; |
|
231
|
|
|
} |
|
232
|
|
|
|
|
233
|
|
|
/** |
|
234
|
|
|
* @return string |
|
235
|
|
|
*/ |
|
236
|
|
|
public function getInReplyTo() |
|
237
|
|
|
{ |
|
238
|
|
|
return $this->inReplyTo; |
|
239
|
|
|
} |
|
240
|
|
|
|
|
241
|
|
|
/** |
|
242
|
|
|
* @param string $inReplyTo |
|
243
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
244
|
|
|
*/ |
|
245
|
|
|
public function setInReplyTo($inReplyTo) |
|
246
|
|
|
{ |
|
247
|
|
|
$this->inReplyTo = $inReplyTo; |
|
248
|
|
|
return $this; |
|
249
|
|
|
} |
|
250
|
|
|
|
|
251
|
|
|
/** |
|
252
|
|
|
* @return SendEmailOptOutPolicy |
|
253
|
|
|
*/ |
|
254
|
|
|
public function getOptOutPolicy() |
|
255
|
|
|
{ |
|
256
|
|
|
return $this->optOutPolicy; |
|
257
|
|
|
} |
|
258
|
|
|
|
|
259
|
|
|
/** |
|
260
|
|
|
* @param SendEmailOptOutPolicy $optOutPolicy |
|
261
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
262
|
|
|
*/ |
|
263
|
|
|
public function setOptOutPolicy($optOutPolicy) |
|
264
|
|
|
{ |
|
265
|
|
|
$this->optOutPolicy = $optOutPolicy; |
|
266
|
|
|
return $this; |
|
267
|
|
|
} |
|
268
|
|
|
|
|
269
|
|
|
/** |
|
270
|
|
|
* @return ID |
|
271
|
|
|
*/ |
|
272
|
|
|
public function getOrgWideEmailAddressId() |
|
273
|
|
|
{ |
|
274
|
|
|
return $this->orgWideEmailAddressId; |
|
275
|
|
|
} |
|
276
|
|
|
|
|
277
|
|
|
/** |
|
278
|
|
|
* @param ID $orgWideEmailAddressId |
|
279
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
280
|
|
|
*/ |
|
281
|
|
|
public function setOrgWideEmailAddressId($orgWideEmailAddressId) |
|
282
|
|
|
{ |
|
283
|
|
|
$this->orgWideEmailAddressId = $orgWideEmailAddressId; |
|
284
|
|
|
return $this; |
|
285
|
|
|
} |
|
286
|
|
|
|
|
287
|
|
|
/** |
|
288
|
|
|
* @return string |
|
289
|
|
|
*/ |
|
290
|
|
|
public function getPlainTextBody() |
|
291
|
|
|
{ |
|
292
|
|
|
return $this->plainTextBody; |
|
293
|
|
|
} |
|
294
|
|
|
|
|
295
|
|
|
/** |
|
296
|
|
|
* @param string $plainTextBody |
|
297
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
298
|
|
|
*/ |
|
299
|
|
|
public function setPlainTextBody($plainTextBody) |
|
300
|
|
|
{ |
|
301
|
|
|
$this->plainTextBody = $plainTextBody; |
|
302
|
|
|
return $this; |
|
303
|
|
|
} |
|
304
|
|
|
|
|
305
|
|
|
/** |
|
306
|
|
|
* @return string |
|
307
|
|
|
*/ |
|
308
|
|
|
public function getReferences() |
|
309
|
|
|
{ |
|
310
|
|
|
return $this->references; |
|
311
|
|
|
} |
|
312
|
|
|
|
|
313
|
|
|
/** |
|
314
|
|
|
* @param string $references |
|
315
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
316
|
|
|
*/ |
|
317
|
|
|
public function setReferences($references) |
|
318
|
|
|
{ |
|
319
|
|
|
$this->references = $references; |
|
320
|
|
|
return $this; |
|
321
|
|
|
} |
|
322
|
|
|
|
|
323
|
|
|
/** |
|
324
|
|
|
* @return ID |
|
325
|
|
|
*/ |
|
326
|
|
|
public function getTargetObjectId() |
|
327
|
|
|
{ |
|
328
|
|
|
return $this->targetObjectId; |
|
329
|
|
|
} |
|
330
|
|
|
|
|
331
|
|
|
/** |
|
332
|
|
|
* @param ID $targetObjectId |
|
333
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
334
|
|
|
*/ |
|
335
|
|
|
public function setTargetObjectId($targetObjectId) |
|
336
|
|
|
{ |
|
337
|
|
|
$this->targetObjectId = $targetObjectId; |
|
338
|
|
|
return $this; |
|
339
|
|
|
} |
|
340
|
|
|
|
|
341
|
|
|
/** |
|
342
|
|
|
* @return ID |
|
343
|
|
|
*/ |
|
344
|
|
|
public function getTemplateId() |
|
345
|
|
|
{ |
|
346
|
|
|
return $this->templateId; |
|
347
|
|
|
} |
|
348
|
|
|
|
|
349
|
|
|
/** |
|
350
|
|
|
* @param ID $templateId |
|
351
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
352
|
|
|
*/ |
|
353
|
|
|
public function setTemplateId($templateId) |
|
354
|
|
|
{ |
|
355
|
|
|
$this->templateId = $templateId; |
|
356
|
|
|
return $this; |
|
357
|
|
|
} |
|
358
|
|
|
|
|
359
|
|
|
/** |
|
360
|
|
|
* @return string |
|
361
|
|
|
*/ |
|
362
|
|
|
public function getTemplateName() |
|
363
|
|
|
{ |
|
364
|
|
|
return $this->templateName; |
|
365
|
|
|
} |
|
366
|
|
|
|
|
367
|
|
|
/** |
|
368
|
|
|
* @param string $templateName |
|
369
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
370
|
|
|
*/ |
|
371
|
|
|
public function setTemplateName($templateName) |
|
372
|
|
|
{ |
|
373
|
|
|
$this->templateName = $templateName; |
|
374
|
|
|
return $this; |
|
375
|
|
|
} |
|
376
|
|
|
|
|
377
|
|
|
/** |
|
378
|
|
|
* @return string[] |
|
379
|
|
|
*/ |
|
380
|
|
|
public function getToAddresses() |
|
381
|
|
|
{ |
|
382
|
|
|
return $this->toAddresses; |
|
383
|
|
|
} |
|
384
|
|
|
|
|
385
|
|
|
/** |
|
386
|
|
|
* @param string[] $toAddresses |
|
387
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
388
|
|
|
*/ |
|
389
|
|
|
public function setToAddresses(array $toAddresses = null) |
|
390
|
|
|
{ |
|
391
|
|
|
$this->toAddresses = $toAddresses; |
|
392
|
|
|
return $this; |
|
393
|
|
|
} |
|
394
|
|
|
|
|
395
|
|
|
/** |
|
396
|
|
|
* @return boolean |
|
397
|
|
|
*/ |
|
398
|
|
|
public function getTreatBodiesAsTemplate() |
|
399
|
|
|
{ |
|
400
|
|
|
return $this->treatBodiesAsTemplate; |
|
401
|
|
|
} |
|
402
|
|
|
|
|
403
|
|
|
/** |
|
404
|
|
|
* @param boolean $treatBodiesAsTemplate |
|
405
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
406
|
|
|
*/ |
|
407
|
|
|
public function setTreatBodiesAsTemplate($treatBodiesAsTemplate) |
|
408
|
|
|
{ |
|
409
|
|
|
$this->treatBodiesAsTemplate = $treatBodiesAsTemplate; |
|
410
|
|
|
return $this; |
|
411
|
|
|
} |
|
412
|
|
|
|
|
413
|
|
|
/** |
|
414
|
|
|
* @return boolean |
|
415
|
|
|
*/ |
|
416
|
|
|
public function getTreatTargetObjectAsRecipient() |
|
417
|
|
|
{ |
|
418
|
|
|
return $this->treatTargetObjectAsRecipient; |
|
419
|
|
|
} |
|
420
|
|
|
|
|
421
|
|
|
/** |
|
422
|
|
|
* @param boolean $treatTargetObjectAsRecipient |
|
423
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
424
|
|
|
*/ |
|
425
|
|
|
public function setTreatTargetObjectAsRecipient($treatTargetObjectAsRecipient) |
|
426
|
|
|
{ |
|
427
|
|
|
$this->treatTargetObjectAsRecipient = $treatTargetObjectAsRecipient; |
|
428
|
|
|
return $this; |
|
429
|
|
|
} |
|
430
|
|
|
|
|
431
|
|
|
/** |
|
432
|
|
|
* @return ID |
|
433
|
|
|
*/ |
|
434
|
|
|
public function getWhatId() |
|
435
|
|
|
{ |
|
436
|
|
|
return $this->whatId; |
|
437
|
|
|
} |
|
438
|
|
|
|
|
439
|
|
|
/** |
|
440
|
|
|
* @param ID $whatId |
|
441
|
|
|
* @return \SForce\Wsdl\SingleEmailMessage |
|
442
|
|
|
*/ |
|
443
|
|
|
public function setWhatId($whatId) |
|
444
|
|
|
{ |
|
445
|
|
|
$this->whatId = $whatId; |
|
446
|
|
|
return $this; |
|
447
|
|
|
} |
|
448
|
|
|
} |
|
449
|
|
|
|