@final-commerce/command-frame 0.5.0-preprod.1 → 0.5.0-preprod.3
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.
|
@@ -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>;
|
|
@@ -7,4 +7,10 @@ export interface InitiateRefundResponse {
|
|
|
7
7
|
orderId: string;
|
|
8
8
|
timestamp: string;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated The host-side refund popup is disabled — no UI opens. Stages the
|
|
12
|
+
* active order (and arms barcode refund-scan routing when no `orderId` is
|
|
13
|
+
* given). Build refund UI in the flow: `getRefundPlan`,
|
|
14
|
+
* `getRemainingRefundableQuantities`, `processPartialRefund`, `redeemRefund`.
|
|
15
|
+
*/
|
|
10
16
|
export type InitiateRefund = (params?: InitiateRefundParams) => Promise<InitiateRefundResponse>;
|