@pisell/pisellos 2.3.23 → 2.3.25
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/model/strategy/adapter/promotion/index.js +9 -0
- package/dist/modules/Order/index.d.ts +2 -1
- package/dist/modules/Order/index.js +606 -544
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/solution/BaseSales/index.js +37 -13
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.js +21 -5
- package/lib/model/strategy/adapter/promotion/index.js +49 -0
- package/lib/modules/Order/index.d.ts +2 -1
- package/lib/modules/Order/index.js +36 -8
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/solution/BaseSales/index.js +19 -0
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.js +18 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 导出评估器
|
|
2
|
+
export { PromotionEvaluator } from "./evaluator";
|
|
3
|
+
|
|
4
|
+
// 导出适配器
|
|
5
|
+
export { PromotionAdapter } from "./adapter";
|
|
6
|
+
export { default } from "./adapter";
|
|
7
|
+
|
|
8
|
+
// 导出策略配置示例常量
|
|
9
|
+
export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY } from "./examples";
|
|
@@ -75,6 +75,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
75
75
|
apply?: boolean;
|
|
76
76
|
}): Promise<Discount[]>;
|
|
77
77
|
getDiscountList(): Discount[];
|
|
78
|
+
private syncScannedDiscountsToOriginalDiscountList;
|
|
78
79
|
private ensureEditDiscountConfigForProductChange;
|
|
79
80
|
scanCode(code: string, customerId?: number): Promise<{
|
|
80
81
|
isAvailable: boolean;
|
|
@@ -464,7 +465,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
464
465
|
generateIdempotencyToken(): string;
|
|
465
466
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
466
467
|
createOrder(params: CommitOrderParams['query']): {
|
|
467
|
-
type: "
|
|
468
|
+
type: "appointment_booking" | "virtual";
|
|
468
469
|
platform: string;
|
|
469
470
|
sales_channel: string;
|
|
470
471
|
order_sales_channel: string;
|