Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 82ebfdf

Browse files
committed
feat(Order): add support for CustomLineItemReturnItem
1 parent b8bed5b commit 82ebfdf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Core/Model/Order/ReturnItem.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/**
1313
* @package Commercetools\Core\Model\Order
1414
* @link https://docs.commercetools.com/http-api-projects-orders.html#returnitem
15+
* @ramlTestIgnoreFields('lineItemId', 'customLineItemId')
1516
* @method string getId()
1617
* @method ReturnItem setId(string $id = null)
1718
* @method int getQuantity()
@@ -28,15 +29,24 @@
2829
* @method ReturnItem setLastModifiedAt(DateTime $lastModifiedAt = null)
2930
* @method DateTimeDecorator getCreatedAt()
3031
* @method ReturnItem setCreatedAt(DateTime $createdAt = null)
32+
* @method string getType()
33+
* @method ReturnItem setType(string $type = null)
34+
* @method string getCustomLineItemId()
35+
* @method ReturnItem setCustomLineItemId(string $customLineItemId = null)
3136
*/
3237
class ReturnItem extends JsonObject
3338
{
39+
const TYPE_LINE_ITEM = 'LineItemReturnItem';
40+
const TYPE_CUSTOM_LINE_ITEM = 'CustomLineItemReturnItem';
41+
3442
public function fieldDefinitions()
3543
{
3644
return [
3745
'id' => [static::TYPE => 'string'],
3846
'quantity' => [static::TYPE => 'int'],
47+
'type' => [static::TYPE => 'string'],
3948
'lineItemId' => [static::TYPE => 'string'],
49+
'customLineItemId' => [static::TYPE => 'string'],
4050
'comment' => [static::TYPE => 'string'],
4151
'shipmentState' => [static::TYPE => 'string'],
4252
'paymentState' => [static::TYPE => 'string'],

0 commit comments

Comments
 (0)