From 95c8c31c6baeed6ec02e2b0fa9718f2f93689eef Mon Sep 17 00:00:00 2001 From: ekta-slt Date: Tue, 22 Aug 2017 15:11:14 +0530 Subject: [PATCH] ip added in getEmailEventReport definition --- docs/Model/InlineResponse20011Events.md | 1 + lib/Model/InlineResponse20011Events.php | 37 +++++++++++++++++--- test/Model/InlineResponse20011EventsTest.php | 7 ++++ 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/docs/Model/InlineResponse20011Events.md b/docs/Model/InlineResponse20011Events.md index 6930c0ab..466bbb93 100755 --- a/docs/Model/InlineResponse20011Events.md +++ b/docs/Model/InlineResponse20011Events.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **event** | **string** | Event which occured | **reason** | **string** | Reason of bounce (only availble if the event is hardbounce or softbounce) | **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 availble if the event is opened or clicks) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/Model/InlineResponse20011Events.php b/lib/Model/InlineResponse20011Events.php index 8344e241..567efe52 100755 --- a/lib/Model/InlineResponse20011Events.php +++ b/lib/Model/InlineResponse20011Events.php @@ -59,7 +59,8 @@ class InlineResponse20011Events implements ArrayAccess 'message_id' => 'string', 'event' => 'string', 'reason' => 'string', - 'tag' => 'string' + 'tag' => 'string', + 'ip' => 'string' ]; /** @@ -72,7 +73,8 @@ class InlineResponse20011Events implements ArrayAccess 'message_id' => null, 'event' => null, 'reason' => null, - 'tag' => null + 'tag' => null, + 'ip' => null ]; public static function swaggerTypes() @@ -95,7 +97,8 @@ public static function swaggerFormats() 'message_id' => 'messageId', 'event' => 'event', 'reason' => 'reason', - 'tag' => 'tag' + 'tag' => 'tag', + 'ip' => 'ip' ]; @@ -109,7 +112,8 @@ public static function swaggerFormats() 'message_id' => 'setMessageId', 'event' => 'setEvent', 'reason' => 'setReason', - 'tag' => 'setTag' + 'tag' => 'setTag', + 'ip' => 'setIp' ]; @@ -123,7 +127,8 @@ public static function swaggerFormats() 'message_id' => 'getMessageId', 'event' => 'getEvent', 'reason' => 'getReason', - 'tag' => 'getTag' + 'tag' => 'getTag', + 'ip' => 'getIp' ]; public static function attributeMap() @@ -195,6 +200,7 @@ public function __construct(array $data = null) $this->container['event'] = isset($data['event']) ? $data['event'] : null; $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; + $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } /** @@ -404,6 +410,27 @@ public function setTag($tag) return $this; } + + /** + * Gets ip + * @return string + */ + public function getIp() + { + return $this->container['ip']; + } + + /** + * Sets ip + * @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) + * @return $this + */ + public function setIp($ip) + { + $this->container['ip'] = $ip; + + return $this; + } /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset diff --git a/test/Model/InlineResponse20011EventsTest.php b/test/Model/InlineResponse20011EventsTest.php index 58d0ad5f..4832e3e4 100755 --- a/test/Model/InlineResponse20011EventsTest.php +++ b/test/Model/InlineResponse20011EventsTest.php @@ -118,4 +118,11 @@ public function testPropertyReason() public function testPropertyTag() { } + + /** + * Test attribute "ip" + */ + public function testPropertyIp() + { + } }