u
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user