@vita-mojo/types 1.0.23-VMOS-12775-c66eec5-641-rc.0 → 1.0.24-VMOS-12746-55b7eb9-643-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 +60 -0
- package/src/order/bill-v2.js +3 -0
- package/src/order/bill-v2.js.map +1 -0
- package/src/order/bundle.d.ts +0 -2
- package/src/order/index.d.ts +2 -1
- package/src/order/index.js +2 -1
- package/src/order/index.js.map +1 -1
- package/src/order/order.d.ts +1 -0
- package/src/order/payment.d.ts +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface BillV2 {
|
|
2
|
+
uuid: string;
|
|
3
|
+
/**
|
|
4
|
+
* Selected cover/items total amount including service charge.
|
|
5
|
+
*/
|
|
6
|
+
selectedAmount: number;
|
|
7
|
+
/**
|
|
8
|
+
* Selected splits by cover (uuid). These are autogenerated when you select covers to pay
|
|
9
|
+
*/
|
|
10
|
+
selectedSplits?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* This is only present if you make the changes to the splits from UI. Subsequent transactions will have it missing
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
splitProposal?: {
|
|
16
|
+
/**
|
|
17
|
+
* This is the remaining amount to pay at the time of the transaction. It indicates the willingness to split this amount by N ways
|
|
18
|
+
*/
|
|
19
|
+
amount: number;
|
|
20
|
+
/**
|
|
21
|
+
* Desired number of splits
|
|
22
|
+
*/
|
|
23
|
+
splits: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Total service charge for the bill
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
serviceCharge?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates if this bill is partially paid or not
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
partiallyPaid?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Empty in case of pay by cover
|
|
37
|
+
*/
|
|
38
|
+
bundles?: BillBundleV2[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* This is part of pay by item feature. Each bundle has splits and each split can be either fully or partially paid
|
|
42
|
+
*/
|
|
43
|
+
export interface BillBundleV2 {
|
|
44
|
+
/**
|
|
45
|
+
* Basket bundle uuid
|
|
46
|
+
*/
|
|
47
|
+
uuid: string;
|
|
48
|
+
/**
|
|
49
|
+
* Exact amount paid for this bundle; this is already distributed amount. If you sum up all bundles amount you must get selectedAmount
|
|
50
|
+
*/
|
|
51
|
+
amount: number;
|
|
52
|
+
/**
|
|
53
|
+
* Selected splits by item. In case of full payment, this is empty. These are dynamically generated when you select items to pay
|
|
54
|
+
*/
|
|
55
|
+
selectedSplits?: string[];
|
|
56
|
+
/**
|
|
57
|
+
* Total splits made on this bundle
|
|
58
|
+
*/
|
|
59
|
+
splits?: number;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bill-v2.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/bill-v2.ts"],"names":[],"mappings":""}
|
package/src/order/bundle.d.ts
CHANGED
package/src/order/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './bill';
|
|
2
|
+
export * from './bill-v2';
|
|
1
3
|
export * as Bundle from './bundle';
|
|
2
4
|
export * as Fiscalization from './fiscalization';
|
|
3
5
|
export * as Item from './item';
|
|
@@ -11,5 +13,4 @@ export * from './promotion';
|
|
|
11
13
|
export * from './settings';
|
|
12
14
|
export * as Subway from './subway';
|
|
13
15
|
export * from './tenant-settings';
|
|
14
|
-
export * from './bill';
|
|
15
16
|
export { Type } from './type';
|
package/src/order/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Subway = exports.Payment = exports.Item = exports.Fiscalization = exports.Bundle = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./bill"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./bill-v2"), exports);
|
|
5
7
|
exports.Bundle = require("./bundle");
|
|
6
8
|
exports.Fiscalization = require("./fiscalization");
|
|
7
9
|
exports.Item = require("./item");
|
|
@@ -13,5 +15,4 @@ tslib_1.__exportStar(require("./promotion"), exports);
|
|
|
13
15
|
tslib_1.__exportStar(require("./settings"), exports);
|
|
14
16
|
exports.Subway = require("./subway");
|
|
15
17
|
tslib_1.__exportStar(require("./tenant-settings"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./bill"), exports);
|
|
17
18
|
//# sourceMappingURL=index.js.map
|
package/src/order/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAmC;AACnC,mDAAiD;AACjD,iCAA+B;AAG/B,uDAA6B;AAC7B,kEAAwC;AACxC,uCAAqC;AACrC,sDAA4B;AAC5B,sDAA4B;AAC5B,qDAA2B;AAC3B,qCAAmC;AACnC,4DAAkC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/index.ts"],"names":[],"mappings":";;;;AAAA,iDAAuB;AACvB,oDAA0B;AAC1B,qCAAmC;AACnC,mDAAiD;AACjD,iCAA+B;AAG/B,uDAA6B;AAC7B,kEAAwC;AACxC,uCAAqC;AACrC,sDAA4B;AAC5B,sDAA4B;AAC5B,qDAA2B;AAC3B,qCAAmC;AACnC,4DAAkC"}
|
package/src/order/order.d.ts
CHANGED