|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* @author @jenschude <[email protected]> |
|
4
|
|
|
*/ |
|
5
|
|
|
|
|
6
|
|
|
namespace Commercetools\Core\Model\Message; |
|
7
|
|
|
|
|
8
|
|
|
use Commercetools\Core\Model\Common\Address; |
|
9
|
|
|
use Commercetools\Core\Model\Common\DateTimeDecorator; |
|
10
|
|
|
use DateTime; |
|
11
|
|
|
use Commercetools\Core\Model\Common\Reference; |
|
12
|
|
|
use phpDocumentor\Reflection\Types\Boolean; |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* @package Commercetools\Core\Model\Message |
|
16
|
|
|
* @link https://docs.commercetools.com/api/message-types#customerpasswordupdatedmessage |
|
17
|
|
|
* @method string getId() |
|
18
|
|
|
* @method CustomerPasswordUpdatedMessage setId(string $id = null) |
|
19
|
|
|
* @method int getVersion() |
|
20
|
|
|
* @method CustomerPasswordUpdatedMessage setVersion(int $version = null) |
|
21
|
|
|
* @method DateTimeDecorator getCreatedAt() |
|
22
|
|
|
* @method CustomerPasswordUpdatedMessage setCreatedAt(DateTime $createdAt = null) |
|
23
|
|
|
* @method DateTimeDecorator getLastModifiedAt() |
|
24
|
|
|
* @method CustomerPasswordUpdatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
|
25
|
|
|
* @method int getSequenceNumber() |
|
26
|
|
|
* @method CustomerPasswordUpdatedMessage setSequenceNumber(int $sequenceNumber = null) |
|
27
|
|
|
* @method Reference getResource() |
|
28
|
|
|
* @method CustomerPasswordUpdatedMessage setResource(Reference $resource = null) |
|
29
|
|
|
* @method int getResourceVersion() |
|
30
|
|
|
* @method CustomerPasswordUpdatedMessage setResourceVersion(int $resourceVersion = null) |
|
31
|
|
|
* @method string getType() |
|
32
|
|
|
* @method CustomerPasswordUpdatedMessage setType(string $type = null) |
|
33
|
|
|
* @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers() |
|
34
|
|
|
* phpcs:disable |
|
35
|
|
|
* @method CustomerPasswordUpdatedMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null) |
|
36
|
|
|
* phpcs:enable |
|
37
|
|
|
* @method bool getReset() |
|
38
|
|
|
* @method CustomerPasswordUpdatedMessage setReset(bool $reset = null) |
|
39
|
|
|
*/ |
|
40
|
|
|
class CustomerPasswordUpdatedMessage extends Message |
|
41
|
|
|
{ |
|
42
|
|
|
const MESSAGE_TYPE = 'CustomerPasswordUpdated'; |
|
43
|
|
|
|
|
44
|
|
|
public function fieldDefinitions() |
|
45
|
|
|
{ |
|
46
|
|
|
$definitions = parent::fieldDefinitions(); |
|
47
|
|
|
$definitions['reset'] = [static::TYPE => 'bool']; |
|
48
|
|
|
|
|
49
|
|
|
return $definitions; |
|
50
|
|
|
} |
|
51
|
|
|
} |
|
52
|
|
|
|