UNPKG

@medusajs/utils

Version:

Medusa utilities functions shared by Medusa core and Modules

11 lines 510 B
import { AdjustmentLineDTO, BigNumberInput } from "@medusajs/types"; export declare function calculateAdjustmentTotal({ adjustments, includesTax, taxRate, }: { adjustments: Pick<AdjustmentLineDTO, "amount" | "is_tax_inclusive">[]; includesTax?: boolean; taxRate?: BigNumberInput; }): { adjustmentsTotal: import("bignumber.js").BigNumber; adjustmentsSubtotal: import("bignumber.js").BigNumber; adjustmentsTaxTotal: import("bignumber.js").BigNumber; }; //# sourceMappingURL=index.d.ts.map