@@ -58,7 +58,9 @@ class EmailLoadOptions extends LoadOptions
5858 'displayCcEmailAddress ' => 'bool ' ,
5959 'displayBccEmailAddress ' => 'bool ' ,
6060 'timeZoneOffset ' => 'string ' ,
61- 'convertAttachments ' => 'bool '
61+ 'convertAttachments ' => 'bool ' ,
62+ 'fieldLabels ' => '\GroupDocs\Conversion\Model\FieldLabel[] ' ,
63+ 'preserveOriginalDate ' => 'bool '
6264 ];
6365
6466 /*
@@ -74,7 +76,9 @@ class EmailLoadOptions extends LoadOptions
7476 'displayCcEmailAddress ' => null ,
7577 'displayBccEmailAddress ' => null ,
7678 'timeZoneOffset ' => null ,
77- 'convertAttachments ' => null
79+ 'convertAttachments ' => null ,
80+ 'fieldLabels ' => null ,
81+ 'preserveOriginalDate ' => null
7882 ];
7983
8084 /*
@@ -111,7 +115,9 @@ public static function swaggerFormats()
111115 'displayCcEmailAddress ' => 'DisplayCcEmailAddress ' ,
112116 'displayBccEmailAddress ' => 'DisplayBccEmailAddress ' ,
113117 'timeZoneOffset ' => 'TimeZoneOffset ' ,
114- 'convertAttachments ' => 'ConvertAttachments '
118+ 'convertAttachments ' => 'ConvertAttachments ' ,
119+ 'fieldLabels ' => 'FieldLabels ' ,
120+ 'preserveOriginalDate ' => 'PreserveOriginalDate '
115121 ];
116122
117123 /*
@@ -127,7 +133,9 @@ public static function swaggerFormats()
127133 'displayCcEmailAddress ' => 'setDisplayCcEmailAddress ' ,
128134 'displayBccEmailAddress ' => 'setDisplayBccEmailAddress ' ,
129135 'timeZoneOffset ' => 'setTimeZoneOffset ' ,
130- 'convertAttachments ' => 'setConvertAttachments '
136+ 'convertAttachments ' => 'setConvertAttachments ' ,
137+ 'fieldLabels ' => 'setFieldLabels ' ,
138+ 'preserveOriginalDate ' => 'setPreserveOriginalDate '
131139 ];
132140
133141 /*
@@ -143,7 +151,9 @@ public static function swaggerFormats()
143151 'displayCcEmailAddress ' => 'getDisplayCcEmailAddress ' ,
144152 'displayBccEmailAddress ' => 'getDisplayBccEmailAddress ' ,
145153 'timeZoneOffset ' => 'getTimeZoneOffset ' ,
146- 'convertAttachments ' => 'getConvertAttachments '
154+ 'convertAttachments ' => 'getConvertAttachments ' ,
155+ 'fieldLabels ' => 'getFieldLabels ' ,
156+ 'preserveOriginalDate ' => 'getPreserveOriginalDate '
147157 ];
148158
149159 /*
@@ -210,6 +220,8 @@ public function __construct(array $data = null)
210220 $ this ->container ['displayBccEmailAddress ' ] = isset ($ data ['displayBccEmailAddress ' ]) ? $ data ['displayBccEmailAddress ' ] : null ;
211221 $ this ->container ['timeZoneOffset ' ] = isset ($ data ['timeZoneOffset ' ]) ? $ data ['timeZoneOffset ' ] : null ;
212222 $ this ->container ['convertAttachments ' ] = isset ($ data ['convertAttachments ' ]) ? $ data ['convertAttachments ' ] : null ;
223+ $ this ->container ['fieldLabels ' ] = isset ($ data ['fieldLabels ' ]) ? $ data ['fieldLabels ' ] : null ;
224+ $ this ->container ['preserveOriginalDate ' ] = isset ($ data ['preserveOriginalDate ' ]) ? $ data ['preserveOriginalDate ' ] : null ;
213225 }
214226
215227 /*
@@ -242,6 +254,9 @@ public function listInvalidProperties()
242254 if ($ this ->container ['convertAttachments ' ] === null ) {
243255 $ invalidProperties [] = "'convertAttachments' can't be null " ;
244256 }
257+ if ($ this ->container ['preserveOriginalDate ' ] === null ) {
258+ $ invalidProperties [] = "'preserveOriginalDate' can't be null " ;
259+ }
245260 return $ invalidProperties ;
246261 }
247262
@@ -278,6 +293,9 @@ public function valid()
278293 if ($ this ->container ['convertAttachments ' ] === null ) {
279294 return false ;
280295 }
296+ if ($ this ->container ['preserveOriginalDate ' ] === null ) {
297+ return false ;
298+ }
281299 return true ;
282300 }
283301
@@ -473,6 +491,54 @@ public function setConvertAttachments($convertAttachments)
473491
474492 return $ this ;
475493 }
494+
495+ /*
496+ * Gets fieldLabels
497+ *
498+ * @return \GroupDocs\Conversion\Model\FieldLabel[]
499+ */
500+ public function getFieldLabels ()
501+ {
502+ return $ this ->container ['fieldLabels ' ];
503+ }
504+
505+ /*
506+ * Sets fieldLabels
507+ *
508+ * @param \GroupDocs\Conversion\Model\FieldLabel[] $fieldLabels The mapping between email message field and field text representation
509+ *
510+ * @return $this
511+ */
512+ public function setFieldLabels ($ fieldLabels )
513+ {
514+ $ this ->container ['fieldLabels ' ] = $ fieldLabels ;
515+
516+ return $ this ;
517+ }
518+
519+ /*
520+ * Gets preserveOriginalDate
521+ *
522+ * @return bool
523+ */
524+ public function getPreserveOriginalDate ()
525+ {
526+ return $ this ->container ['preserveOriginalDate ' ];
527+ }
528+
529+ /*
530+ * Sets preserveOriginalDate
531+ *
532+ * @param bool $preserveOriginalDate Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
533+ *
534+ * @return $this
535+ */
536+ public function setPreserveOriginalDate ($ preserveOriginalDate )
537+ {
538+ $ this ->container ['preserveOriginalDate ' ] = $ preserveOriginalDate ;
539+
540+ return $ this ;
541+ }
476542 /*
477543 * Returns true if offset exists. False otherwise.
478544 *
0 commit comments