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