@trusted-solutions/sdit.models 0.49.0-alpha.9 → 0.50.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/enums/invoice-provider.d.ts +2 -0
- package/enums/invoice-provider.js +2 -0
- package/enums/invoice-provider.js.map +1 -1
- package/models/menu.d.ts +1 -0
- package/models/online-ordering.d.ts +3 -0
- package/models/online-ordering.js.map +1 -1
- package/models/order.d.ts +19 -0
- package/package.json +1 -1
|
@@ -13,6 +13,8 @@ var InvoiceProvider;
|
|
|
13
13
|
InvoiceProvider["posky"] = "posky";
|
|
14
14
|
/** 汎宇 */
|
|
15
15
|
InvoiceProvider["universalec"] = "universalec";
|
|
16
|
+
/** 專加 */
|
|
17
|
+
InvoiceProvider["prox"] = "prox";
|
|
16
18
|
/** 假資料 */
|
|
17
19
|
InvoiceProvider["mock"] = "mock";
|
|
18
20
|
})(InvoiceProvider = exports.InvoiceProvider || (exports.InvoiceProvider = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-provider.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/invoice-provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"invoice-provider.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/invoice-provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAeX;AAfD,WAAY,eAAe;IACzB,SAAS;IACT,wCAAqB,CAAA;IACrB,SAAS;IACT,kCAAe,CAAA;IACf,wBAAwB;IACxB,oCAAiB,CAAA;IACjB,kBAAkB;IAClB,kCAAe,CAAA;IACf,SAAS;IACT,8CAA2B,CAAA;IAC3B,SAAS;IACT,gCAAa,CAAA;IACb,UAAU;IACV,gCAAa,CAAA;AACf,CAAC,EAfW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAe1B"}
|
package/models/menu.d.ts
CHANGED
|
@@ -181,6 +181,8 @@ export interface SOValidateCartItem {
|
|
|
181
181
|
quantity: number;
|
|
182
182
|
selectedAttributes: SOValidateCartItemAttribute[];
|
|
183
183
|
notes?: string;
|
|
184
|
+
/** 總店商品Id */
|
|
185
|
+
mainStoreProductId?: string;
|
|
184
186
|
}
|
|
185
187
|
export interface SOValidateCartItemAttribute {
|
|
186
188
|
attributeCategoryId: string;
|
|
@@ -235,6 +237,7 @@ export interface SOPublicProduct {
|
|
|
235
237
|
condition?: DiscountLabel;
|
|
236
238
|
benefit: DiscountLabel;
|
|
237
239
|
}[];
|
|
240
|
+
mainStoreProductId?: string;
|
|
238
241
|
}
|
|
239
242
|
export interface DiscountLabel {
|
|
240
243
|
i18nKey: string;
|
|
@@ -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;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA4GD,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;
|
|
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;AAmDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA4GD,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;AAkCD,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
|
@@ -235,6 +235,12 @@ export interface OrderItem {
|
|
|
235
235
|
checkedOutBy?: Operator;
|
|
236
236
|
/** 點這個orderItem的人的ID,對應到Order.onlineBuyers */
|
|
237
237
|
onlineBuyerId?: string;
|
|
238
|
+
/** 全單折扣分攤 */
|
|
239
|
+
sharedOrdersDiscountPrice?: number;
|
|
240
|
+
/** 品項折扣分攤 */
|
|
241
|
+
sharedItemDiscountAmount?: number;
|
|
242
|
+
/** 是否贈品/加購品 */
|
|
243
|
+
isAddOn?: number;
|
|
238
244
|
}
|
|
239
245
|
export interface OrderItemChangelog {
|
|
240
246
|
timestamp: number;
|
|
@@ -431,6 +437,7 @@ export interface AggregationInfo {
|
|
|
431
437
|
}
|
|
432
438
|
export interface OrderDiscount {
|
|
433
439
|
discountReferences: DiscountReference[];
|
|
440
|
+
itemsDiscountDetail?: Record<string, ItemDiscountDetail>;
|
|
434
441
|
}
|
|
435
442
|
export interface DiscountReference {
|
|
436
443
|
type: DiscountModuleTypeEnum;
|
|
@@ -442,6 +449,18 @@ export interface DiscountReference {
|
|
|
442
449
|
discountEndedAt: number;
|
|
443
450
|
code?: string;
|
|
444
451
|
orderItemId?: string;
|
|
452
|
+
discountDetails?: DiscountDetails[];
|
|
453
|
+
}
|
|
454
|
+
export interface DiscountDetails {
|
|
455
|
+
productId: string;
|
|
456
|
+
type: 0 | 1;
|
|
457
|
+
quantity: number;
|
|
458
|
+
}
|
|
459
|
+
export interface ItemDiscountDetail {
|
|
460
|
+
id: string;
|
|
461
|
+
sharedItemDiscountAmount: number;
|
|
462
|
+
sharedOrderDiscountAmount: number;
|
|
463
|
+
addonType: number;
|
|
445
464
|
}
|
|
446
465
|
export interface ClosingSalesDetail {
|
|
447
466
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.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": {
|