@trusted-solutions/sdit.models 0.57.4-alpha.0 → 0.57.4-alpha.1

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.
@@ -194,14 +194,14 @@ export interface SOGetStoreInfoResponse {
194
194
  brand?: any;
195
195
  /** 加入購物車時,是否與相同品相合併 */
196
196
  mergeSameItem?: boolean;
197
- /** 內用服務費 0~100(%) */
197
+ /** 內用服務費 1~100(%) undefined為關閉 */
198
198
  dineInServiceChargePercent?: number;
199
- /** 外帶服務費 0~100(%) */
199
+ /** 外帶服務費 1~100(%) undefined為關閉 */
200
200
  takeoutServiceChargePercent?: number;
201
201
  /**
202
202
  * 服務費計算基準,無值時預設subtotal
203
- * "subtotal": 先折扣再服務費
204
- * "subtotal+discount": 先服務費再折扣。
203
+ * "subtotal": serviceCharge = (subtotal * servicePercent)
204
+ * "subtotal+discount": serviceCharge = ((subtotal+discount) * servicePercent)
205
205
  */
206
206
  serviceBase?: "subtotal" | "subtotal+discount";
207
207
  }
package/models/store.d.ts CHANGED
@@ -227,14 +227,14 @@ export interface Store {
227
227
  brandNo?: string;
228
228
  /** 加入購物車時,是否與相同品相合併 */
229
229
  onlineMergeSameItem?: boolean;
230
- /** 內用服務費 0~100(%) */
230
+ /** 內用服務費 1~100(%) undefined為關閉 */
231
231
  dineInServiceChargePercent?: number;
232
- /** 外帶服務費 0~100(%) */
232
+ /** 外帶服務費 1~100(%) undefined為關閉 */
233
233
  takeoutServiceChargePercent?: number;
234
234
  /**
235
235
  * 服務費計算基準,無值時預設subtotal
236
- * "subtotal": 先折扣再服務費
237
- * "subtotal+discount": 先服務費再折扣。
236
+ * "subtotal": serviceCharge = (subtotal * servicePercent)
237
+ * "subtotal+discount": serviceCharge = ((subtotal+discount) * servicePercent)
238
238
  */
239
239
  serviceBase?: "subtotal" | "subtotal+discount";
240
240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.57.4-alpha.0",
3
+ "version": "0.57.4-alpha.1",
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": {