@trusted-solutions/sdit.models 0.47.1-alpha.0 → 0.48.1-alpha.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.
@@ -158,10 +158,18 @@ export interface SOGetStoreInfoResponse {
158
158
  */
159
159
  availableGuest?: boolean;
160
160
  /**
161
+ * @deprecated Cognito專用,PoskyIdentity請改用 `userPoolWebClientIdV2`
162
+ *
161
163
  * Cognito user pool web client id
162
- * @Default brand的設定
164
+ * @Default undefined
163
165
  */
164
166
  userPoolWebClientId?: string;
167
+ /**
168
+ * PoskyIdentity web client id
169
+ * 由Brand決定,如果沒有Brand,會給 Posky Default User Pool
170
+ * @Default Posky Default User Pool client id
171
+ */
172
+ userPoolWebClientIdV2: string;
165
173
  /**
166
174
  * 是否啟用集點
167
175
  * @Default brand的設定
@@ -257,6 +265,8 @@ export interface SOValidateMutationResponse {
257
265
  * 本次折抵金額
258
266
  */
259
267
  pointsDiscountAmount?: number;
268
+ /** 點數異常訊息 */
269
+ pointsErrorMsg?: string;
260
270
  }
261
271
  /*******************************/
262
272
  /*******************************/
@@ -8,6 +8,8 @@ export interface Receipt {
8
8
  id: string;
9
9
  /** Copy `invoiceConfig` from `Store` */
10
10
  invoiceConfig: InvoiceConfig;
11
+ /** Copy `displayId` from `Store` */
12
+ storeDisplayId?: string;
11
13
  /**
12
14
  * 有值代表「線上訂單 & 線上付款」。
13
15
  * 若是「線上訂單 & 線上付款」,會走線上取消訂單並退款流程。
@@ -40,6 +42,8 @@ export interface Receipt {
40
42
  /** 混合支付細項 */
41
43
  mixPayments?: Transaction[];
42
44
  mixRefunds?: Transaction[];
45
+ /** 結帳備註,會印在收據上且上傳發票雲 */
46
+ note?: string;
43
47
  }
44
48
  export interface Transaction {
45
49
  accountId: string;
package/models/store.d.ts CHANGED
@@ -23,6 +23,8 @@ export interface Operator {
23
23
  }
24
24
  export interface Store {
25
25
  id?: string;
26
+ /** 讓店家自行定義的店號,會印在發票及收據上 */
27
+ displayId?: string;
26
28
  name: string;
27
29
  createdAt?: number;
28
30
  company: CompanyEnum;
@@ -195,10 +197,17 @@ export interface Store {
195
197
  /** 是否開放訪客點餐 */
196
198
  onlineAvailableGuest?: boolean;
197
199
  /**
200
+ * @deprecated 應改用 `onlineUserPoolWebClientIdV2`
201
+ *
198
202
  * 線上點餐登入UserPoolWebClientId
199
- * 單店設定,用來覆蓋 Brand 的 UserPoolWebClientId
203
+ * 單店設定
200
204
  */
201
205
  onlineUserPoolWebClientId?: string;
206
+ /**
207
+ * 線上點餐登入UserPoolWebClientIdV2
208
+ * 單店設定,用來覆蓋 Brand 的 UserPoolWebClientId
209
+ */
210
+ onlineUserPoolWebClientIdV2?: string;
202
211
  /**
203
212
  * 是否啟用集點
204
213
  * 單店設定,用來覆蓋 Brand 的 StorePointsEnabled
@@ -214,6 +223,8 @@ export interface Store {
214
223
  * 單店設定,用來覆蓋 Brand 的 StorePointsName
215
224
  */
216
225
  onlineStorePointsName?: string;
226
+ /** 品牌 */
227
+ brandNo?: string;
217
228
  }
218
229
  export declare enum PointProvider {
219
230
  Posky = "Posky",
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/store.ts"],"names":[],"mappings":";;;AAEA,oCAAmH;AA4OnH,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;AAuPnH,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.47.1-alpha.0",
3
+ "version": "0.48.1-alpha.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": {