@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.
@@ -9,6 +9,8 @@ export declare enum InvoiceProvider {
9
9
  posky = "posky",
10
10
  /** 汎宇 */
11
11
  universalec = "universalec",
12
+ /** 專加 */
13
+ prox = "prox",
12
14
  /** 假資料 */
13
15
  mock = "mock"
14
16
  }
@@ -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,eAaX;AAbD,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,UAAU;IACV,gCAAa,CAAA;AACf,CAAC,EAbW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAa1B"}
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
@@ -60,6 +60,7 @@ export interface Product {
60
60
  discountModules?: ItemDiscountModule[];
61
61
  storeTemplateId?: string;
62
62
  description?: Language[];
63
+ mainStoreProductId?: string;
63
64
  }
64
65
  export interface ProductAttribute {
65
66
  id?: string;
@@ -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;AAgCD,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,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.49.0-alpha.9",
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": {