Skip to content

Commit 5bac7f4

Browse files
authored
Merge pull request #15 from sendinblue/feature_add-from-in-getEmailEventReport
getEmailEventReport spec update
2 parents bfa3feb + 7c22e62 commit 5bac7f4

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

docs/GetEmailEventReportEvents.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ Name | Type | Description | Notes
88
**subject** | **String** | Subject of the event | [optional]
99
**messageId** | **String** | Message ID which generated the event |
1010
**event** | **String** | Event which occurred |
11-
**reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) |
11+
**reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional]
1212
**tag** | **String** | Tag of the email which generated the event |
1313
**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]
1414
**link** | **String** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional]
15+
**from** | **String** | Sender email from which the emails are sent |
1516

1617

1718
<a name="EventEnum"></a>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sib-api-v3-sdk",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "Official SendinBlue provided RESTFul API V3 nodejs library",
55
"license": "ISC",
66
"main": "src/index.js",

src/model/GetEmailEventReportEvents.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,22 @@
4848
* @param _date {Date} Date on which the event has been generated
4949
* @param messageId {String} Message ID which generated the event
5050
* @param event {module:model/GetEmailEventReportEvents.EventEnum} Event which occurred
51-
* @param reason {String} Reason of bounce (only available if the event is hardbounce or softbounce)
5251
* @param tag {String} Tag of the email which generated the event
52+
* @param from {String} Sender email from which the emails are sent
5353
*/
54-
var exports = function(email, _date, messageId, event, reason, tag) {
54+
var exports = function(email, _date, messageId, event, tag, from) {
5555
var _this = this;
5656

5757
_this['email'] = email;
5858
_this['date'] = _date;
5959

6060
_this['messageId'] = messageId;
6161
_this['event'] = event;
62-
_this['reason'] = reason;
62+
6363
_this['tag'] = tag;
6464

6565

66+
_this['from'] = from;
6667
};
6768

6869
/**
@@ -103,6 +104,9 @@
103104
if (data.hasOwnProperty('link')) {
104105
obj['link'] = ApiClient.convertToType(data['link'], 'String');
105106
}
107+
if (data.hasOwnProperty('from')) {
108+
obj['from'] = ApiClient.convertToType(data['from'], 'String');
109+
}
106110
}
107111
return obj;
108112
}
@@ -152,6 +156,11 @@
152156
* @member {String} link
153157
*/
154158
exports.prototype['link'] = undefined;
159+
/**
160+
* Sender email from which the emails are sent
161+
* @member {String} from
162+
*/
163+
exports.prototype['from'] = undefined;
155164

156165

157166
/**

test/model/GetEmailEventReportEvents.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@
111111
//expect(instance).to.be();
112112
});
113113

114+
it('should have the property from (base name: "from")', function() {
115+
// uncomment below and update the code to test the property from
116+
//var instane = new SibApiV3Sdk.GetEmailEventReportEvents();
117+
//expect(instance).to.be();
118+
});
119+
114120
});
115121

116122
}));

0 commit comments

Comments
 (0)