All Release Notes
Return Items can now be extended with Custom Fields.
19 January 2022
Enhancement
OrdersCustomizationGraphQL
You can now extend the LineItemReturnItem as well as the CustomLineItemReturnItem object on the Order resource with Custom Fields. With these you can, for example, add the courier name or their shipment IDs to the return items of the Orders.
Changes:
- [API] Added
customfield to LineItemReturnItem and CustomLineItemReturnItem. - [API] Added
customfield to LineItemReturnItemDraft and CustomLineItemReturnItemDraft. - [API] Added Set ReturnItem Custom Type and Set ReturnItem CustomField update actions to Orders and Order Edits.
- [GraphQL API] Added the following types to the GraphQL schema:
SetOrderReturnItemCustomField,SetOrderReturnItemCustomTypeSetStagedOrderReturnItemCustomField,SetStagedOrderReturnItemCustomFieldOutput,SetStagedOrderReturnItemCustomType,SetStagedOrderReturnItemCustomTypeOutput. - [GraphQL API] Changed the
CustomLineItemReturnItemtype:- Added the
customfield to theCustomLineItemReturnItemtype.
- Added the
- [GraphQL API] Changed the
ReturnItemtype:- Added the
customfield to theReturnItemtype.
- Added the
- [GraphQL API] Changed the
StagedOrderUpdateActiontype:- Input field
setReturnItemCustomFieldwas added toStagedOrderUpdateActiontype - Input field
setReturnItemCustomTypewas added toStagedOrderUpdateActiontype
- Input field
- [GraphQL API] Changed the
ReturnItemDraftTypetype:- Input field
customwas added toReturnItemDraftTypetype
- Input field
- [GraphQL API] Changed the
ReturnItemDraftTypeOutputtype:- Added the
customfield to theReturnItemDraftTypeOutputtype.
- Added the
- [GraphQL API] Changed the
OrderUpdateActiontype:- Input field
setReturnItemCustomFieldwas added toOrderUpdateActiontype - Input field
setReturnItemCustomTypewas added toOrderUpdateActiontype
- Input field
- [GraphQL API] Changed the
LineItemReturnItemtype:- Added the
customfield to theLineItemReturnItemtype.
- Added the
The following changes were introduced in terms of GraphQL SDL:
extend type CustomLineItemReturnItem {custom: CustomFieldsType}extend interface ReturnItem {custom: CustomFieldsType}extend type ReturnItemDraftTypeOutput {custom: CustomFieldsCommand}extend type LineItemReturnItem {custom: CustomFieldsType}extend input StagedOrderUpdateAction {setReturnItemCustomField: SetStagedOrderReturnItemCustomFieldsetReturnItemCustomType: SetStagedOrderReturnItemCustomType}extend input ReturnItemDraftType {custom: CustomFieldsDraft}extend input OrderUpdateAction {setReturnItemCustomField: SetOrderReturnItemCustomFieldsetReturnItemCustomType: SetOrderReturnItemCustomType}input SetOrderReturnItemCustomField {name: String!value: StringreturnItemId: String!}input SetOrderReturnItemCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: StringreturnItemId: String!}input SetStagedOrderReturnItemCustomField {name: String!value: StringreturnItemId: String!}type SetStagedOrderReturnItemCustomFieldOutput implements StagedOrderUpdateActionOutput {type: String!name: String!value: JsonreturnItemId: String!}input SetStagedOrderReturnItemCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: StringreturnItemId: String!}type SetStagedOrderReturnItemCustomTypeOutput implements StagedOrderUpdateActionOutput {type: String!custom: CustomFieldsCommand!returnItemId: String!}