import { Request, Response } from "express"; /** * @oas [post] /store/order-edits/{id}/decline * operationId: "PostOrderEditsOrderEditDecline" * summary: "Decline an Order Edit" * description: "Decline an Order Edit. The changes are not reflected on the original order." * parameters: * - (path) id=* {string} The ID of the OrderEdit. * requestBody: * content: * application/json: * schema: * $ref: "#/components/schemas/StorePostOrderEditsOrderEditDecline" * x-codegen: * method: decline * x-codeSamples: * - lang: JavaScript * label: JS Client * source: | * import Medusa from "@medusajs/medusa-js" * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) * medusa.orderEdits.decline(orderEditId) * .then(({ order_edit }) => { * console.log(order_edit.id); * }) * - lang: Shell * label: cURL * source: | * curl -X POST '{backend_url}/store/order-edits/{id}/decline' * tags: * - Order Edits * responses: * 200: * description: OK * content: * application/json: * schema: * $ref: "#/components/schemas/StoreOrderEditsRes" * "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; /** * @schema StorePostOrderEditsOrderEditDecline * type: object * properties: * declined_reason: * type: string * description: The reason for declining the Order Edit. */ export declare class StorePostOrderEditsOrderEditDecline { declined_reason?: string; }