@trusted-solutions/sdit.models 0.45.0-alpha.0 → 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.
- package/lambda/online-ordering.d.ts +12 -1
- package/models/customer.d.ts +2 -0
- package/models/order.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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/customer.d.ts
CHANGED
package/models/order.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.
|
|
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": {
|