Skip to content

Commit a1da22a

Browse files
committed
Updated sources
1 parent 8ef3f38 commit a1da22a

6 files changed

Lines changed: 808 additions & 9 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "This repository contains GroupDocs.Conversion Cloud SDK for PHP source code.",
33
"name": "groupdocscloud/groupdocs-conversion-cloud",
4-
"version": "20.2",
4+
"version": "20.3",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [

src/GroupDocs/Conversion/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Configuration
9595
* Version of client SDK
9696
*
9797
*/
98-
protected $clientVersion = '20.2';
98+
protected $clientVersion = '20.3';
9999

100100
/*
101101
* Constructor
@@ -290,7 +290,7 @@ public function getClientName()
290290
}
291291

292292
/*
293-
* Gets client version, default value is '20.2'
293+
* Gets client version, default value is '20.3'
294294
*
295295
*/
296296
public function getClientVersion()
@@ -308,7 +308,7 @@ public static function toDebugReport()
308308
$report = 'PHP SDK (GroupDocs\Conversion) Debug Report:' . PHP_EOL;
309309
$report .= ' OS: ' . php_uname() . PHP_EOL;
310310
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
311-
$report .= ' SDK Package Version: 20.2' . PHP_EOL;
311+
$report .= ' SDK Package Version: 20.3' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;

src/GroupDocs/Conversion/Model/EmailLoadOptions.php

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)