import { OrderChangeDTO, OrderDTO, PromotionDTO } from "@medusajs/framework/types"; /** * The data to compute adjustments for an order edit, exchange, claim, or return. */ export type ComputeAdjustmentsForPreviewWorkflowInput = { /** * The order's details. */ order: OrderDTO & { /** * The promotions applied to the order. */ promotions: PromotionDTO[]; }; /** * The order change's details. */ orderChange: OrderChangeDTO; }; export declare const computeAdjustmentsForPreviewWorkflowId = "compute-adjustments-for-preview"; /** * This workflow computes adjustments for an order change if the carry over promotions flag is true on the order change. * If the flag is false, it deletes the existing adjustments replacement actions. * * It is currently used as a part of the order edit and exchange flows. It's used by workflows * like {@link orderExchangeAddNewItemWorkflow} and {@link orderEditAddNewItemWorkflow}. * * You can use this workflow within your customizations or your own custom workflows, allowing you to compute adjustments * in your custom flows. * * @since 2.12.0 * * @example * const { result } = await computeAdjustmentsForPreviewWorkflow(container) * .run({ * input: { * order: { * id: "order_123", * // other order details... * }, * orderChange: { * id: "orch_123", * // other order change details... * }, * } * }) * * @summary * * Compute adjustments for an order edit, exchange, claim, or return. */ export declare const computeAdjustmentsForPreviewWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow; //# sourceMappingURL=compute-adjustments-for-preview.d.ts.map