@trusted-solutions/sdit.models 0.28.0-alpha.7 → 0.28.0-alpha.8
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
|
*/
|
|
@@ -169,6 +177,10 @@ export interface SOValidateMutationResponse {
|
|
|
169
177
|
* 總折扣金額
|
|
170
178
|
*/
|
|
171
179
|
totalDiscountAmount: number;
|
|
180
|
+
/**
|
|
181
|
+
* 外送費
|
|
182
|
+
*/
|
|
183
|
+
deliveryCharge?: number;
|
|
172
184
|
/**
|
|
173
185
|
* 結帳金額
|
|
174
186
|
*/
|
|
@@ -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.8",
|
|
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": {
|