Skip to content

Commit

Permalink
Merge pull request #3 from sendinblue/feature-response-update
Browse files Browse the repository at this point in the history
ip added in getEmailEventReport definition
  • Loading branch information
ekta-slit authored Aug 22, 2017
2 parents 830c261 + 95c8c31 commit 08d3b3b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
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()
{
}
}

0 comments on commit 08d3b3b

Please sign in to comment.