@trusted-solutions/sdit.models 0.66.0-alpha.8 → 0.66.0-alpha.9

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.
@@ -241,6 +241,10 @@ export interface SOGetStoreInfoResponse {
241
241
  storeCouponsEnabled?: boolean;
242
242
  /** 加入購物車時,是否與相同品相合併 */
243
243
  mergeSameItem?: boolean;
244
+ /** 是否顯示商品剩餘可售數量 */
245
+ showRemainingQty?: boolean;
246
+ /** 剩餘可售數量小於等於此值才顯示;null/undefined 代表有追蹤數量就顯示 */
247
+ remainingQtyThreshold?: number | null;
244
248
  /** 內用服務費 1~100(%) undefined為關閉 */
245
249
  dineInServiceChargePercent?: number;
246
250
  /** 外帶服務費 1~100(%) undefined為關閉 */
@@ -292,6 +292,10 @@ export interface SOPublicProduct {
292
292
  * 線上售完
293
293
  */
294
294
  soldOut: boolean;
295
+ /**
296
+ * 剩餘可售數量;僅在店家開啟「顯示剩餘可售數量」且符合顯示門檻時有值
297
+ */
298
+ remainingQty?: number | null;
295
299
  discountRuleNos: string[];
296
300
  labelForCustomer: {
297
301
  condition?: DiscountLabel;
@@ -342,6 +346,10 @@ export interface SOPublicProductAttribute {
342
346
  * 線上售完
343
347
  */
344
348
  soldOut: boolean;
349
+ /**
350
+ * 剩餘可售數量;僅在店家開啟「顯示剩餘可售數量」且符合顯示門檻時有值
351
+ */
352
+ remainingQty?: number | null;
345
353
  /** default: single */
346
354
  type?: AttributeType;
347
355
  /** type為combo時,必填 */
package/models/store.d.ts CHANGED
@@ -287,6 +287,10 @@ export interface Store {
287
287
  onlineStoreCouponsEnabled?: boolean;
288
288
  /** 加入購物車時,是否與相同品相合併 */
289
289
  onlineMergeSameItem?: boolean;
290
+ /** 線上點餐是否顯示商品剩餘可售數量 */
291
+ onlineShowRemainingQty?: boolean;
292
+ /** 剩餘可售數量小於等於此值才顯示;null/undefined 代表有追蹤數量就顯示 */
293
+ onlineShowRemainingQtyThreshold?: number | null;
290
294
  /** 內用服務費 1~100(%) undefined為關閉 */
291
295
  dineInServiceChargePercent?: number;
292
296
  /** 外帶服務費 1~100(%) undefined為關閉 */
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAkJ;AAoUlJ,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,oCAAkJ;AAwUlJ,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.66.0-alpha.8",
3
+ "version": "0.66.0-alpha.9",
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": {