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