API changes for v2 API, October 7, 2024
On October 7, 2024, the mittwald API underwent several changes, including the removal of optional properties for first and last names from various order-related responses, while simultaneously adding new optional properties for first and last names in the response and introducing new optional request properties for order creation.
Summary
-
The optional properties
/items/profile/first_nameand/items/profile/last_namehave been removed from the response with the '200' status for the following operations:GET /v2/customers/{customerId}/ordersGET /v2/ordersGET /v2/orders/{orderId}GET /v2/projects/{projectId}/orders
-
The optional properties
/items/profile/firstNameand/items/profile/lastNamehave been added to the response with the '200' status for the following operations:GET /v2/customers/{customerId}/ordersGET /v2/ordersGET /v2/orders/{orderId}GET /v2/projects/{projectId}/orders
-
The new optional request property
orderData/oneOf[#/components/schemas/de.mittwald.v1.order.ProjectHostingOrder]/recommendationCodehas been added to thePOST /v2/ordersoperation. -
The new optional request property
orderData/oneOf[#/components/schemas/de.mittwald.v1.order.ServerOrder]/recommendationCodehas also been added to thePOST /v2/ordersoperation. -
A breaking change has occurred due to the removal of the optional properties
/items/profile/first_nameand/items/profile/last_namefrom the response for the operations listed above.
Disclaimer: This summary is AI-generated. If you find any discrepancies, please refer to the detailed changes below.
Developer's note
Even if these changes appear to be breaking, the response of the above-mentioned Order routes does not actually change. first_name and last_name were incorrectly named in the generated spec, because technically firstName and lastName were already returned beforehand.
Detailed changes
Changes in "Get list of Orders of a Customer"
-
removed the optional property '/items/profile/first_name' from the response with the '200' status
-
removed the optional property '/items/profile/last_name' from the response with the '200' status
-
added the optional property '/items/profile/firstName' to the response with the '200' status
-
added the optional property '/items/profile/lastName' to the response with the '200' status
For details, refer to the GET/ endpoint.
Changes in "Get list of Orders"
-
removed the optional property '/items/profile/first_name' from the response with the '200' status
-
removed the optional property '/items/profile/last_name' from the response with the '200' status
-
added the optional property '/items/profile/firstName' to the response with the '200' status
-
added the optional property '/items/profile/lastName' to the response with the '200' status
For details, refer to the GET/ endpoint.
Changes in "Get Order for Customer"
-
removed the optional property 'profile/first_name' from the response with the '200' status
-
removed the optional property 'profile/last_name' from the response with the '200' status
-
added the optional property 'profile/firstName' to the response with the '200' status
-
added the optional property 'profile/lastName' to the response with the '200' status
For details, refer to the GET/ endpoint.
Changes in "Get list of Orders of a Project"
-
removed the optional property '/items/profile/first_name' from the response with the '200' status
-
removed the optional property '/items/profile/last_name' from the response with the '200' status
-
added the optional property '/items/profile/firstName' to the response with the '200' status
-
added the optional property '/items/profile/lastName' to the response with the '200' status
For details, refer to the GET/ endpoint.
Changes in "Create an Order"
-
added the new optional request property 'orderData/oneOf[#/components/schemas/de.mittwald.v1.order.ProjectHostingOrder]/recommendationCode'
-
added the new optional request property 'orderData/oneOf[#/components/schemas/de.mittwald.v1.order.ServerOrder]/recommendationCode'
For details, refer to the POST/ endpoint.
Client package releases
mittwald PHP SDK Release v2.1.70
The mittwald PHP SDK has been updated to version 2.1.70. This release includes several changes and new features aimed at improving code consistency and enhancing order processes.
Changes
-
Variable names in the
Profileclass have been updated from snake_case to camelCase for consistency:first_nameis nowfirstNamelast_nameis nowlastName
-
The
ProjectHostingOrderandServerOrderschemas have been enhanced to include arecommendationCode, allowing users to specify a recommendation during the order process.
New Features
- A
getRecommendationCodemethod has been introduced in bothProjectHostingOrderandServerOrderclasses for retrieving the recommendation code. - New methods
withRecommendationCodeandwithoutRecommendationCodehave been added to bothProjectHostingOrderandServerOrderclasses, enabling users to add or remove a recommendation code from their orders.
For more details, visit the release page.