This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Messages): add PaymentStatusInterfaceCodeSet message
Closes #313
- Loading branch information
Jens Schulze
committed
Jun 1, 2017
1 parent
6afb611
commit c5e0531
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
src/Core/Model/Message/PaymentStatusInterfaceCodeSetMessage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* @author @jayS-de <jens.schulze@commercetools.de> | ||
*/ | ||
|
||
namespace Commercetools\Core\Model\Message; | ||
|
||
use Commercetools\Core\Model\Common\DateTimeDecorator; | ||
use Commercetools\Core\Model\Common\Reference; | ||
use Commercetools\Core\Model\Payment\Transaction; | ||
use DateTime; | ||
|
||
/** | ||
* @package Commercetools\Core\Model\Message | ||
* @link https://dev.commercetools.com/http-api-projects-messages.html#paymentstatusinterfacecodeset-message | ||
* @method string getId() | ||
* @method PaymentStatusInterfaceCodeSetMessage setId(string $id = null) | ||
* @method int getVersion() | ||
* @method PaymentStatusInterfaceCodeSetMessage setVersion(int $version = null) | ||
* @method DateTimeDecorator getCreatedAt() | ||
* @method PaymentStatusInterfaceCodeSetMessage setCreatedAt(DateTime $createdAt = null) | ||
* @method DateTimeDecorator getLastModifiedAt() | ||
* @method PaymentStatusInterfaceCodeSetMessage setLastModifiedAt(DateTime $lastModifiedAt = null) | ||
* @method int getSequenceNumber() | ||
* @method PaymentStatusInterfaceCodeSetMessage setSequenceNumber(int $sequenceNumber = null) | ||
* @method Reference getResource() | ||
* @method PaymentStatusInterfaceCodeSetMessage setResource(Reference $resource = null) | ||
* @method int getResourceVersion() | ||
* @method PaymentStatusInterfaceCodeSetMessage setResourceVersion(int $resourceVersion = null) | ||
* @method string getType() | ||
* @method PaymentStatusInterfaceCodeSetMessage setType(string $type = null) | ||
* @method string getPaymentId() | ||
* @method PaymentStatusInterfaceCodeSetMessage setPaymentId(string $paymentId = null) | ||
* @method string getInterfaceCode() | ||
* @method PaymentStatusInterfaceCodeSetMessage setInterfaceCode(string $interfaceCode = null) | ||
*/ | ||
class PaymentStatusInterfaceCodeSetMessage extends Message | ||
{ | ||
const MESSAGE_TYPE = 'PaymentStatusInterfaceCodeSet'; | ||
|
||
public function fieldDefinitions() | ||
{ | ||
$definitions = parent::fieldDefinitions(); | ||
$definitions['paymentId'] = [static::TYPE => 'string']; | ||
$definitions['interfaceCode'] = [static::TYPE => 'string']; | ||
|
||
return $definitions; | ||
} | ||
} |