1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Commercetools\Core\Model\Message; |
4
|
|
|
|
5
|
|
|
use Commercetools\Core\Model\Store\StoreReference; |
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-message-types.html#orderstoreset |
13
|
|
|
* @method string getId() |
14
|
|
|
* @method OrderStoreSetMessage setId(string $id = null) |
15
|
|
|
* @method int getVersion() |
16
|
|
|
* @method OrderStoreSetMessage setVersion(int $version = null) |
17
|
|
|
* @method DateTimeDecorator getCreatedAt() |
18
|
|
|
* @method OrderStoreSetMessage setCreatedAt(DateTime $createdAt = null) |
19
|
|
|
* @method DateTimeDecorator getLastModifiedAt() |
20
|
|
|
* @method OrderStoreSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
21
|
|
|
* @method int getSequenceNumber() |
22
|
|
|
* @method OrderStoreSetMessage setSequenceNumber(int $sequenceNumber = null) |
23
|
|
|
* @method Reference getResource() |
24
|
|
|
* @method OrderStoreSetMessage setResource(Reference $resource = null) |
25
|
|
|
* @method int getResourceVersion() |
26
|
|
|
* @method OrderStoreSetMessage setResourceVersion(int $resourceVersion = null) |
27
|
|
|
* @method string getType() |
28
|
|
|
* @method OrderStoreSetMessage setType(string $type = null) |
29
|
|
|
* @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers() |
30
|
|
|
* phpcs:disable |
31
|
|
|
* @method OrderStoreSetMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null) |
32
|
|
|
* phpcs:enable |
33
|
|
|
* @method StoreReference getStore() |
34
|
|
|
* @method OrderStoreSetMessage setStore(StoreReference $store = null) |
35
|
|
|
*/ |
36
|
|
|
class OrderStoreSetMessage extends Message |
37
|
|
|
{ |
38
|
|
|
const MESSAGE_TYPE = 'OrderStoreSet'; |
39
|
|
|
|
40
|
2 |
|
public function fieldDefinitions() |
41
|
|
|
{ |
42
|
2 |
|
$definitions = parent::fieldDefinitions(); |
43
|
2 |
|
$definitions['store'] = [static::TYPE => StoreReference::class]; |
44
|
|
|
|
45
|
2 |
|
return $definitions; |
46
|
|
|
} |
47
|
|
|
} |
48
|
|
|
|