import { http } from './http.js'; /** * Payments linked to orders (manifests). */ export const payment = { // #region GET /api/order/:id/payment — listByOrder listByOrder(orderId) { return http(`/api/order/${orderId}/payment`); }, // #endregion // #region POST /api/order/:id/payment — create create(orderId, body) { return http(`/api/order/${orderId}/payment`, { method: 'POST', body }); }, // #endregion // #region DELETE /api/payment/:id — delete delete(id) { return http(`/api/payment/${id}`, { method: 'DELETE' }); }, // #endregion };