All Release Notes
Parcels can now be extended with Custom Fields.
18 January 2022
Enhancement
OrdersCustomizationGraphQL
You can now extend the Parcel object on the Order resource with Custom Fields. With these you can, for example, add meta data associated with your ERP system to the deliveries of the Orders.
Changes:
- [API] Added
customfield to Parcel and ParcelDraft. - [API] Added Set Parcel CustomType and Set Parcel CustomField update actions to Orders and Order Edits.
- [GraphQL API] Added the following types to the GraphQL schema:
SetOrderParcelCustomField,SetOrderParcelCustomType,SetStagedOrderParcelCustomField,SetStagedOrderParcelCustomFieldOutput,SetStagedOrderParcelCustomType,SetStagedOrderParcelCustomTypeOutput. - [GraphQL API] Changed the
Parceltype:- Added the
customfield to theParceltype.
- Added the
- [GraphQL API] Changed the
ParcelDataDraftTypetype:- Input field
customwas added toParcelDataDraftTypetype
- Input field
- [GraphQL API] Changed the
StagedOrderUpdateActiontype:- Input field
setParcelCustomFieldwas added toStagedOrderUpdateActiontype - Input field
setParcelCustomTypewas added toStagedOrderUpdateActiontype
- Input field
- [GraphQL API] Changed the
AddOrderParcelToDeliverytype:- Input field
customwas added toAddOrderParcelToDeliverytype
- Input field
- [GraphQL API] Changed the
AddStagedOrderParcelToDeliveryOutputtype:- Added the
customfield to theAddStagedOrderParcelToDeliveryOutputtype.
- Added the
- [GraphQL API] Changed the
ParcelDatatype:- Added the
customfield to theParcelDatatype.
- Added the
- [GraphQL API] Changed the
AddStagedOrderParcelToDeliverytype:- Input field
customwas added toAddStagedOrderParcelToDeliverytype
- Input field
- [GraphQL API] Changed the
OrderUpdateActiontype:- Input field
setParcelCustomFieldwas added toOrderUpdateActiontype - Input field
setParcelCustomTypewas added toOrderUpdateActiontype
- Input field
The following changes were introduced in terms of GraphQL SDL:
extend type Parcel {custom: CustomFieldsType}extend type ParcelData {custom: CustomFieldsCommand}extend type AddStagedOrderParcelToDeliveryOutput {custom: CustomFieldsCommand}extend input AddStagedOrderParcelToDelivery {custom: CustomFieldsDraft}extend input ParcelDataDraftType {custom: CustomFieldsDraft}extend input StagedOrderUpdateAction {setParcelCustomField: SetStagedOrderParcelCustomFieldsetParcelCustomType: SetStagedOrderParcelCustomType}extend input AddOrderParcelToDelivery {custom: CustomFieldsDraft}extend input OrderUpdateAction {setParcelCustomField: SetOrderParcelCustomFieldsetParcelCustomType: SetOrderParcelCustomType}input SetOrderParcelCustomField {name: String!value: StringparcelId: String!}input SetOrderParcelCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: StringparcelId: String!}input SetStagedOrderParcelCustomField {name: String!value: StringparcelId: String!}type SetStagedOrderParcelCustomFieldOutput implements StagedOrderUpdateActionOutput {type: String!name: String!value: JsonparcelId: String!}input SetStagedOrderParcelCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: StringparcelId: String!}type SetStagedOrderParcelCustomTypeOutput implements StagedOrderUpdateActionOutput {type: String!custom: CustomFieldsCommand!parcelId: String!}