@trusted-solutions/sdit.models 0.57.0-alpha.0 → 0.57.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.
- package/lambda/online-ordering.d.ts +6 -0
- package/models/order.d.ts +5 -0
- package/models/store.d.ts +6 -0
- package/models/store.js.map +1 -1
- package/package.json +1 -1
|
@@ -198,6 +198,12 @@ export interface SOGetStoreInfoResponse {
|
|
|
198
198
|
dineInServiceChargePercent?: number;
|
|
199
199
|
/** 外帶服務費 0~100(%) */
|
|
200
200
|
takeoutServiceChargePercent?: number;
|
|
201
|
+
/**
|
|
202
|
+
* 服務費計算基準
|
|
203
|
+
* "subtotal": 先折扣再服務費
|
|
204
|
+
* "subtotal+discount": 先服務費再折扣。
|
|
205
|
+
*/
|
|
206
|
+
serviceBase: "subtotal | subtotal+discount";
|
|
201
207
|
}
|
|
202
208
|
/*******************************/
|
|
203
209
|
/*******************************/
|
package/models/order.d.ts
CHANGED
|
@@ -97,6 +97,11 @@ export interface Order extends BaseOrder {
|
|
|
97
97
|
subtotal: number;
|
|
98
98
|
/** 外送費 */
|
|
99
99
|
deliveryCharge?: number;
|
|
100
|
+
/**
|
|
101
|
+
* 服務費
|
|
102
|
+
* undefined=沒有此收費名目
|
|
103
|
+
*/
|
|
104
|
+
serviceCharge?: number;
|
|
100
105
|
/** subtotal - sigma(discount.discountReferences.orderItemId === null) + deliveryCharge */
|
|
101
106
|
totalAmount: number;
|
|
102
107
|
salesAmountExcludeTax: number;
|
package/models/store.d.ts
CHANGED
|
@@ -231,6 +231,12 @@ export interface Store {
|
|
|
231
231
|
dineInServiceChargePercent?: number;
|
|
232
232
|
/** 外帶服務費 0~100(%) */
|
|
233
233
|
takeoutServiceChargePercent?: number;
|
|
234
|
+
/**
|
|
235
|
+
* 服務費計算基準,無值時預設subtotal
|
|
236
|
+
* "subtotal": 先折扣再服務費
|
|
237
|
+
* "subtotal+discount": 先服務費再折扣。
|
|
238
|
+
*/
|
|
239
|
+
serviceBase?: "subtotal | subtotal+discount";
|
|
234
240
|
}
|
|
235
241
|
export declare enum PointProvider {
|
|
236
242
|
Posky = "Posky",
|
package/models/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;AAuQnH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kDAAiC,CAAA;AACnC,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.2",
|
|
4
4
|
"description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|