@trusted-solutions/sdit.models 0.45.0-alpha.1 → 0.46.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.
@@ -212,6 +212,7 @@ export interface SOValidateMutationRequest {
212
212
  */
213
213
  expectedPickupAt?: number;
214
214
  cart: SOValidateCart;
215
+ isUsePoints?: boolean;
215
216
  }
216
217
  /**
217
218
  * @throw `SOOrderError`
@@ -240,9 +241,17 @@ export interface SOValidateMutationResponse {
240
241
  */
241
242
  totalAmount: number;
242
243
  /**
243
- * 可使用點數
244
+ * 剩餘總點數
244
245
  */
245
246
  pointsBalance?: number;
247
+ /**
248
+ * 本次折抵點數
249
+ */
250
+ usedPoints?: number;
251
+ /**
252
+ * 本次折抵金額
253
+ */
254
+ pointsDiscountAmount?: number;
246
255
  }
247
256
  /*******************************/
248
257
  /*******************************/
@@ -271,6 +280,8 @@ export interface SOSendOrderRequest {
271
280
  tableId?: string;
272
281
  /** 折抵點數 */
273
282
  points?: CustomerPointDetail;
283
+ /** 是否折抵點數 */
284
+ isUsePoints?: boolean;
274
285
  }
275
286
  /**
276
287
  * @throw `SOOrderError`
package/models/order.d.ts CHANGED
@@ -77,6 +77,7 @@ export interface Order extends BaseOrder {
77
77
  source: OrderSourceType;
78
78
  status?: OrderStatus;
79
79
  numberOfCustomers?: number;
80
+ customerCognitoId?: string;
80
81
  customerId?: string;
81
82
  customer?: Customer;
82
83
  serveType: ServeType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.45.0-alpha.1",
3
+ "version": "0.46.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": {