@final-commerce/command-frame 0.5.0-preprod.3 → 0.5.0-preprod.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
export interface RemoveProductFeeParams {
|
|
2
|
-
/** If provided, removes fee from specific cart item. Otherwise uses active product. */
|
|
2
|
+
/** If provided, removes fee(s) from a specific cart item. Otherwise uses active product. */
|
|
3
3
|
internalId?: string;
|
|
4
|
+
/**
|
|
5
|
+
* 0-based index of the single fee to remove, in the order the line's fees
|
|
6
|
+
* were added (fees STACK — `addProductFee` appends). Omit to clear ALL
|
|
7
|
+
* fees on the line (the legacy behavior). Out-of-range indexes are a
|
|
8
|
+
* no-op.
|
|
9
|
+
*/
|
|
10
|
+
index?: number;
|
|
4
11
|
}
|
|
5
12
|
export interface RemoveProductFeeResponse {
|
|
6
13
|
success: boolean;
|
|
7
14
|
internalId?: string;
|
|
15
|
+
/** Echoed when a single fee was targeted. */
|
|
16
|
+
index?: number;
|
|
8
17
|
timestamp: string;
|
|
9
18
|
}
|
|
10
19
|
export type RemoveProductFee = (params?: RemoveProductFeeParams) => Promise<RemoveProductFeeResponse>;
|