Module exposing: createRefundReasonStepId, createRefundReasonStep
// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import {
CreateRefundReasonDTO,
IPaymentModuleService,
} from "@medusajs/framework/types"
import { Modules } from "@medusajs/framework/utils"
import { StepResponse, createStep } from "@medusajs/framework/workflows-sdk"
/**
* The refund reasons to create.
*/
export type CreateRefundReasonStepInput = CreateRefundReasonDTO[]
export const createRefundReasonStepId = "create-refund-reason"
/**
* This step creates one or more refund reasons.
*/
export const createRefundReasonStep = createStep(
createRefundReasonStepId,
async (data: CreateRefundReasonStepInput, { container }) => {
const service = container.resolve<IPaymentModuleSe
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key