validateCartShippingOptionsStepId (steps/validate-cart-shipping-options.ts)

medusa · packages/core/core-flows/src/cart/steps/validate-cart-shipping-options.ts · typescript · MIT
pos

Module exposing: validateCartShippingOptionsStepId, validateCartShippingOptionsStep

// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import type {
  CartDTO,
  IFulfillmentModuleService,
} from "@medusajs/framework/types"
import {
  arrayDifference,
  MedusaError,
  Modules,
} from "@medusajs/framework/utils"
import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"

/**
 * The details of the cart and its shipping options context.
 */
export interface ValidateCartShippingOptionsStepInput {
  /**
   * The cart to validate shipping options for.
   */
  cart?: CartDTO
  /**
   * The context to validate the shipping options.
   */
  shippingOptionsContext?: {
    /**
     * Validate whether the shipping options are enabled in the store.
     */
    enabled

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key