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