@trusted-solutions/sdit.models 0.28.0-alpha.7 → 0.28.0-alpha.9
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.
|
@@ -108,6 +108,14 @@ export interface SOGetStoreInfoResponse {
|
|
|
108
108
|
* @Default false
|
|
109
109
|
*/
|
|
110
110
|
storeDeliveryEnabled: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* 外送費 @Default 0
|
|
113
|
+
*/
|
|
114
|
+
storeDeliveryCharge: number;
|
|
115
|
+
/**
|
|
116
|
+
* 免外送費門檻 @Default 0
|
|
117
|
+
*/
|
|
118
|
+
storeDeliveryFreeThresholdAmount: number;
|
|
111
119
|
/**
|
|
112
120
|
* 內用桌ID
|
|
113
121
|
*/
|
|
@@ -144,6 +152,7 @@ export interface SOGetStoreMenuResponse {
|
|
|
144
152
|
export interface SOValidateMutationRequest {
|
|
145
153
|
storeId: string;
|
|
146
154
|
traceId: string;
|
|
155
|
+
serveType: ServeType;
|
|
147
156
|
/**
|
|
148
157
|
* 預計取餐時間 timestamp ms
|
|
149
158
|
* 不給值 = 盡快
|
|
@@ -169,6 +178,10 @@ export interface SOValidateMutationResponse {
|
|
|
169
178
|
* 總折扣金額
|
|
170
179
|
*/
|
|
171
180
|
totalDiscountAmount: number;
|
|
181
|
+
/**
|
|
182
|
+
* 外送費
|
|
183
|
+
*/
|
|
184
|
+
deliveryCharge?: number;
|
|
172
185
|
/**
|
|
173
186
|
* 結帳金額
|
|
174
187
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAaX;AAbD,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;AACrC,CAAC,EAbW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAa3B;AAmDD,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,gBAaX;AAbD,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;AACrC,CAAC,EAbW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAa3B;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA0FD,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;AA8BD,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
|
@@ -94,7 +94,9 @@ export interface Order extends BaseOrder {
|
|
|
94
94
|
items: OrderItem[];
|
|
95
95
|
/** sigma(items.amount) */
|
|
96
96
|
subtotal: number;
|
|
97
|
-
/**
|
|
97
|
+
/** 外送費 */
|
|
98
|
+
deliveryCharge?: number;
|
|
99
|
+
/** subtotal - sigma(discount.discountReferences.orderItemId === null) + deliveryCharge */
|
|
98
100
|
totalAmount: number;
|
|
99
101
|
salesAmountExcludeTax: number;
|
|
100
102
|
exemptTaxSalesAmount: number;
|
package/models/store.d.ts
CHANGED
|
@@ -165,6 +165,10 @@ export interface Store {
|
|
|
165
165
|
onlineAvailableReservedDays?: number;
|
|
166
166
|
/** 線上點餐開放外送 */
|
|
167
167
|
onlineStoreDeliveryEnabled?: boolean;
|
|
168
|
+
/** 線上點餐外送費 */
|
|
169
|
+
onlineStoreDeliveryCharge?: number;
|
|
170
|
+
/** 線上點餐免外送費訂單金額門檻 */
|
|
171
|
+
onlineStoreDeliveryFreeThresholdAmount?: number;
|
|
168
172
|
}
|
|
169
173
|
export interface SimpleStore {
|
|
170
174
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.28.0-alpha.
|
|
3
|
+
"version": "0.28.0-alpha.9",
|
|
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": {
|