|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @author @jayS-de <jens.schulze@commercetools.de> |
| 4 | + */ |
| 5 | + |
| 6 | +namespace Commercetools\Core\Model\Message; |
| 7 | + |
| 8 | +use Commercetools\Core\Model\Common\DateTimeDecorator; |
| 9 | +use Commercetools\Core\Model\Common\Reference; |
| 10 | +use Commercetools\Core\Model\Payment\Transaction; |
| 11 | +use DateTime; |
| 12 | + |
| 13 | +/** |
| 14 | + * @package Commercetools\Core\Model\Message |
| 15 | + * @link https://dev.commercetools.com/http-api-projects-messages.html#paymentstatusinterfacecodeset-message |
| 16 | + * @method string getId() |
| 17 | + * @method PaymentStatusInterfaceCodeSetMessage setId(string $id = null) |
| 18 | + * @method int getVersion() |
| 19 | + * @method PaymentStatusInterfaceCodeSetMessage setVersion(int $version = null) |
| 20 | + * @method DateTimeDecorator getCreatedAt() |
| 21 | + * @method PaymentStatusInterfaceCodeSetMessage setCreatedAt(DateTime $createdAt = null) |
| 22 | + * @method DateTimeDecorator getLastModifiedAt() |
| 23 | + * @method PaymentStatusInterfaceCodeSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
| 24 | + * @method int getSequenceNumber() |
| 25 | + * @method PaymentStatusInterfaceCodeSetMessage setSequenceNumber(int $sequenceNumber = null) |
| 26 | + * @method Reference getResource() |
| 27 | + * @method PaymentStatusInterfaceCodeSetMessage setResource(Reference $resource = null) |
| 28 | + * @method int getResourceVersion() |
| 29 | + * @method PaymentStatusInterfaceCodeSetMessage setResourceVersion(int $resourceVersion = null) |
| 30 | + * @method string getType() |
| 31 | + * @method PaymentStatusInterfaceCodeSetMessage setType(string $type = null) |
| 32 | + * @method string getPaymentId() |
| 33 | + * @method PaymentStatusInterfaceCodeSetMessage setPaymentId(string $paymentId = null) |
| 34 | + * @method string getInterfaceCode() |
| 35 | + * @method PaymentStatusInterfaceCodeSetMessage setInterfaceCode(string $interfaceCode = null) |
| 36 | + */ |
| 37 | +class PaymentStatusInterfaceCodeSetMessage extends Message |
| 38 | +{ |
| 39 | + const MESSAGE_TYPE = 'PaymentStatusInterfaceCodeSet'; |
| 40 | + |
| 41 | + public function fieldDefinitions() |
| 42 | + { |
| 43 | + $definitions = parent::fieldDefinitions(); |
| 44 | + $definitions['paymentId'] = [static::TYPE => 'string']; |
| 45 | + $definitions['interfaceCode'] = [static::TYPE => 'string']; |
| 46 | + |
| 47 | + return $definitions; |
| 48 | + } |
| 49 | +} |
0 commit comments