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
custom
field to Parcel and ParcelDraft. - [API] Added Set Parcel Custom Type 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
Parcel
type:- Added the
custom
field to theParcel
type.
- Added the
- [GraphQL API] Changed the
ParcelDataDraftType
type:- Input field
custom
was added toParcelDataDraftType
type
- Input field
- [GraphQL API] Changed the
StagedOrderUpdateAction
type:- Input field
setParcelCustomField
was added toStagedOrderUpdateAction
type - Input field
setParcelCustomType
was added toStagedOrderUpdateAction
type
- Input field
- [GraphQL API] Changed the
AddOrderParcelToDelivery
type:- Input field
custom
was added toAddOrderParcelToDelivery
type
- Input field
- [GraphQL API] Changed the
AddStagedOrderParcelToDeliveryOutput
type:- Added the
custom
field to theAddStagedOrderParcelToDeliveryOutput
type.
- Added the
- [GraphQL API] Changed the
ParcelData
type:- Added the
custom
field to theParcelData
type.
- Added the
- [GraphQL API] Changed the
AddStagedOrderParcelToDelivery
type:- Input field
custom
was added toAddStagedOrderParcelToDelivery
type
- Input field
- [GraphQL API] Changed the
OrderUpdateAction
type:- Input field
setParcelCustomField
was added toOrderUpdateAction
type - Input field
setParcelCustomType
was added toOrderUpdateAction
type
- 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!}