@trusted-solutions/sdit.models 0.61.0-alpha.6 → 0.62.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.
|
@@ -242,6 +242,8 @@ export interface SOValidateMutationRequest {
|
|
|
242
242
|
expectedPickupAt?: number;
|
|
243
243
|
cart: SOValidateCart;
|
|
244
244
|
isUsePoints?: boolean;
|
|
245
|
+
/** 要套用的會員優惠券 ID */
|
|
246
|
+
memberCouponId?: string;
|
|
245
247
|
}
|
|
246
248
|
/**
|
|
247
249
|
* @throw `SOOrderError`
|
|
@@ -249,6 +251,8 @@ export interface SOValidateMutationRequest {
|
|
|
249
251
|
export interface SOValidateMutationResponse {
|
|
250
252
|
storeId: string;
|
|
251
253
|
traceId: string;
|
|
254
|
+
/** 目前套用的會員優惠券 ID */
|
|
255
|
+
memberCouponId?: string;
|
|
252
256
|
/**
|
|
253
257
|
* 小計
|
|
254
258
|
*/
|
|
@@ -302,6 +306,8 @@ export interface SOValidateMutationResponse {
|
|
|
302
306
|
* 是否有折扣錯誤
|
|
303
307
|
*/
|
|
304
308
|
discountErrorMsg?: string;
|
|
309
|
+
/** 目前套用的會員優惠券套用失敗原因 */
|
|
310
|
+
memberCouponErrorMsg?: string;
|
|
305
311
|
}
|
|
306
312
|
/*******************************/
|
|
307
313
|
/*******************************/
|
|
@@ -310,6 +316,8 @@ export interface SOSendOrderRequest {
|
|
|
310
316
|
serveType: ServeType;
|
|
311
317
|
eater: SOEater;
|
|
312
318
|
cart: SOValidateCart;
|
|
319
|
+
/** 要套用的會員優惠券 ID */
|
|
320
|
+
memberCouponId?: string;
|
|
313
321
|
/**
|
|
314
322
|
* 是否為現場付款
|
|
315
323
|
* 選擇現場付款的訂單,會馬上成立無法再改付款方式。
|
|
@@ -98,6 +98,11 @@ export interface SOOrder {
|
|
|
98
98
|
customerCognitoId?: string;
|
|
99
99
|
/** 訂購人在店家的顧客Id */
|
|
100
100
|
customerId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* 顧客想套用、但本單未必已實際套用在 discount.discountReferences 的會員優惠券 ID
|
|
103
|
+
* 例如櫃檯付款時,可交由 POS 重新驗證並套用
|
|
104
|
+
*/
|
|
105
|
+
requestedMemberCouponId?: string;
|
|
101
106
|
/** 訂購人 */
|
|
102
107
|
eater: SOEater;
|
|
103
108
|
/** 品項們 */
|
|
@@ -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;AA2DD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;
|
|
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;AA2DD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAuHD,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;AAuCD,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/models/order.d.ts
CHANGED
|
@@ -80,6 +80,11 @@ export interface Order extends BaseOrder {
|
|
|
80
80
|
customerCognitoId?: string;
|
|
81
81
|
customerId?: string;
|
|
82
82
|
customer?: Customer;
|
|
83
|
+
/**
|
|
84
|
+
* 顧客想套用、但本單未必已實際套用在 discount.discountReferences 的會員優惠券 ID
|
|
85
|
+
* 例如櫃檯付款時,可交由 POS 重新驗證並套用
|
|
86
|
+
*/
|
|
87
|
+
requestedMemberCouponId?: string;
|
|
83
88
|
serveType: ServeType;
|
|
84
89
|
tableName: string;
|
|
85
90
|
/** If `serveConfig.hasTableEntity === true`, tableId should not be undefined */
|
|
@@ -471,7 +476,10 @@ export interface DiscountReference {
|
|
|
471
476
|
quantity: number;
|
|
472
477
|
discountStartedAt: number;
|
|
473
478
|
discountEndedAt: number;
|
|
479
|
+
/** 兌換的memberCouponId */
|
|
474
480
|
code?: string;
|
|
481
|
+
/** 當兌換失敗時,此時間會是undefined */
|
|
482
|
+
redeemedAt?: number;
|
|
475
483
|
orderItemId?: string;
|
|
476
484
|
discountDetails?: DiscountDetails[];
|
|
477
485
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.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": {
|