@trusted-solutions/sdit.models 0.39.1 → 0.40.0-alpha.0

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.
@@ -144,6 +144,32 @@ export interface SOGetStoreInfoResponse {
144
144
  * 內用桌名稱
145
145
  */
146
146
  tableName?: string;
147
+ /**
148
+ * Cognito user pool 登入的 OIDC provider
149
+ * @Default undefined
150
+ * undefined: Line
151
+ */
152
+ availableFederatedProvider?: string;
153
+ /**
154
+ * 是否開放訪客點餐
155
+ * @Default undefined
156
+ * undefined/true: 開放
157
+ * false: 不開放
158
+ */
159
+ availableGuest?: boolean;
160
+ /**
161
+ * 可以使用的使用者群組
162
+ * @Default undefined
163
+ * undefined: 全部
164
+ */
165
+ availableStoreUserGroup?: string;
166
+ /**
167
+ * 是否啟用集點
168
+ * @Default undefined
169
+ * undefined/true: 開啟
170
+ * false: 不開啟
171
+ */
172
+ storePointsEnabled?: boolean;
147
173
  }
148
174
  /*******************************/
149
175
  /*******************************/
@@ -206,6 +232,10 @@ export interface SOValidateMutationResponse {
206
232
  * 結帳金額
207
233
  */
208
234
  totalAmount: number;
235
+ /**
236
+ * 可使用點數
237
+ */
238
+ pointsBalance?: number;
209
239
  }
210
240
  /*******************************/
211
241
  /*******************************/
@@ -232,6 +262,8 @@ export interface SOSendOrderRequest {
232
262
  deliveryAddress?: Address;
233
263
  /** 內用桌ID serveType === dineIn 時有效 */
234
264
  tableId?: string;
265
+ /** 折抵點數 */
266
+ redeemPoints?: number;
235
267
  }
236
268
  /**
237
269
  * @throw `SOOrderError`
@@ -142,6 +142,8 @@ export interface SOOrder {
142
142
  /** 付款中的Transaction用來反查付款結果 */
143
143
  transactionId?: string;
144
144
  paymentServiceProvider?: PaymentServiceProvider;
145
+ /** 折抵點數 */
146
+ redeemPoints?: number;
145
147
  }
146
148
  export interface SOUnavailableCartItem {
147
149
  menuItemType: 'product' | 'attribute';
@@ -1 +1 @@
1
- {"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAmBX;AAnBD,WAAY,gBAAgB;IAC1B,YAAY;IACZ,qDAAiC,CAAA;IACjC,eAAe;IACf,iEAA6C,CAAA;IAC7C,WAAW;IACX,+CAA2B,CAAA;IAC3B,aAAa;IACb,mDAA+B,CAAA;IAC/B,YAAY;IACZ,uDAAmC,CAAA;IACnC,gBAAgB;IAChB,uDAAmC,CAAA;IACnC,YAAY;IACZ,6DAAyC,CAAA;IACzC,YAAY;IACZ,2DAAuC,CAAA;IACvC,cAAc;IACd,2DAAuC,CAAA;AACzC,CAAC,EAnBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAmB3B;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAsGD,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,sDAAmB,CAAA;IACnB,kEAA+B,CAAA;AACjC,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AAgCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
1
+ {"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAmBX;AAnBD,WAAY,gBAAgB;IAC1B,YAAY;IACZ,qDAAiC,CAAA;IACjC,eAAe;IACf,iEAA6C,CAAA;IAC7C,WAAW;IACX,+CAA2B,CAAA;IAC3B,aAAa;IACb,mDAA+B,CAAA;IAC/B,YAAY;IACZ,uDAAmC,CAAA;IACnC,gBAAgB;IAChB,uDAAmC,CAAA;IACnC,YAAY;IACZ,6DAAyC,CAAA;IACzC,YAAY;IACZ,2DAAuC,CAAA;IACvC,cAAc;IACd,2DAAuC,CAAA;AACzC,CAAC,EAnBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAmB3B;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAyGD,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,sDAAmB,CAAA;IACnB,kEAA+B,CAAA;AACjC,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AAgCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.39.1",
3
+ "version": "0.40.0-alpha.0",
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": {