@pisell/pisellos 2.2.246 → 2.2.248
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/dist/modules/Order/index.d.ts +5 -0
- package/dist/modules/Order/index.js +250 -138
- package/dist/modules/Order/types.d.ts +1 -0
- package/dist/modules/Payment/walletpass.js +1 -1
- package/dist/server/utils/small-ticket.d.ts +1 -0
- package/dist/server/utils/small-ticket.js +179 -53
- package/dist/solution/BaseSales/index.js +11 -6
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/lib/model/strategy/adapter/promotion/index.js +0 -49
- package/lib/modules/Order/index.d.ts +5 -0
- package/lib/modules/Order/index.js +125 -15
- package/lib/modules/Order/types.d.ts +1 -0
- package/lib/modules/Payment/walletpass.js +1 -1
- package/lib/server/utils/small-ticket.d.ts +1 -0
- package/lib/server/utils/small-ticket.js +119 -12
- package/lib/solution/BaseSales/index.js +21 -6
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
26
26
|
private giftSelectResolver;
|
|
27
27
|
/** applyPromotion 递归保护 flag(写路径同步调 applyPromotion,禁止重入) */
|
|
28
28
|
private isApplyingPromotion;
|
|
29
|
+
/** 商品曾应用过客户券卡,客户变更剥离后需强制跑一次 calcDiscount 复位价格 */
|
|
30
|
+
private hasActiveCustomerBoundDiscount;
|
|
29
31
|
/** 最近一次 applyPromotion 的未满足促销提示 */
|
|
30
32
|
private lastUnfulfilledPromotions;
|
|
31
33
|
/** 最近一次 applyPromotion 的赠品操作 diff(debug / SDK 读取使用) */
|
|
@@ -258,6 +260,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
258
260
|
updateTempOrderContactsInfo(contactsInfo: Record<string, any> | null): Record<string, any> | null;
|
|
259
261
|
private buildTempOrderCustomer;
|
|
260
262
|
private isCustomerBoundDiscount;
|
|
263
|
+
private productHasCustomerBoundDiscount;
|
|
264
|
+
private shouldSkipDiscountCalculation;
|
|
261
265
|
private clearCustomerBoundDiscounts;
|
|
262
266
|
/**
|
|
263
267
|
* 更新当前 tempOrder 的客户协议字段。
|
|
@@ -476,6 +480,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
476
480
|
recalcOnHydrate?: boolean;
|
|
477
481
|
}): Promise<OrderTempOrder>;
|
|
478
482
|
private normalizeTempOrderForRuntime;
|
|
483
|
+
private hydrateLinkedBookingIdentity;
|
|
479
484
|
private pickHydratedDisplayText;
|
|
480
485
|
private formatHydratedNamePair;
|
|
481
486
|
private buildHydratedProductOptionString;
|