Skip to content

Commit ae075c2

Browse files
authored
Merge pull request #5 from sendinblue/feature-response-update
ip added in getEmailEventReport definition
2 parents b25e8e3 + 927d8b4 commit ae075c2

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

docs/InlineResponse20011Events.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**event** | **String** | Event which occured |
1010
**reason** | **String** | Reason of bounce (only availble if the event is hardbounce or softbounce) |
1111
**tag** | **String** | Tag of the email which generated the event |
12+
**ip** | **String** | IP from which the user has opened the email or clicked on the link (only availble if the event is opened or clicks) | [optional]
1213

1314

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

package.json

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

src/model/InlineResponse20011Events.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
_this['event'] = event;
6161
_this['reason'] = reason;
6262
_this['tag'] = tag;
63+
6364
};
6465

6566
/**
@@ -91,6 +92,9 @@
9192
if (data.hasOwnProperty('tag')) {
9293
obj['tag'] = ApiClient.convertToType(data['tag'], 'String');
9394
}
95+
if (data.hasOwnProperty('ip')) {
96+
obj['ip'] = ApiClient.convertToType(data['ip'], 'String');
97+
}
9498
}
9599
return obj;
96100
}
@@ -125,6 +129,11 @@
125129
* @member {String} tag
126130
*/
127131
exports.prototype['tag'] = undefined;
132+
/**
133+
* IP from which the user has opened the email or clicked on the link (only availble if the event is opened or clicks)
134+
* @member {String} ip
135+
*/
136+
exports.prototype['ip'] = undefined;
128137

129138

130139
/**

test/model/InlineResponse20011Events.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@
9393
//expect(instance).to.be();
9494
});
9595

96+
it('should have the property ip (base name: "ip")', function() {
97+
// uncomment below and update the code to test the property ip
98+
//var instane = new SendinBlueApi.InlineResponse20011Events();
99+
//expect(instance).to.be();
100+
});
101+
96102
});
97103

98104
}));

0 commit comments

Comments
 (0)