@trusted-solutions/sdit.models 0.50.1-alpha.0 → 0.51.0-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.
@@ -14,7 +14,10 @@ export interface GetStoreContractResponse {
14
14
  * Get Current Store Contract use case
15
15
  */
16
16
  export interface GetCurrentStoreContractLimitRequest {
17
- storeId: string;
17
+ /** 至少三選一 */
18
+ storeId?: string;
19
+ storeNo?: string;
20
+ mainStoreNo?: string;
18
21
  /**
19
22
  * 沒給的話,回傳全部的limit
20
23
  */
@@ -271,6 +271,10 @@ export interface SOValidateMutationResponse {
271
271
  pointsDiscountAmount?: number;
272
272
  /** 點數異常訊息 */
273
273
  pointsErrorMsg?: string;
274
+ /**
275
+ * 是否有折扣錯誤
276
+ */
277
+ discountErrorMsg?: string;
274
278
  }
275
279
  /*******************************/
276
280
  /*******************************/
package/models/menu.d.ts CHANGED
@@ -55,7 +55,7 @@ export interface Product {
55
55
  * 是否售完。
56
56
  * 使用 lambda func `realTimeSwitch` 來更新此 property
57
57
  */
58
- soldOut: boolean;
58
+ soldOut: number | null | boolean;
59
59
  externals?: External[];
60
60
  discountModules?: ItemDiscountModule[];
61
61
  storeTemplateId?: string;
@@ -75,7 +75,7 @@ export interface ProductAttribute {
75
75
  * 是否售完。
76
76
  * 使用 lambda func `realTimeSwitch` 來更新此 property
77
77
  */
78
- soldOut?: boolean;
78
+ soldOut?: boolean | number | null;
79
79
  disableOnline?: boolean;
80
80
  disableKiosk?: boolean;
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.50.1-alpha.0",
3
+ "version": "0.51.0-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": {
@@ -39,6 +39,27 @@ export interface UbEater {
39
39
  phone: string;
40
40
  phone_code: string;
41
41
  id: string;
42
+ /**
43
+ * 更新內容一:GET /v2/eats/order
44
+ * 在 API 回應中的 eater 物件,新增以下欄位:
45
+ * 1. tax_profile.tax_profile_metadata (object)
46
+ * 此欄位將包含三種發票載具類型(若有填寫):
47
+ * donation_code:捐贈碼
48
+ * mobile_barcode:手機條碼
49
+ * digital_certificate_code:自然人憑證條碼
50
+ */
51
+ tax_profile?: {
52
+ tax_profile_metadata: {
53
+ donation_code?: string;
54
+ mobile_barcode?: string;
55
+ digital_certificate_code?: string;
56
+ };
57
+ };
58
+ /**
59
+ * 更新內容一:GET /v2/eats/order
60
+ * 2. corporate_tax_id_taiwan (string)
61
+ * 此欄位將直接位於 eater object 下,用於提供統一編號資訊。
62
+ */
42
63
  corporate_tax_id_taiwan?: string;
43
64
  /**
44
65
  * 台灣好像沒有店家外送