Skip to content

Commit e9b9032

Browse files
committed
- added new parameters to Newsletter entity according to API
1 parent fd83c1b commit e9b9032

File tree

1 file changed

+66
-2
lines changed

1 file changed

+66
-2
lines changed

src/MailQ/Entities/v2/NewsletterEntity.php

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,27 @@ class NewsletterEntity extends BaseEntity {
7575
* @var bool
7676
*/
7777
private $automaticTime;
78+
79+
/**
80+
* @in
81+
* @out
82+
* @var bool
83+
*/
84+
private $unlimited;
7885

7986
/**
8087
* @in
8188
* @out
8289
* @var integer
8390
*/
8491
private $recipientsListId;
92+
93+
/**
94+
* @in
95+
* @out
96+
* @var integer
97+
*/
98+
private $dataPersistence;
8599

86100
/**
87101
* @in
@@ -90,14 +104,23 @@ class NewsletterEntity extends BaseEntity {
90104
*/
91105
private $campaign;
92106

107+
/**
108+
* @in
109+
* @out
110+
* @var string
111+
*/
112+
private $csvUrl;
113+
93114
/**
94-
*
115+
* @in
116+
* @out
95117
* @var string
96118
*/
97119
private $templateUrl;
98120

99121
/**
100-
*
122+
* @in
123+
* @out
101124
* @var string
102125
*/
103126
private $unsubscribeTemplateUrl;
@@ -116,6 +139,13 @@ class NewsletterEntity extends BaseEntity {
116139
* @var LinkEntity
117140
*/
118141
private $company;
142+
143+
/**
144+
* @in
145+
* @out
146+
* @var string
147+
*/
148+
private $text;
119149

120150
public function getId() {
121151
return $this->id;
@@ -270,5 +300,39 @@ public function setTemplateUrl($templateUrl) {
270300
public function setUnsubscribeTemplateUrl($unsubscribeTemplateUrl) {
271301
$this->unsubscribeTemplateUrl = $unsubscribeTemplateUrl;
272302
}
303+
304+
public function getUnlimited() {
305+
return $this->unlimited;
306+
}
307+
308+
public function getDataPersistence() {
309+
return $this->dataPersistence;
310+
}
311+
312+
public function getCsvUrl() {
313+
return $this->csvUrl;
314+
}
315+
316+
public function getText() {
317+
return $this->text;
318+
}
319+
320+
public function setUnlimited($unlimited) {
321+
$this->unlimited = $unlimited;
322+
}
323+
324+
public function setDataPersistence($dataPersistence) {
325+
$this->dataPersistence = $dataPersistence;
326+
}
327+
328+
public function setCsvUrl($csvUrl) {
329+
$this->csvUrl = $csvUrl;
330+
}
331+
332+
public function setText($text) {
333+
$this->text = $text;
334+
}
335+
336+
273337

274338
}

0 commit comments

Comments
 (0)