@pisell/pisellos 2.2.196 → 2.2.198

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.
@@ -818,7 +818,7 @@ var Server = /*#__PURE__*/function () {
818
818
  _context11.next = 29;
819
819
  break;
820
820
  }
821
- _this.logError('handleOrderSalesDetail: 后端返回订单为空', {
821
+ _this.logInfo('handleOrderSalesDetail: 后端返回订单为空', {
822
822
  lookup: lookup,
823
823
  backendPath: backendPath
824
824
  });
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
311
311
  date: string;
312
312
  status: string;
313
313
  week: string;
314
- weekNum: 0 | 2 | 1 | 6 | 3 | 5 | 4;
314
+ weekNum: 0 | 2 | 1 | 6 | 3 | 4 | 5;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -1,49 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/model/strategy/adapter/promotion/index.ts
30
- var promotion_exports = {};
31
- __export(promotion_exports, {
32
- BUY_X_GET_Y_FREE_STRATEGY: () => import_examples.BUY_X_GET_Y_FREE_STRATEGY,
33
- PromotionAdapter: () => import_adapter.PromotionAdapter,
34
- PromotionEvaluator: () => import_evaluator.PromotionEvaluator,
35
- X_ITEMS_FOR_Y_PRICE_STRATEGY: () => import_examples.X_ITEMS_FOR_Y_PRICE_STRATEGY,
36
- default: () => import_adapter2.default
37
- });
38
- module.exports = __toCommonJS(promotion_exports);
39
- var import_evaluator = require("./evaluator");
40
- var import_adapter = require("./adapter");
41
- var import_adapter2 = __toESM(require("./adapter"));
42
- var import_examples = require("./examples");
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- BUY_X_GET_Y_FREE_STRATEGY,
46
- PromotionAdapter,
47
- PromotionEvaluator,
48
- X_ITEMS_FOR_Y_PRICE_STRATEGY
49
- });
@@ -34,6 +34,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
34
34
  * BigSale 弹窗等短生命周期场景通过 setEnableTempOrderPersist(false) 关闭。
35
35
  */
36
36
  private draftPersistEnabled;
37
+ private collectHydratedEditDiscounts;
37
38
  /**
38
39
  * Populate `savedAmount` on each discount based on product-level discount details.
39
40
  * Only selected discounts get a non-zero value.
@@ -63,6 +64,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
63
64
  apply?: boolean;
64
65
  }): Promise<Discount[]>;
65
66
  getDiscountList(): Discount[];
67
+ private ensureEditDiscountConfigForProductChange;
66
68
  scanCode(code: string, customerId?: number): Promise<{
67
69
  isAvailable: boolean;
68
70
  discountList: Discount[];
@@ -147,11 +149,21 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
147
149
  private calculatePaidPaymentSummary;
148
150
  private calculatePaymentServiceFee;
149
151
  private calculatePaymentGapAmount;
152
+ private calculatePaymentRoundingAmount;
150
153
  private formatSummaryMetadataMoney;
151
154
  private syncSummaryProductMetadata;
152
155
  private calculateSummaryAmountGap;
153
156
  private getSummaryRefundAmount;
154
157
  private calculatePaymentTargetAmount;
158
+ private normalizeFingerprintMoney;
159
+ private normalizeFingerprintValue;
160
+ private buildProductFingerprintItem;
161
+ private buildOrderProductsFingerprint;
162
+ private buildProductStructuralFingerprintItem;
163
+ private buildOrderProductsStructuralFingerprint;
164
+ private getOriginalSalesSnapshot;
165
+ private restoreOriginalSnapshotIfProductsUnchanged;
166
+ private clearPersistedAmountFieldsForFullRecalc;
155
167
  private getPaymentTargetAmount;
156
168
  ensureTempOrder(): OrderTempOrder;
157
169
  restoreOrder(): OrderTempOrder;
@@ -186,6 +198,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
186
198
  updateTempOrderBuzzer(buzzer: string): string;
187
199
  updateTempOrderContactsInfo(contactsInfo: Record<string, any> | null): Record<string, any> | null;
188
200
  private buildTempOrderCustomer;
201
+ private isCustomerBoundDiscount;
202
+ private clearCustomerBoundDiscounts;
189
203
  /**
190
204
  * 更新当前 tempOrder 的客户协议字段。
191
205
  *
@@ -234,6 +248,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
234
248
  private shouldMergeProductToOrder;
235
249
  addProductToOrder(product: Partial<OrderProduct> & OrderProductIdentity, booking?: AddProductBookingInput): Promise<OrderProduct[]>;
236
250
  private hasGoodPassDiscount;
251
+ private getBundleRuntimeIdentity;
252
+ private preservePersistedBundlePriceFields;
237
253
  updateOrderProduct(params: UpdateOrderProductParams): Promise<OrderProduct[]>;
238
254
  updateOrderProductQuantity(params: UpdateOrderProductQuantityParams): Promise<OrderProduct[]>;
239
255
  updateOrderBooking(params: UpdateOrderBookingParams): any[];