import { Request, Response } from "express"; /** * @oas [post] /admin/order-edits/{id}/confirm * operationId: "PostOrderEditsOrderEditConfirm" * summary: "Confirm an OrderEdit" * description: "Confirm an Order Edit. This will reflect the changes in the order edit on the associated order." * x-authenticated: true * parameters: * - (path) id=* {string} The ID of the order edit. * x-codegen: * method: confirm * x-codeSamples: * - lang: JavaScript * label: JS Client * source: | * import Medusa from "@medusajs/medusa-js" * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) * // must be previously logged in or use api token * medusa.admin.orderEdits.confirm(orderEditId) * .then(({ order_edit }) => { * console.log(order_edit.id) * }) * - lang: Shell * label: cURL * source: | * curl -X POST '{backend_url}/admin/order-edits/{id}/confirm' \ * -H 'Authorization: Bearer {api_token}' * security: * - api_token: [] * - cookie_auth: [] * tags: * - Order Edits * responses: * 200: * description: OK * content: * application/json: * schema: * $ref: "#/components/schemas/AdminOrderEditsRes" * "400": * $ref: "#/components/responses/400_error" * "401": * $ref: "#/components/responses/unauthorized" * "404": * $ref: "#/components/responses/not_found_error" * "500": * $ref: "#/components/responses/500_error" */ declare const _default: (req: Request, res: Response) => Promise>>; export default _default;