Add missing addParcelToDelivery order update action#309
Add missing addParcelToDelivery order update action#309
Conversation
🦋 Changeset detectedLatest commit: 08ad0e7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
addParcelToDelivery to order updates|
@copilot the server should not return a 500 error when a parcel is not found, use |
Fixed the error handling to use CommercetoolsError with InvalidInput code instead of regular Error. Now returns proper 4xx status codes (400) instead of 500. Commit: 2e4f9d7 |
…tests Co-authored-by: mvantellingen <245297+mvantellingen@users.noreply.github.com>
…nstead of regular Error Co-authored-by: mvantellingen <245297+mvantellingen@users.noreply.github.com>
668ccd6 to
08ad0e7
Compare
This PR implements the missing
addParcelToDeliveryorder update action in the commercetools mock library.Changes Made
Implementation
OrderAddParcelToDeliveryActionimport andParceltype to order actionsaddParcelToDeliverymethod inOrderUpdateHandlerclassparcelKey- User-defined unique identifiermeasurements- Parcel dimensions and weighttrackingData- Shipment tracking informationitems- Line items or custom line items in the parcelcustom- Custom fields for the parcelFeatures
deliveryIdordeliveryKeycreateCustomFieldshelperTesting
deliveryIdanddeliveryKeyExample Usage
Fixes #284.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.