1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* @author @jenschude <[email protected]> |
4
|
|
|
*/ |
5
|
|
|
|
6
|
|
|
namespace Commercetools\Core\Model\Message; |
7
|
|
|
|
8
|
|
|
use Commercetools\Core\Model\Common\DateTimeDecorator; |
9
|
|
|
use DateTime; |
10
|
|
|
use Commercetools\Core\Model\Common\Reference; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @package Commercetools\Core\Model\Message |
14
|
|
|
* @link https://docs.commercetools.com/http-api-projects-messages.html#customercompanynameset-message |
15
|
|
|
* @method string getId() |
16
|
|
|
* @method CustomerCompanyNameSetMessage setId(string $id = null) |
17
|
|
|
* @method int getVersion() |
18
|
|
|
* @method CustomerCompanyNameSetMessage setVersion(int $version = null) |
19
|
|
|
* @method DateTimeDecorator getCreatedAt() |
20
|
|
|
* @method CustomerCompanyNameSetMessage setCreatedAt(DateTime $createdAt = null) |
21
|
|
|
* @method DateTimeDecorator getLastModifiedAt() |
22
|
|
|
* @method CustomerCompanyNameSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
23
|
|
|
* @method int getSequenceNumber() |
24
|
|
|
* @method CustomerCompanyNameSetMessage setSequenceNumber(int $sequenceNumber = null) |
25
|
|
|
* @method Reference getResource() |
26
|
|
|
* @method CustomerCompanyNameSetMessage setResource(Reference $resource = null) |
27
|
|
|
* @method int getResourceVersion() |
28
|
|
|
* @method CustomerCompanyNameSetMessage setResourceVersion(int $resourceVersion = null) |
29
|
|
|
* @method string getType() |
30
|
|
|
* @method CustomerCompanyNameSetMessage setType(string $type = null) |
31
|
|
|
* @method string getCompanyName() |
32
|
|
|
* @method CustomerCompanyNameSetMessage setCompanyName(string $companyName = null) |
33
|
|
|
*/ |
34
|
|
|
class CustomerCompanyNameSetMessage extends Message |
35
|
|
|
{ |
36
|
|
|
const MESSAGE_TYPE = 'CustomerCompanyNameSet'; |
37
|
|
|
|
38
|
1 |
|
public function fieldDefinitions() |
39
|
|
|
{ |
40
|
1 |
|
$definitions = parent::fieldDefinitions(); |
41
|
1 |
|
$definitions['companyName'] = [static::TYPE => 'string']; |
42
|
|
|
|
43
|
1 |
|
return $definitions; |
44
|
|
|
} |
45
|
|
|
} |
46
|
|
|
|