Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/Model/GetEmailEventReportEvents.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ Name | Type | Description | Notes
**subject** | **string** | Subject of the event | [optional]
**messageId** | **string** | Message ID which generated the event |
**event** | **string** | Event which occurred |
**reason** | **string** | Reason of bounce (only available if the event is hardbounce or softbounce) |
**reason** | **string** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional]
**tag** | **string** | Tag of the email which generated the event |
**ip** | **string** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional]
**link** | **string** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional]
**from** | **string** | Sender email from which the emails are sent |

[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

Expand Down
49 changes: 38 additions & 11 deletions lib/Model/GetEmailEventReportEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class GetEmailEventReportEvents implements ArrayAccess
'reason' => 'string',
'tag' => 'string',
'ip' => 'string',
'link' => 'string'
'link' => 'string',
'from' => 'string'
];

/**
Expand All @@ -71,14 +72,15 @@ class GetEmailEventReportEvents implements ArrayAccess
*/
protected static $swaggerFormats = [
'email' => 'email',
'date' => 'date',
'date' => 'date-time',
'subject' => null,
'messageId' => null,
'event' => null,
'reason' => null,
'tag' => null,
'ip' => null,
'link' => null
'link' => null,
'from' => 'email'
];

public static function swaggerTypes()
Expand All @@ -104,7 +106,8 @@ public static function swaggerFormats()
'reason' => 'reason',
'tag' => 'tag',
'ip' => 'ip',
'link' => 'link'
'link' => 'link',
'from' => 'from'
];


Expand All @@ -121,7 +124,8 @@ public static function swaggerFormats()
'reason' => 'setReason',
'tag' => 'setTag',
'ip' => 'setIp',
'link' => 'setLink'
'link' => 'setLink',
'from' => 'setFrom'
];


Expand All @@ -138,7 +142,8 @@ public static function swaggerFormats()
'reason' => 'getReason',
'tag' => 'getTag',
'ip' => 'getIp',
'link' => 'getLink'
'link' => 'getLink',
'from' => 'getFrom'
];

public static function attributeMap()
Expand Down Expand Up @@ -213,6 +218,7 @@ public function __construct(array $data = null)
$this->container['tag'] = isset($data['tag']) ? $data['tag'] : null;
$this->container['ip'] = isset($data['ip']) ? $data['ip'] : null;
$this->container['link'] = isset($data['link']) ? $data['link'] : null;
$this->container['from'] = isset($data['from']) ? $data['from'] : null;
}

/**
Expand Down Expand Up @@ -244,12 +250,12 @@ public function listInvalidProperties()
);
}

if ($this->container['reason'] === null) {
$invalid_properties[] = "'reason' can't be null";
}
if ($this->container['tag'] === null) {
$invalid_properties[] = "'tag' can't be null";
}
if ($this->container['from'] === null) {
$invalid_properties[] = "'from' can't be null";
}
return $invalid_properties;
}

Expand Down Expand Up @@ -278,10 +284,10 @@ public function valid()
if (!in_array($this->container['event'], $allowed_values)) {
return false;
}
if ($this->container['reason'] === null) {
if ($this->container['tag'] === null) {
return false;
}
if ($this->container['tag'] === null) {
if ($this->container['from'] === null) {
return false;
}
return true;
Expand Down Expand Up @@ -485,6 +491,27 @@ public function setLink($link)

return $this;
}

/**
* Gets from
* @return string
*/
public function getFrom()
{
return $this->container['from'];
}

/**
* Sets from
* @param string $from Sender email from which the emails are sent
* @return $this
*/
public function setFrom($from)
{
$this->container['from'] = $from;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
Expand Down
7 changes: 7 additions & 0 deletions test/Model/GetEmailEventReportEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,11 @@ public function testPropertyIp()
public function testPropertyLink()
{
}

/**
* Test attribute "from"
*/
public function testPropertyFrom()
{
}
}