This commit is contained in:
seb
2026-10-15 11:12:02 +02:00
parent 670184c633
commit a90776bb8b
6 changed files with 378 additions and 10 deletions

View File

@@ -75,4 +75,16 @@ export const order = {
return http(`/api/order/${id}/file/${fileId}`, { method: 'DELETE' });
},
// #endregion
/**
* POST /api/order/:id/pdf
* Generates and attaches order confirmation PDF.
* @param {number|string} id Order ID
* → 201 { attachment: Attachment, fileUrl: string }
*/
// #region POST /api/order/:id/pdf — createPdf
createPdf(id) {
return http(`/api/order/${id}/pdf`, { method: 'POST' });
},
// #endregion
};