|
12 | 12 | /** |
13 | 13 | * @package Commercetools\Core\Model\Order |
14 | 14 | * @link https://docs.commercetools.com/http-api-projects-orders.html#returnitem |
| 15 | + * @ramlTestIgnoreFields('lineItemId', 'customLineItemId') |
15 | 16 | * @method string getId() |
16 | 17 | * @method ReturnItem setId(string $id = null) |
17 | 18 | * @method int getQuantity() |
|
28 | 29 | * @method ReturnItem setLastModifiedAt(DateTime $lastModifiedAt = null) |
29 | 30 | * @method DateTimeDecorator getCreatedAt() |
30 | 31 | * @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) |
31 | 36 | */ |
32 | 37 | class ReturnItem extends JsonObject |
33 | 38 | { |
| 39 | + const TYPE_LINE_ITEM = 'LineItemReturnItem'; |
| 40 | + const TYPE_CUSTOM_LINE_ITEM = 'CustomLineItemReturnItem'; |
| 41 | + |
34 | 42 | public function fieldDefinitions() |
35 | 43 | { |
36 | 44 | return [ |
37 | 45 | 'id' => [static::TYPE => 'string'], |
38 | 46 | 'quantity' => [static::TYPE => 'int'], |
| 47 | + 'type' => [static::TYPE => 'string'], |
39 | 48 | 'lineItemId' => [static::TYPE => 'string'], |
| 49 | + 'customLineItemId' => [static::TYPE => 'string'], |
40 | 50 | 'comment' => [static::TYPE => 'string'], |
41 | 51 | 'shipmentState' => [static::TYPE => 'string'], |
42 | 52 | 'paymentState' => [static::TYPE => 'string'], |
|
0 commit comments