@trusted-solutions/sdit.models 0.57.1 → 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.
@@ -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/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",
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;AA+PnH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kDAAiC,CAAA;AACnC,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
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.1",
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": {