@vita-mojo/types 1.0.24-VMOS-12746-a3eafa6-645-rc.0 → 1.0.24-VMOS-12746-0398dcf-657-rc.0
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.
- package/package.json +1 -1
- package/src/order/bill-v2.d.ts +13 -2
package/package.json
CHANGED
package/src/order/bill-v2.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface BillV2 {
|
|
|
7
7
|
/**
|
|
8
8
|
* Selected splits by cover (uuid). These are autogenerated when you select covers to pay
|
|
9
9
|
*/
|
|
10
|
-
selectedSplits?:
|
|
10
|
+
selectedSplits?: Split[];
|
|
11
11
|
/**
|
|
12
12
|
* This is only present if you make the changes to the splits from UI. Subsequent transactions will have it missing
|
|
13
13
|
* @default undefined
|
|
@@ -21,6 +21,10 @@ export interface BillV2 {
|
|
|
21
21
|
* Desired number of splits
|
|
22
22
|
*/
|
|
23
23
|
splits: number;
|
|
24
|
+
/**
|
|
25
|
+
* Total amount of the order including service charge at the time of the transaction. It will help to understand if order total changed after the transaction and reset the cover proposal flow
|
|
26
|
+
*/
|
|
27
|
+
totalOrderValue: number;
|
|
24
28
|
};
|
|
25
29
|
/**
|
|
26
30
|
* Total service charge for the bill
|
|
@@ -52,9 +56,16 @@ export interface BillBundleV2 {
|
|
|
52
56
|
/**
|
|
53
57
|
* Selected splits by item. In case of full payment, this is empty. These are dynamically generated when you select items to pay
|
|
54
58
|
*/
|
|
55
|
-
selectedSplits?:
|
|
59
|
+
selectedSplits?: Split[];
|
|
56
60
|
/**
|
|
57
61
|
* Total splits made on this bundle
|
|
58
62
|
*/
|
|
59
63
|
splits?: number;
|
|
60
64
|
}
|
|
65
|
+
export interface Split {
|
|
66
|
+
/**
|
|
67
|
+
* Split amount. This is not amount paid but rather the total split value
|
|
68
|
+
*/
|
|
69
|
+
amount: number;
|
|
70
|
+
uuid: string;
|
|
71
|
+
}
|