@medusajs/core-flows
Version:
Set of workflow definitions for Medusa
9 lines • 471 B
TypeScript
import { OrderDTO, PromotionDTO } from "@medusajs/types";
interface ThrowIfNotDraftOrderInput {
order: OrderDTO;
}
export declare function throwIfNotDraftOrder({ order }: ThrowIfNotDraftOrderInput): void;
export declare function throwIfCodesAreMissing(promo_codes: string[], promotions: PromotionDTO[]): void;
export declare function throwIfCodesAreInactive(promo_codes: string[], promotions: PromotionDTO[]): void;
export {};
//# sourceMappingURL=validation.d.ts.map