@final-commerce/command-frame 0.5.0-preprod.1 → 0.5.0-preprod.2

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.
@@ -4,6 +4,8 @@ export const mockGetRemainingRefundableQuantities = async (_params) => {
4
4
  success: true,
5
5
  lineItems: {},
6
6
  customSales: {},
7
+ cartFees: {},
8
+ tips: {},
7
9
  timestamp: new Date().toISOString()
8
10
  };
9
11
  };
@@ -5,6 +5,19 @@ export interface GetRemainingRefundableQuantitiesResponse {
5
5
  success: boolean;
6
6
  lineItems: Record<string, number>;
7
7
  customSales: Record<string, number>;
8
+ /**
9
+ * Remaining refundable cart fees, keyed by `order.cartFees[].id` —
10
+ * the same key `processPartialRefund` takes for `type: 'fee'` items.
11
+ * 0/1 semantics: `1` = still refundable, `0` = already refunded.
12
+ */
13
+ cartFees: Record<string, number>;
14
+ /**
15
+ * Remaining refundable tips, keyed by the paying method's
16
+ * `transactionId` — the same key `processPartialRefund` takes for
17
+ * `type: 'tip'` items. Only payment methods that carry a tip appear.
18
+ * 0/1 semantics: `1` = still refundable, `0` = already refunded.
19
+ */
20
+ tips: Record<string, number>;
8
21
  timestamp: string;
9
22
  }
10
23
  export type GetRemainingRefundableQuantities = (params?: GetRemainingRefundableQuantitiesParams) => Promise<GetRemainingRefundableQuantitiesResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-commerce/command-frame",
3
- "version": "0.5.0-preprod.1",
3
+ "version": "0.5.0-preprod.2",
4
4
  "description": "Commands Frame library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",