Skip to content

Commit 20be533

Browse files
committed
Update entities
1 parent 81f7e00 commit 20be533

File tree

3 files changed

+234
-26
lines changed

3 files changed

+234
-26
lines changed

src/MailQ/Entities/v2/NewsletterEntity.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @property string $subject
1212
* @property string $sendAs
1313
* @property string $senderEmail
14+
* @property string $replyTo
1415
* @property string $status
1516
* @property \DateTime $from
1617
* @property \DateTime $to
@@ -21,6 +22,8 @@
2122
* @property string $campaign
2223
* @property string $csvUrl
2324
* @property string $templateUrl
25+
* @property string $template
26+
* @property string $tags
2427
* @property string $unsubscribeTemplateUrl
2528
* @property LinkEntity $company
2629
* @property string $text
@@ -69,6 +72,13 @@ class NewsletterEntity extends BaseEntity {
6972
*/
7073
private $senderEmail;
7174

75+
/**
76+
* @in
77+
* @out replyToEmail
78+
* @var string
79+
*/
80+
private $replyTo;
81+
7282
/**
7383
* @in
7484
* @out
@@ -139,6 +149,21 @@ class NewsletterEntity extends BaseEntity {
139149
*/
140150
private $templateUrl;
141151

152+
/**
153+
* @in
154+
* @out
155+
* @var string
156+
*/
157+
private $template;
158+
159+
/**
160+
* @in
161+
* @out
162+
* @var TagEntity[]
163+
* @collection
164+
*/
165+
private $tags;
166+
142167
/**
143168
* @in
144169
* @out
@@ -533,6 +558,65 @@ public function setText($text)
533558
return $this;
534559
}
535560

561+
/**
562+
* @return string
563+
*/
564+
public function getReplyTo()
565+
{
566+
return $this->replyTo;
567+
}
568+
569+
/**
570+
* @param string $replyTo
571+
* @return NewsletterEntity
572+
*/
573+
public function setReplyTo($replyTo)
574+
{
575+
$this->replyTo = $replyTo;
576+
return $this;
577+
}
578+
579+
/**
580+
* @return string
581+
*/
582+
public function getTemplate()
583+
{
584+
return $this->template;
585+
}
586+
587+
/**
588+
* @param string $template
589+
* @return NewsletterEntity
590+
*/
591+
public function setTemplate($template)
592+
{
593+
$this->template = $template;
594+
return $this;
595+
}
596+
597+
/**
598+
* @return string
599+
*/
600+
public function getTags()
601+
{
602+
return $this->tags;
603+
}
604+
605+
/**
606+
* @param string $tags
607+
* @return NewsletterEntity
608+
*/
609+
public function setTags($tags)
610+
{
611+
$this->tags = $tags;
612+
return $this;
613+
}
614+
615+
616+
617+
618+
619+
536620

537621

538622

src/MailQ/Entities/v2/PreparedNewsletterEntity.php

Lines changed: 83 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
* @property string $subject
1212
* @property string $sendAs
1313
* @property string $senderEmail
14+
* @property string $replyTo
1415
* @property bool $unlimited
1516
* @property integer $recipientsListId
1617
* @property integer $dataPersistence
1718
* @property string $campaign
1819
* @property string $templateUrl
20+
* @property string $template
21+
* @property string $tags
1922
* @property string $unsubscribeTemplateUrl
2023
* @property string $text
2124
*/
@@ -62,20 +65,22 @@ class PreparedNewsletterEntity extends BaseEntity {
6265
* @var string
6366
*/
6467
private $senderEmail;
65-
68+
69+
70+
/**
71+
* @in
72+
* @out replyToEmail
73+
* @var string
74+
*/
75+
private $replyTo;
76+
77+
6678
/**
6779
* @in
6880
* @out
6981
* @var bool
7082
*/
7183
private $unlimited;
72-
73-
/**
74-
* @in
75-
* @out
76-
* @var integer
77-
*/
78-
private $recipientsListId;
7984

8085
/**
8186
* @in
@@ -98,6 +103,21 @@ class PreparedNewsletterEntity extends BaseEntity {
98103
*/
99104
private $templateUrl;
100105

106+
/**
107+
* @in
108+
* @out
109+
* @var string
110+
*/
111+
private $template;
112+
113+
/**
114+
* @in
115+
* @out
116+
* @var TagEntity[]
117+
* @collection
118+
*/
119+
private $tags;
120+
101121
/**
102122
* @in
103123
* @out
@@ -239,24 +259,6 @@ public function setUnlimited($unlimited)
239259
return $this;
240260
}
241261

242-
/**
243-
* @return int
244-
*/
245-
public function getRecipientsListId()
246-
{
247-
return $this->recipientsListId;
248-
}
249-
250-
/**
251-
* @param int $recipientsListId
252-
* @return PreparedNewsletterEntity
253-
*/
254-
public function setRecipientsListId($recipientsListId)
255-
{
256-
$this->recipientsListId = $recipientsListId;
257-
return $this;
258-
}
259-
260262
/**
261263
* @return int
262264
*/
@@ -348,6 +350,61 @@ public function setText($text)
348350
}
349351

350352

353+
/**
354+
* @return string
355+
*/
356+
public function getReplyTo()
357+
{
358+
return $this->replyTo;
359+
}
360+
361+
/**
362+
* @param string $replyTo
363+
* @return PreparedNewsletterEntity
364+
*/
365+
public function setReplyTo($replyTo)
366+
{
367+
$this->replyTo = $replyTo;
368+
return $this;
369+
}
370+
371+
/**
372+
* @return string
373+
*/
374+
public function getTemplate()
375+
{
376+
return $this->template;
377+
}
378+
379+
/**
380+
* @param string $template
381+
* @return PreparedNewsletterEntity
382+
*/
383+
public function setTemplate($template)
384+
{
385+
$this->template = $template;
386+
return $this;
387+
}
388+
389+
/**
390+
* @return string
391+
*/
392+
public function getTags()
393+
{
394+
return $this->tags;
395+
}
396+
397+
/**
398+
* @param string $tags
399+
* @return PreparedNewsletterEntity
400+
*/
401+
public function setTags($tags)
402+
{
403+
$this->tags = $tags;
404+
return $this;
405+
}
406+
407+
351408

352409

353410

src/MailQ/Entities/v2/TagEntity.php

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
3+
namespace MailQ\Entities\v2;
4+
5+
use MailQ\Entities\BaseEntity;
6+
7+
/**
8+
* @property string $id
9+
* @property string $name
10+
*/
11+
class TagEntity extends BaseEntity
12+
{
13+
14+
/**
15+
* @in
16+
* @out
17+
* @var string
18+
*/
19+
private $id;
20+
21+
/**
22+
* @in
23+
* @out
24+
* @var string
25+
*/
26+
private $name;
27+
28+
/**
29+
* @return string
30+
*/
31+
public function getId()
32+
{
33+
return $this->id;
34+
}
35+
36+
/**
37+
* @param string $id
38+
* @return TagEntity
39+
*/
40+
public function setId($id)
41+
{
42+
$this->id = $id;
43+
return $this;
44+
}
45+
46+
/**
47+
* @return string
48+
*/
49+
public function getName()
50+
{
51+
return $this->name;
52+
}
53+
54+
/**
55+
* @param string $name
56+
* @return TagEntity
57+
*/
58+
public function setName($name)
59+
{
60+
$this->name = $name;
61+
return $this;
62+
}
63+
64+
65+
66+
67+
}

0 commit comments

Comments
 (0)