Skip to content

ip added in getEmailEventReport definition #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2017
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
1 change: 1 addition & 0 deletions docs/Model/InlineResponse20011Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
37 changes: 32 additions & 5 deletions lib/Model/InlineResponse20011Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ class InlineResponse20011Events implements ArrayAccess
'message_id' => 'string',
'event' => 'string',
'reason' => 'string',
'tag' => 'string'
'tag' => 'string',
'ip' => 'string'
];

/**
Expand All @@ -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()
Expand All @@ -95,7 +97,8 @@ public static function swaggerFormats()
'message_id' => 'messageId',
'event' => 'event',
'reason' => 'reason',
'tag' => 'tag'
'tag' => 'tag',
'ip' => 'ip'
];


Expand All @@ -109,7 +112,8 @@ public static function swaggerFormats()
'message_id' => 'setMessageId',
'event' => 'setEvent',
'reason' => 'setReason',
'tag' => 'setTag'
'tag' => 'setTag',
'ip' => 'setIp'
];


Expand All @@ -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()
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions test/Model/InlineResponse20011EventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,11 @@ public function testPropertyReason()
public function testPropertyTag()
{
}

/**
* Test attribute "ip"
*/
public function testPropertyIp()
{
}
}