diff --git a/packages/core/core-flows/src/order/workflows/create-orders.ts b/packages/core/core-flows/src/order/workflows/create-order.ts similarity index 96% rename from packages/core/core-flows/src/order/workflows/create-orders.ts rename to packages/core/core-flows/src/order/workflows/create-order.ts index 5fd35f5fa92a6..80a015051143c 100644 --- a/packages/core/core-flows/src/order/workflows/create-orders.ts +++ b/packages/core/core-flows/src/order/workflows/create-order.ts @@ -88,7 +88,7 @@ export const createOrdersWorkflowId = "create-orders" /** * This workflow creates an order. */ -export const createOrdersWorkflow = createWorkflow( +export const createOrderWorkflow = createWorkflow( createOrdersWorkflowId, (input: WorkflowData) => { const variantIds = transform({ input }, (data) => { @@ -189,3 +189,9 @@ export const createOrdersWorkflow = createWorkflow( }) } ) + +/** + * @deprecated + * Instead use the singular name "createOrderWorkflow" + */ +export const createOrdersWorkflow = createOrderWorkflow diff --git a/packages/core/core-flows/src/order/workflows/index.ts b/packages/core/core-flows/src/order/workflows/index.ts index f4eefc28ae74b..a68f9c2a8ffc5 100644 --- a/packages/core/core-flows/src/order/workflows/index.ts +++ b/packages/core/core-flows/src/order/workflows/index.ts @@ -22,7 +22,7 @@ export * from "./create-fulfillment" export * from "./create-order-change" export * from "./create-order-change-actions" export * from "./create-order-payment-collection" -export * from "./create-orders" +export * from "./create-order" export * from "./create-shipment" export * from "./decline-order-change" export * from "./delete-order-change"