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