@trusted-solutions/sdit.models 0.28.0-alpha.5 → 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
  */
@@ -103,6 +103,7 @@ export interface SOOrder {
103
103
  subtotal: number;
104
104
  discount: OrderDiscount;
105
105
  totalDiscountAmount: number;
106
+ deliveryCharge?: number;
106
107
  taxAmount: number;
107
108
  salesAmountExcludeTax: number;
108
109
  exemptTaxSalesAmount: number;
@@ -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;AAwFD,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"}
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
@@ -58,6 +58,7 @@ export interface BaseOrder {
58
58
  /**
59
59
  * 線上訂單。
60
60
  * 若消費者要打統編,會記錄在這裡
61
+ * @deprecated 一律記在 `onlineBuyer.buyerId`
61
62
  */
62
63
  buyerId?: string;
63
64
  /** 線上訂購人 */
@@ -93,7 +94,9 @@ export interface Order extends BaseOrder {
93
94
  items: OrderItem[];
94
95
  /** sigma(items.amount) */
95
96
  subtotal: number;
96
- /** subtotal - sigma(discount.discountReferences.orderItemId === null) */
97
+ /** 外送費 */
98
+ deliveryCharge?: number;
99
+ /** subtotal - sigma(discount.discountReferences.orderItemId === null) + deliveryCharge */
97
100
  totalAmount: number;
98
101
  salesAmountExcludeTax: number;
99
102
  exemptTaxSalesAmount: number;
@@ -155,17 +158,11 @@ export interface Order extends BaseOrder {
155
158
  message: string;
156
159
  }[];
157
160
  /**
158
- * 線上訂單。若消費者要打統編,會記錄在這裡
161
+ * 線上訂單。
162
+ * 若消費者要打統編,會記錄在這裡
163
+ * @deprecated 一律記在 `onlineBuyer.buyerId`
159
164
  */
160
165
  buyerId?: string;
161
- /**
162
- * 線上訂單。若消費者要載具,會記錄在這裡
163
- */
164
- mobileCarrierId?: string;
165
- /**
166
- * 線上訂單。若消費者要捐贈,會記錄在這裡
167
- */
168
- loveCode?: string;
169
166
  /** 線上訂購人 */
170
167
  onlineBuyer?: SOEater;
171
168
  /** 線上團購所有人 */
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/models/table.d.ts CHANGED
@@ -17,6 +17,7 @@ export interface MapTable extends BaseTable {
17
17
  x: number;
18
18
  y: number;
19
19
  capacity?: number;
20
+ sort?: number;
20
21
  }
21
22
  export declare enum ServeInputType {
22
23
  AnyString = "AnyString",
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/table.ts"],"names":[],"mappings":";;;AAyBA,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;AACjB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/table.ts"],"names":[],"mappings":";;;AA0BA,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;AACjB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.28.0-alpha.5",
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": {