@trusted-solutions/sdit.models 0.57.2 → 0.57.4-alpha.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.
|
@@ -199,11 +199,11 @@ export interface SOGetStoreInfoResponse {
|
|
|
199
199
|
/** 外帶服務費 0~100(%) */
|
|
200
200
|
takeoutServiceChargePercent?: number;
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* 服務費計算基準,無值時預設subtotal
|
|
203
203
|
* "subtotal": 先折扣再服務費
|
|
204
204
|
* "subtotal+discount": 先服務費再折扣。
|
|
205
205
|
*/
|
|
206
|
-
serviceBase
|
|
206
|
+
serviceBase?: "subtotal" | "subtotal+discount";
|
|
207
207
|
}
|
|
208
208
|
/*******************************/
|
|
209
209
|
/*******************************/
|
|
@@ -271,6 +271,11 @@ export interface SOValidateMutationResponse {
|
|
|
271
271
|
* undefined=沒有此收費名目
|
|
272
272
|
*/
|
|
273
273
|
serviceCharge?: number;
|
|
274
|
+
/**
|
|
275
|
+
* 服務費費率
|
|
276
|
+
* undefined=沒有此收費名目
|
|
277
|
+
*/
|
|
278
|
+
serviceChargePercent?: number;
|
|
274
279
|
/**
|
|
275
280
|
* 點數折抵前總金額=小計+折扣+外送費+服務費
|
|
276
281
|
*/
|
|
@@ -115,6 +115,8 @@ export interface SOOrder {
|
|
|
115
115
|
totalDiscountAmount: number;
|
|
116
116
|
deliveryCharge?: number;
|
|
117
117
|
serviceCharge?: number;
|
|
118
|
+
/** 服務費費率undefined=沒有此收費名目 */
|
|
119
|
+
serviceChargePercent?: number;
|
|
118
120
|
totalBeforePoints: number;
|
|
119
121
|
taxAmount: number;
|
|
120
122
|
salesAmountExcludeTax: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAmBX;AAnBD,WAAY,gBAAgB;IAC1B,YAAY;IACZ,qDAAiC,CAAA;IACjC,eAAe;IACf,iEAA6C,CAAA;IAC7C,WAAW;IACX,+CAA2B,CAAA;IAC3B,aAAa;IACb,mDAA+B,CAAA;IAC/B,YAAY;IACZ,uDAAmC,CAAA;IACnC,gBAAgB;IAChB,uDAAmC,CAAA;IACnC,YAAY;IACZ,6DAAyC,CAAA;IACzC,YAAY;IACZ,2DAAuC,CAAA;IACvC,cAAc;IACd,2DAAuC,CAAA;AACzC,CAAC,EAnBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAmB3B;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;
|
|
1
|
+
{"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAmBX;AAnBD,WAAY,gBAAgB;IAC1B,YAAY;IACZ,qDAAiC,CAAA;IACjC,eAAe;IACf,iEAA6C,CAAA;IAC7C,WAAW;IACX,+CAA2B,CAAA;IAC3B,aAAa;IACb,mDAA+B,CAAA;IAC/B,YAAY;IACZ,uDAAmC,CAAA;IACnC,gBAAgB;IAChB,uDAAmC,CAAA;IACnC,YAAY;IACZ,6DAAyC,CAAA;IACzC,YAAY;IACZ,2DAAuC,CAAA;IACvC,cAAc;IACd,2DAAuC,CAAA;AACzC,CAAC,EAnBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAmB3B;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAkHD,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,sDAAmB,CAAA;IACnB,kEAA+B,CAAA;AACjC,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AAkCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
|
package/models/order.d.ts
CHANGED
|
@@ -102,6 +102,8 @@ export interface Order extends BaseOrder {
|
|
|
102
102
|
* undefined=沒有此收費名目
|
|
103
103
|
*/
|
|
104
104
|
serviceCharge?: number;
|
|
105
|
+
/** 服務費費率undefined=沒有此收費名目 */
|
|
106
|
+
serviceChargePercent?: number;
|
|
105
107
|
/** subtotal - sigma(discount.discountReferences.orderItemId === null) + deliveryCharge */
|
|
106
108
|
totalAmount: number;
|
|
107
109
|
salesAmountExcludeTax: number;
|
package/models/store.d.ts
CHANGED
|
@@ -236,7 +236,7 @@ export interface Store {
|
|
|
236
236
|
* "subtotal": 先折扣再服務費
|
|
237
237
|
* "subtotal+discount": 先服務費再折扣。
|
|
238
238
|
*/
|
|
239
|
-
serviceBase?: "subtotal | subtotal+discount";
|
|
239
|
+
serviceBase?: "subtotal" | "subtotal+discount";
|
|
240
240
|
}
|
|
241
241
|
export declare enum PointProvider {
|
|
242
242
|
Posky = "Posky",
|
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.4-alpha.0",
|
|
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": {
|