|
|
|
@ -1608,6 +1608,74 @@ fastify.get("/api/getSingleQuotationData/:quotationId", {
|
|
|
|
|
handler: storeController.getSinleQuotationData,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.put("/api/updateInstallationId/:orderId", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Install"],
|
|
|
|
|
description: "Update the installationId of an order",
|
|
|
|
|
summary: "Update installationId",
|
|
|
|
|
params: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
orderId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "Order ID",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
required: ["orderId"],
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
installationId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "Installation ID to update",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
required: ["installationId"],
|
|
|
|
|
},
|
|
|
|
|
response: {
|
|
|
|
|
200: {
|
|
|
|
|
description: "Installation ID updated successfully",
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
status_code: { type: "number" },
|
|
|
|
|
message: { type: "string" },
|
|
|
|
|
data: { type: "object" },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
400: {
|
|
|
|
|
description: "Bad request",
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
error: { type: "string" },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
404: {
|
|
|
|
|
description: "Order not found",
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
error: { type: "string" },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
500: {
|
|
|
|
|
description: "Internal server error",
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
error: { type: "string" },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
handler: storeController.updateInstallationId,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/cart/hardwareItem", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "To add items to the Hardwarecart",
|
|
|
|
|