UNPKG

@medusajs/core-flows

Version:

Set of workflow definitions for Medusa

34 lines 1.1 kB
import { CreateTaxRateDTO, TaxRateDTO } from "@medusajs/framework/types"; /** * The tax rates to create. */ export type CreateTaxRatesWorkflowInput = CreateTaxRateDTO[]; /** * The created tax rates. */ export type CreateTaxRatesWorkflowOutput = TaxRateDTO[]; export declare const createTaxRatesWorkflowId = "create-tax-rates"; /** * This workflow creates one or more tax rates. It's used by the * [Create Tax Rates Admin API Route](https://docs.medusajs.com/api/admin#tax-rates_posttaxrates). * * You can use this workflow within your own customizations or custom workflows, allowing you * to create tax rates in your custom flows. * * @example * const { result } = await createTaxRatesWorkflow(container) * .run({ * input: [ * { * tax_region_id: "txreg_123", * name: "Default" * } * ] * }) * * @summary * * Create one or more tax rates. */ export declare const createTaxRatesWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<CreateTaxRatesWorkflowInput, CreateTaxRatesWorkflowOutput, []>; //# sourceMappingURL=create-tax-rates.d.ts.map