Skip to content

Commit 08d3b3b

Browse files
authored
Merge pull request #3 from sendinblue/feature-response-update
ip added in getEmailEventReport definition
2 parents 830c261 + 95c8c31 commit 08d3b3b

File tree

3 files changed

+40
-5
lines changed

3 files changed

+40
-5
lines changed

docs/Model/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
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1415

lib/Model/InlineResponse20011Events.php

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class InlineResponse20011Events implements ArrayAccess
5959
'message_id' => 'string',
6060
'event' => 'string',
6161
'reason' => 'string',
62-
'tag' => 'string'
62+
'tag' => 'string',
63+
'ip' => 'string'
6364
];
6465

6566
/**
@@ -72,7 +73,8 @@ class InlineResponse20011Events implements ArrayAccess
7273
'message_id' => null,
7374
'event' => null,
7475
'reason' => null,
75-
'tag' => null
76+
'tag' => null,
77+
'ip' => null
7678
];
7779

7880
public static function swaggerTypes()
@@ -95,7 +97,8 @@ public static function swaggerFormats()
9597
'message_id' => 'messageId',
9698
'event' => 'event',
9799
'reason' => 'reason',
98-
'tag' => 'tag'
100+
'tag' => 'tag',
101+
'ip' => 'ip'
99102
];
100103

101104

@@ -109,7 +112,8 @@ public static function swaggerFormats()
109112
'message_id' => 'setMessageId',
110113
'event' => 'setEvent',
111114
'reason' => 'setReason',
112-
'tag' => 'setTag'
115+
'tag' => 'setTag',
116+
'ip' => 'setIp'
113117
];
114118

115119

@@ -123,7 +127,8 @@ public static function swaggerFormats()
123127
'message_id' => 'getMessageId',
124128
'event' => 'getEvent',
125129
'reason' => 'getReason',
126-
'tag' => 'getTag'
130+
'tag' => 'getTag',
131+
'ip' => 'getIp'
127132
];
128133

129134
public static function attributeMap()
@@ -195,6 +200,7 @@ public function __construct(array $data = null)
195200
$this->container['event'] = isset($data['event']) ? $data['event'] : null;
196201
$this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
197202
$this->container['tag'] = isset($data['tag']) ? $data['tag'] : null;
203+
$this->container['ip'] = isset($data['ip']) ? $data['ip'] : null;
198204
}
199205

200206
/**
@@ -404,6 +410,27 @@ public function setTag($tag)
404410

405411
return $this;
406412
}
413+
414+
/**
415+
* Gets ip
416+
* @return string
417+
*/
418+
public function getIp()
419+
{
420+
return $this->container['ip'];
421+
}
422+
423+
/**
424+
* Sets ip
425+
* @param string $ip IP from which the user has opened the email or clicked on the link (only availble if the event is opened or clicks)
426+
* @return $this
427+
*/
428+
public function setIp($ip)
429+
{
430+
$this->container['ip'] = $ip;
431+
432+
return $this;
433+
}
407434
/**
408435
* Returns true if offset exists. False otherwise.
409436
* @param integer $offset Offset

test/Model/InlineResponse20011EventsTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,11 @@ public function testPropertyReason()
118118
public function testPropertyTag()
119119
{
120120
}
121+
122+
/**
123+
* Test attribute "ip"
124+
*/
125+
public function testPropertyIp()
126+
{
127+
}
121128
}

0 commit comments

Comments
 (0)