@pisell/pisellos 2.3.191 → 2.3.193

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.
Files changed (62) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  2. package/dist/modules/BookingContext/index.d.ts +2 -2
  3. package/dist/modules/BookingContext/index.js +55 -25
  4. package/dist/modules/BookingContext/types.d.ts +2 -0
  5. package/dist/modules/Order/index.d.ts +13 -5
  6. package/dist/modules/Order/index.js +1053 -554
  7. package/dist/modules/Order/types.d.ts +20 -1
  8. package/dist/modules/Order/types.js +4 -0
  9. package/dist/modules/Order/utils.d.ts +3 -1
  10. package/dist/modules/Order/utils.js +5 -2
  11. package/dist/modules/ProductList/clientDataVariants.js +6 -2
  12. package/dist/modules/ProductList/index.d.ts +2 -0
  13. package/dist/modules/ProductList/index.js +125 -39
  14. package/dist/modules/ResourcePlanner/planner.js +5 -0
  15. package/dist/modules/Rules/index.js +30 -19
  16. package/dist/server/index.js +5 -2
  17. package/dist/solution/BaseSales/index.d.ts +14 -3
  18. package/dist/solution/BaseSales/index.js +285 -195
  19. package/dist/solution/BookingByStep/index.d.ts +2 -2
  20. package/dist/solution/UnifiedBookingSales/catalogQueryBatch.d.ts +21 -0
  21. package/dist/solution/UnifiedBookingSales/catalogQueryBatch.js +202 -0
  22. package/dist/solution/UnifiedBookingSales/index.d.ts +49 -1
  23. package/dist/solution/UnifiedBookingSales/index.js +2276 -902
  24. package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts +2 -0
  25. package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.js +4 -0
  26. package/dist/solution/UnifiedBookingSales/sessionResourceCache.d.ts +27 -0
  27. package/dist/solution/UnifiedBookingSales/sessionResourceCache.js +271 -0
  28. package/dist/solution/UnifiedBookingSales/types.d.ts +64 -1
  29. package/dist/solution/UnifiedBookingSales/types.js +7 -1
  30. package/dist/solution/UnifiedBookingSales/venueCatalogSession.d.ts +32 -0
  31. package/dist/solution/UnifiedBookingSales/venueCatalogSession.js +277 -0
  32. package/lib/modules/BookingContext/index.d.ts +2 -2
  33. package/lib/modules/BookingContext/index.js +42 -10
  34. package/lib/modules/BookingContext/types.d.ts +2 -0
  35. package/lib/modules/Order/index.d.ts +13 -5
  36. package/lib/modules/Order/index.js +208 -7
  37. package/lib/modules/Order/types.d.ts +20 -1
  38. package/lib/modules/Order/types.js +2 -0
  39. package/lib/modules/Order/utils.d.ts +3 -1
  40. package/lib/modules/Order/utils.js +5 -2
  41. package/lib/modules/ProductList/clientDataVariants.js +6 -2
  42. package/lib/modules/ProductList/index.d.ts +2 -0
  43. package/lib/modules/ProductList/index.js +56 -0
  44. package/lib/modules/ResourcePlanner/planner.js +4 -0
  45. package/lib/modules/Rules/index.js +19 -9
  46. package/lib/server/index.js +5 -1
  47. package/lib/solution/BaseSales/index.d.ts +14 -3
  48. package/lib/solution/BaseSales/index.js +67 -2
  49. package/lib/solution/BookingByStep/index.d.ts +2 -2
  50. package/lib/solution/UnifiedBookingSales/catalogQueryBatch.d.ts +21 -0
  51. package/lib/solution/UnifiedBookingSales/catalogQueryBatch.js +109 -0
  52. package/lib/solution/UnifiedBookingSales/index.d.ts +49 -1
  53. package/lib/solution/UnifiedBookingSales/index.js +872 -55
  54. package/lib/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts +2 -0
  55. package/lib/solution/UnifiedBookingSales/remoteOccupancyCache.js +2 -0
  56. package/lib/solution/UnifiedBookingSales/sessionResourceCache.d.ts +27 -0
  57. package/lib/solution/UnifiedBookingSales/sessionResourceCache.js +199 -0
  58. package/lib/solution/UnifiedBookingSales/types.d.ts +64 -1
  59. package/lib/solution/UnifiedBookingSales/types.js +4 -1
  60. package/lib/solution/UnifiedBookingSales/venueCatalogSession.d.ts +32 -0
  61. package/lib/solution/UnifiedBookingSales/venueCatalogSession.js +151 -0
  62. package/package.json +1 -1
@@ -487,11 +487,22 @@ export interface AddProductToOrderOptions {
487
487
  /** 发布后的订单/业务归属检查;只用于阻止旧异步收尾写入新单,不再校验截止或 revision。 */
488
488
  availabilityCommitTargetGuard?: () => boolean;
489
489
  }
490
+ /** Atomic replacement of one unsubmitted Party booking and its explicitly confirmed retail children. */
491
+ export interface ReplaceBookingProductWithRelatedRetailParams {
492
+ productLineUid: string;
493
+ product: Partial<OrderProduct> & OrderProductIdentity;
494
+ booking: AddProductBookingInput;
495
+ relatedRetailProducts: Array<Partial<OrderProduct> & OrderProductIdentity>;
496
+ availabilityCommitGuard: () => void;
497
+ availabilityCommitTargetGuard?: () => boolean;
498
+ }
490
499
  /**
491
500
  * 删除商品后的可选位置保持策略。
492
501
  * 预约合并行减量时仍删除最新真实行,再把剩余代表行移动到被删除代表行原位置。
493
502
  */
494
503
  export interface RemoveProductsFromOrderOptions {
504
+ /** Validate the selected row/cascade snapshot before mutation; may throw. Not called during finalization. */
505
+ beforeApply?: () => void;
495
506
  /** 自动购物车写入的订单归属检查;失效时不再变更或发布异步收尾结果。 */
496
507
  isCurrentOrder?: () => boolean;
497
508
  preserveDisplayPosition?: {
@@ -536,6 +547,13 @@ export interface UpdateOrderProductParams {
536
547
  */
537
548
  allow_booking_discount_reapply?: boolean;
538
549
  }
550
+ /** Opt-in atomic draft update for asynchronous re-quotation callers. */
551
+ export interface UpdateOrderProductsOptions {
552
+ /** Validate the quoted source snapshot immediately before publication; may throw. */
553
+ beforeApply?: () => void;
554
+ /** Order/business ownership only. Called after publication too; exclude old prices/quantities. */
555
+ isCurrentOrder?: () => boolean;
556
+ }
539
557
  /** 仅更新购物车行数量;行定位语义与 updateOrderProduct / removeProductFromOrder 保持一致 */
540
558
  export interface UpdateOrderProductQuantityParams extends OrderProductIdentity {
541
559
  num: number;
@@ -932,6 +950,7 @@ export interface OrderModuleAPI {
932
950
  updateTempOrderBuzzer: (buzzer: string) => string;
933
951
  updateTempOrderContactsInfo: (contactsInfo: Record<string, any> | null) => Record<string, any> | null;
934
952
  addProductToOrder: (product: Partial<OrderProduct> & OrderProductIdentity, booking?: AddProductBookingInput, options?: AddProductToOrderOptions) => Promise<OrderProduct[]>;
953
+ replaceBookingProductWithRelatedRetail: (params: ReplaceBookingProductWithRelatedRetailParams) => Promise<OrderProduct[]>;
935
954
  getSalesNotes: () => SalesNote[];
936
955
  createSalesNotesMutationSnapshot: () => SalesNotesMutationSnapshot;
937
956
  restoreSalesNotesMutationSnapshot: (snapshot: SalesNotesMutationSnapshot) => void;
@@ -940,7 +959,7 @@ export interface OrderModuleAPI {
940
959
  clearSalesNotes: () => Promise<void>;
941
960
  updateOrderProduct: (params: UpdateOrderProductParams) => Promise<OrderProduct[]>;
942
961
  /** 批量更新购物车行,末尾仅触发一次促销重算与 summary 刷新 */
943
- updateOrderProducts: (paramsList: UpdateOrderProductParams[]) => Promise<OrderProduct[]>;
962
+ updateOrderProducts: (paramsList: UpdateOrderProductParams[], options?: UpdateOrderProductsOptions) => Promise<OrderProduct[]>;
944
963
  updateOrderProductQuantity: (params: UpdateOrderProductQuantityParams, options?: {
945
964
  isCurrentOrder?: () => boolean;
946
965
  }) => Promise<OrderProduct[]>;
@@ -77,6 +77,8 @@ export var OrderHooks = /*#__PURE__*/function (OrderHooks) {
77
77
  * 避免步进器修改数量改变该组展示位置。
78
78
  */
79
79
 
80
+ /** Atomic replacement of one unsubmitted Party booking and its explicitly confirmed retail children. */
81
+
80
82
  /**
81
83
  * 删除商品后的可选位置保持策略。
82
84
  * 预约合并行减量时仍删除最新真实行,再把剩余代表行移动到被删除代表行原位置。
@@ -84,6 +86,8 @@ export var OrderHooks = /*#__PURE__*/function (OrderHooks) {
84
86
 
85
87
  /** 更新购物车行:仅传 SKU 时命中同 SKU 第一行;多行同 SKU 须传 unique_identification_number / 选项指纹等 */
86
88
 
89
+ /** Opt-in atomic draft update for asynchronous re-quotation callers. */
90
+
87
91
  /** 仅更新购物车行数量;行定位语义与 updateOrderProduct / removeProductFromOrder 保持一致 */
88
92
 
89
93
  /**
@@ -128,7 +128,9 @@ export declare function getBundleSellingMagnitude(bundle: Record<string, any> |
128
128
  *
129
129
  * Rules 钩子契约(hook_adapt 方案,Rules 内部保持不变):
130
130
  * - `getProduct.price` / `getProduct.original_price` 回传 **source-level 主价**
131
- * (`metadata.source_product_price`)。Rules 内部 `getProductTotalPrice` /
131
+ * (`metadata.source_product_price`);买赠行的 `price` 为 0,`original_price` 仍保留 source。
132
+ * 赠品基础价已被赠送优惠抵扣,只有收费 option / bundle 继续按卡券规则计算。
133
+ * Rules 内部 `getProductTotalPrice` /
132
134
  * `getProductOriginTotalPrice` 会自行叠加 option + bundle,喂 source 可避免 option 双加。
133
135
  * - `getProduct.total` = `selling_price × num`(行 composite × num),与 Rules 内部产出的
134
136
  * total(source + option + bundle)对齐。
@@ -597,7 +597,9 @@ export function getBundleSellingMagnitude(bundle) {
597
597
  *
598
598
  * Rules 钩子契约(hook_adapt 方案,Rules 内部保持不变):
599
599
  * - `getProduct.price` / `getProduct.original_price` 回传 **source-level 主价**
600
- * (`metadata.source_product_price`)。Rules 内部 `getProductTotalPrice` /
600
+ * (`metadata.source_product_price`);买赠行的 `price` 为 0,`original_price` 仍保留 source。
601
+ * 赠品基础价已被赠送优惠抵扣,只有收费 option / bundle 继续按卡券规则计算。
602
+ * Rules 内部 `getProductTotalPrice` /
601
603
  * `getProductOriginTotalPrice` 会自行叠加 option + bundle,喂 source 可避免 option 双加。
602
604
  * - `getProduct.total` = `selling_price × num`(行 composite × num),与 Rules 内部产出的
603
605
  * total(source + option + bundle)对齐。
@@ -901,7 +903,8 @@ export function createDefaultOrderRulesHooks(getBookings, getHolderRelations) {
901
903
  _id: (_product$metadata7 = product.metadata) !== null && _product$metadata7 !== void 0 && _product$metadata7.unique_identification_number ? "".concat(product.product_id, "_").concat(product.product_variant_id, "_").concat(product.metadata.unique_identification_number) : "".concat(product.product_id, "_").concat(product.product_variant_id, "_").concat(buildProductLineFingerprint(getProductSkuOptions(product), product.product_bundle)),
902
904
  // Rules 内部 getProductTotalPrice / getProductOriginTotalPrice 会各自再叠加 bundle + option,
903
905
  // 所以这里必须喂 source-level(不含 option、不含 bundle、不含折扣)单价,避免双加 option。
904
- price: sourcePrice,
906
+ // 赠品基础价不再参与卡券;source 元数据保留原价,供后续与赠送优惠相抵。
907
+ price: metadataAny._giftInfo ? '0.00' : sourcePrice,
905
908
  // total / origin_total 使用 composite × num,跟 Rules 内部产出的 total 对齐(含 option + bundle)。
906
909
  total: new Decimal(product.selling_price || 0).times(product.num || 1).toNumber(),
907
910
  origin_total: new Decimal(product.original_price || product.selling_price || 0).times(product.num || 1).toNumber(),
@@ -39,7 +39,9 @@ function collectReferencedRuleIds(products) {
39
39
  variants.forEach(function (variant) {
40
40
  var _variant$data_variant;
41
41
  var id = String((_variant$data_variant = variant === null || variant === void 0 ? void 0 : variant.data_variant_rule_id) !== null && _variant$data_variant !== void 0 ? _variant$data_variant : '').trim();
42
- if (id) ids.add(id);
42
+ // Rule 0 is the default-variant sentinel, not a strategy to load.
43
+ // Keep the evaluator responsible for its pricing/settlement semantics.
44
+ if (id && Number(id) !== 0) ids.add(id);
43
45
  });
44
46
  };
45
47
  products.forEach(function (product) {
@@ -60,13 +62,15 @@ function isEvaluatorReady(evaluator, products) {
60
62
  // A referenced Data Variant cannot be evaluated authoritatively until those
61
63
  // configs have arrived. Evaluators without this capability remain compatible.
62
64
  if (typeof evaluator.getStrategyConfigs === 'function') {
65
+ var referencedRuleIds = collectReferencedRuleIds(products);
66
+ if (referencedRuleIds.size === 0) return true;
63
67
  var configs = evaluator.getStrategyConfigs();
64
68
  if (!Array.isArray(configs) || configs.length === 0) return false;
65
69
  var availableRuleIds = new Set(configs.map(function (config) {
66
70
  var _config$metadata$id, _config$metadata;
67
71
  return String((_config$metadata$id = config === null || config === void 0 || (_config$metadata = config.metadata) === null || _config$metadata === void 0 ? void 0 : _config$metadata.id) !== null && _config$metadata$id !== void 0 ? _config$metadata$id : '').trim();
68
72
  }).filter(Boolean));
69
- return Array.from(collectReferencedRuleIds(products)).every(function (id) {
73
+ return Array.from(referencedRuleIds).every(function (id) {
70
74
  return availableRuleIds.has(id);
71
75
  });
72
76
  }
@@ -37,6 +37,8 @@ export declare class ProductList extends BaseModule implements Module {
37
37
  schedule_date?: string;
38
38
  channel?: string;
39
39
  }): Promise<any>;
40
+ /** Venue-only raw, complete pool load. No date/customer evaluation and no shared catalog publication. */
41
+ loadVenueCatalogPool(params?: Pick<ProductListLoadProductsParams, 'product_ids' | 'collection' | 'category_ids' | 'extension_type' | 'cacheId'>): Promise<ProductData[]>;
40
42
  /**
41
43
  * Remember raw remote product records before client-side Data Variant
42
44
  * evaluation. Quote-only reads can then always start from a clean baseline.
@@ -411,11 +411,97 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
411
411
  return _loadProductsPrice.apply(this, arguments);
412
412
  }
413
413
  return loadProductsPrice;
414
+ }() /** Venue-only raw, complete pool load. No date/customer evaluation and no shared catalog publication. */
415
+ }, {
416
+ key: "loadVenueCatalogPool",
417
+ value: (function () {
418
+ var _loadVenueCatalogPool = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
419
+ var _this$otherParams5, _params$product_ids, _params$category_ids, _params$extension_typ, _ref4, _data$total;
420
+ var params,
421
+ channelMap,
422
+ channel,
423
+ response,
424
+ data,
425
+ total,
426
+ _args7 = arguments;
427
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
428
+ while (1) switch (_context7.prev = _context7.next) {
429
+ case 0:
430
+ params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
431
+ channelMap = {
432
+ online_store: 'online-store',
433
+ scan_to_order: 'online-store',
434
+ 'scan-to-order': 'online-store',
435
+ scan_to_order_2: 'online-store',
436
+ scan_to_order_3: 'scantoorder3'
437
+ };
438
+ channel = (_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 ? void 0 : _this$otherParams5.channel;
439
+ _context7.next = 5;
440
+ return this.request.post('/product/query', _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
441
+ // The customer endpoint otherwise filters out future/variant members.
442
+ open_quotation: 0,
443
+ open_bundle: 1,
444
+ with: _toConsumableArray(PRODUCT_QUERY_DATA_VARIANT_RELATIONS),
445
+ with_count: ['bundleGroup', 'optionGroup'],
446
+ with_schedule: 1,
447
+ status: 'published',
448
+ num: 500,
449
+ skip: 1,
450
+ is_eject: 1,
451
+ // Channel is stable for this runtime owner and remains a server publication
452
+ // filter. Date/customer/menu membership and pricing are evaluated locally.
453
+ application_code: typeof channel === 'string' ? channelMap[channel] || channel : channel
454
+ }, (_params$product_ids = params.product_ids) !== null && _params$product_ids !== void 0 && _params$product_ids.length ? {
455
+ ids: params.product_ids
456
+ } : {}), params.collection ? {
457
+ collection: params.collection
458
+ } : {}), (_params$category_ids = params.category_ids) !== null && _params$category_ids !== void 0 && _params$category_ids.length ? {
459
+ category_ids: params.category_ids
460
+ } : {}), (_params$extension_typ = params.extension_type) !== null && _params$extension_typ !== void 0 && _params$extension_typ.length ? {
461
+ extension_type: params.extension_type
462
+ } : {}), {}, {
463
+ front_end_cache_id: params.cacheId
464
+ }), {
465
+ useCache: false,
466
+ customToast: function customToast() {}
467
+ });
468
+ case 5:
469
+ response = _context7.sent;
470
+ data = response === null || response === void 0 ? void 0 : response.data;
471
+ if (!((response === null || response === void 0 ? void 0 : response.status) === false || (response === null || response === void 0 ? void 0 : response.code) != null && Number(response.code) !== 200 || !Array.isArray(data === null || data === void 0 ? void 0 : data.list))) {
472
+ _context7.next = 9;
473
+ break;
474
+ }
475
+ throw Object.assign(new Error((response === null || response === void 0 ? void 0 : response.message) || 'The complete venue product pool could not be loaded.'), {
476
+ code: 'VENUE_CATALOG_LOAD_FAILED'
477
+ });
478
+ case 9:
479
+ total = (_ref4 = (_data$total = data.total) !== null && _data$total !== void 0 ? _data$total : data.total_count) !== null && _ref4 !== void 0 ? _ref4 : data.total_num;
480
+ if (!(total != null && Number.isFinite(Number(total)) && Number(total) > data.list.length || total == null && data.list.length >= 500)) {
481
+ _context7.next = 12;
482
+ break;
483
+ }
484
+ throw Object.assign(new Error('The venue product pool is incomplete. A single complete catalog response is required.'), {
485
+ code: 'VENUE_CATALOG_INCOMPLETE'
486
+ });
487
+ case 12:
488
+ return _context7.abrupt("return", cloneDeep(data.list));
489
+ case 13:
490
+ case "end":
491
+ return _context7.stop();
492
+ }
493
+ }, _callee7, this);
494
+ }));
495
+ function loadVenueCatalogPool() {
496
+ return _loadVenueCatalogPool.apply(this, arguments);
497
+ }
498
+ return loadVenueCatalogPool;
414
499
  }()
415
500
  /**
416
501
  * Remember raw remote product records before client-side Data Variant
417
502
  * evaluation. Quote-only reads can then always start from a clean baseline.
418
503
  */
504
+ )
419
505
  }, {
420
506
  key: "rememberRawProductQueryResult",
421
507
  value: function rememberRawProductQueryResult(products) {
@@ -469,19 +555,19 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
469
555
  }, {
470
556
  key: "getProducts",
471
557
  value: function () {
472
- var _getProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
473
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
474
- while (1) switch (_context7.prev = _context7.next) {
558
+ var _getProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
559
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
560
+ while (1) switch (_context8.prev = _context8.next) {
475
561
  case 0:
476
- _context7.next = 2;
562
+ _context8.next = 2;
477
563
  return this.core.effects.emit("".concat(this.name, ":onGetProducts"), this.store.list);
478
564
  case 2:
479
- return _context7.abrupt("return", cloneDeep(this.store.list));
565
+ return _context8.abrupt("return", cloneDeep(this.store.list));
480
566
  case 3:
481
567
  case "end":
482
- return _context7.stop();
568
+ return _context8.stop();
483
569
  }
484
- }, _callee7, this);
570
+ }, _callee8, this);
485
571
  }));
486
572
  function getProducts() {
487
573
  return _getProducts.apply(this, arguments);
@@ -491,23 +577,23 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
491
577
  }, {
492
578
  key: "getProduct",
493
579
  value: function () {
494
- var _getProduct = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(id) {
580
+ var _getProduct = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id) {
495
581
  var product;
496
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
497
- while (1) switch (_context8.prev = _context8.next) {
582
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
583
+ while (1) switch (_context9.prev = _context9.next) {
498
584
  case 0:
499
- _context8.next = 2;
585
+ _context9.next = 2;
500
586
  return this.core.effects.emit("".concat(this.name, ":onGetProduct"), this.store.list);
501
587
  case 2:
502
588
  product = this.store.list.find(function (product) {
503
589
  return product.id === id;
504
590
  });
505
- return _context8.abrupt("return", product ? cloneDeep(product) : undefined);
591
+ return _context9.abrupt("return", product ? cloneDeep(product) : undefined);
506
592
  case 4:
507
593
  case "end":
508
- return _context8.stop();
594
+ return _context9.stop();
509
595
  }
510
- }, _callee8, this);
596
+ }, _callee9, this);
511
597
  }));
512
598
  function getProduct(_x7) {
513
599
  return _getProduct.apply(this, arguments);
@@ -517,7 +603,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
517
603
  }, {
518
604
  key: "queryProducts",
519
605
  value: function () {
520
- var _queryProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
606
+ var _queryProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
521
607
  var params,
522
608
  includeIds,
523
609
  excludeIds,
@@ -528,11 +614,11 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
528
614
  channelApplications,
529
615
  codeOrBarcode,
530
616
  products,
531
- _args9 = arguments;
532
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
533
- while (1) switch (_context9.prev = _context9.next) {
617
+ _args10 = arguments;
618
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
619
+ while (1) switch (_context10.prev = _context10.next) {
534
620
  case 0:
535
- params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
621
+ params = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
536
622
  includeIds = normalizeQuerySet(params.includeIds);
537
623
  excludeIds = normalizeQuerySet(params.excludeIds);
538
624
  categoryIds = normalizeQuerySet(params.categoryIds);
@@ -571,12 +657,12 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
571
657
  }
572
658
  return true;
573
659
  });
574
- return _context9.abrupt("return", cloneDeep(products));
660
+ return _context10.abrupt("return", cloneDeep(products));
575
661
  case 11:
576
662
  case "end":
577
- return _context9.stop();
663
+ return _context10.stop();
578
664
  }
579
- }, _callee9, this);
665
+ }, _callee10, this);
580
666
  }));
581
667
  function queryProducts() {
582
668
  return _queryProducts.apply(this, arguments);
@@ -586,21 +672,21 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
586
672
  }, {
587
673
  key: "getProductByIds",
588
674
  value: function () {
589
- var _getProductByIds = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(ids) {
590
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
591
- while (1) switch (_context10.prev = _context10.next) {
675
+ var _getProductByIds = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(ids) {
676
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
677
+ while (1) switch (_context11.prev = _context11.next) {
592
678
  case 0:
593
- _context10.next = 2;
679
+ _context11.next = 2;
594
680
  return this.core.effects.emit("".concat(this.name, ":onGetProductByIds"), this.store.list);
595
681
  case 2:
596
- return _context10.abrupt("return", this.queryProducts({
682
+ return _context11.abrupt("return", this.queryProducts({
597
683
  includeIds: ids
598
684
  }));
599
685
  case 3:
600
686
  case "end":
601
- return _context10.stop();
687
+ return _context11.stop();
602
688
  }
603
- }, _callee10, this);
689
+ }, _callee11, this);
604
690
  }));
605
691
  function getProductByIds(_x8) {
606
692
  return _getProductByIds.apply(this, arguments);
@@ -610,10 +696,10 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
610
696
  }, {
611
697
  key: "addProduct",
612
698
  value: function () {
613
- var _addProduct = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(products) {
699
+ var _addProduct = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(products) {
614
700
  var _this6 = this;
615
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
616
- while (1) switch (_context11.prev = _context11.next) {
701
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
702
+ while (1) switch (_context12.prev = _context12.next) {
617
703
  case 0:
618
704
  // list 需要根据 id 去重
619
705
  if (!this.store.list) {
@@ -636,9 +722,9 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
636
722
  this.core.effects.emit("".concat(this.name, ":changed"), this.store.list);
637
723
  case 4:
638
724
  case "end":
639
- return _context11.stop();
725
+ return _context12.stop();
640
726
  }
641
- }, _callee11, this);
727
+ }, _callee12, this);
642
728
  }));
643
729
  function addProduct(_x9) {
644
730
  return _addProduct.apply(this, arguments);
@@ -648,16 +734,16 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
648
734
  }, {
649
735
  key: "selectProducts",
650
736
  value: function () {
651
- var _selectProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(products) {
652
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
653
- while (1) switch (_context12.prev = _context12.next) {
737
+ var _selectProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(products) {
738
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
739
+ while (1) switch (_context13.prev = _context13.next) {
654
740
  case 0:
655
741
  this.store.selectProducts = products;
656
742
  case 1:
657
743
  case "end":
658
- return _context12.stop();
744
+ return _context13.stop();
659
745
  }
660
- }, _callee12, this);
746
+ }, _callee13, this);
661
747
  }));
662
748
  function selectProducts(_x10) {
663
749
  return _selectProducts.apply(this, arguments);
@@ -627,6 +627,11 @@ function buildCellKey(params) {
627
627
  return [String(params.productId), params.groupId, String(params.resourceId), params.start, params.end].join(':');
628
628
  }
629
629
  function dedupeOccupancyRefKey(occupancy) {
630
+ var _occupancy$raw;
631
+ var sessionKey = (_occupancy$raw = occupancy.raw) === null || _occupancy$raw === void 0 ? void 0 : _occupancy$raw.__availabilitySessionOccupancyKey;
632
+ if (typeof sessionKey === 'string' && sessionKey) {
633
+ return "session:".concat(JSON.stringify([String(occupancy.resourceId), sessionKey]));
634
+ }
630
635
  if (occupancy.scheduleEventId !== undefined && occupancy.scheduleEventId !== null) {
631
636
  return "scheduleEvent:".concat(String(occupancy.resourceId), ":").concat(String(occupancy.scheduleEventId));
632
637
  }
@@ -1222,10 +1222,28 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1222
1222
 
1223
1223
  // 记录已应用优惠券的商品信息
1224
1224
  var appliedDiscountProducts = new Map();
1225
+ var hasPayableOptions = function hasPayableOptions(product) {
1226
+ return (product.options || []).reduce(function (total, option) {
1227
+ var _ref14, _ref15, _ref16, _option$_original_pri, _ref17, _option$num;
1228
+ var unitPrice = Number((_ref14 = (_ref15 = (_ref16 = (_option$_original_pri = option._original_price) !== null && _option$_original_pri !== void 0 ? _option$_original_pri : option._original_add_price) !== null && _ref16 !== void 0 ? _ref16 : option.price) !== null && _ref15 !== void 0 ? _ref15 : option.add_price) !== null && _ref14 !== void 0 ? _ref14 : 0);
1229
+ var quantity = Number((_ref17 = (_option$num = option.num) !== null && _option$num !== void 0 ? _option$num : option.quantity) !== null && _ref17 !== void 0 ? _ref17 : 1);
1230
+ if (!Number.isFinite(unitPrice) || !Number.isFinite(quantity) || quantity <= 0) {
1231
+ return total;
1232
+ }
1233
+ return total.plus(new Decimal(unitPrice).mul(quantity));
1234
+ }, new Decimal(0)).greaterThan(0);
1235
+ };
1236
+
1237
+ // 只排除赠品主项的零可抵扣金额;收费 option 和独立 bundle 保持原有规则。
1238
+ var isGiftWithoutDeductibleAmount = function isGiftWithoutDeductibleAmount(flatItem, discount) {
1239
+ var _flatItem$originProdu, _discount$config4;
1240
+ if (flatItem.type !== 'main' || !((_flatItem$originProdu = flatItem.originProduct) !== null && _flatItem$originProdu !== void 0 && (_flatItem$originProdu = _flatItem$originProdu.metadata) !== null && _flatItem$originProdu !== void 0 && _flatItem$originProdu._giftInfo) || Number(flatItem.price || 0) > 0) return false;
1241
+ return !((_discount$config4 = discount.config) !== null && _discount$config4 !== void 0 && _discount$config4.deductOptionPrice) || !hasPayableOptions(flatItem.product);
1242
+ };
1225
1243
 
1226
1244
  // 可用性和实际应用共用金额判断;零基础价商品可按策略抵扣收费 option。
1227
1245
  var isDiscountCardPriceAvailable = function isDiscountCardPriceAvailable(flatItem, discount) {
1228
- var _product$discount_lis2, _discount$config4;
1246
+ var _product$discount_lis2, _discount$config5;
1229
1247
  var product = flatItem.type === 'main' ? flatItem.product : flatItem.bundleItem;
1230
1248
  if (!(Number(flatItem.price) <= 0 || !flatItem.price) || (_product$discount_lis2 = product.discount_list) !== null && _product$discount_lis2 !== void 0 && _product$discount_lis2.some(function (item) {
1231
1249
  var _item$discount2;
@@ -1233,18 +1251,10 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1233
1251
  })) {
1234
1252
  return true;
1235
1253
  }
1236
- if (flatItem.type !== 'main' || Number(flatItem.price) !== 0 || !['discount_card', 'product_discount_card'].includes(discount.tag || discount.type || '') || !((_discount$config4 = discount.config) !== null && _discount$config4 !== void 0 && _discount$config4.deductOptionPrice) || isOrderLevelFixedAmountDiscount(discount)) {
1254
+ if (flatItem.type !== 'main' || Number(flatItem.price) !== 0 || !['discount_card', 'product_discount_card'].includes(discount.tag || discount.type || '') || !((_discount$config5 = discount.config) !== null && _discount$config5 !== void 0 && _discount$config5.deductOptionPrice) || isOrderLevelFixedAmountDiscount(discount)) {
1237
1255
  return false;
1238
1256
  }
1239
- return (product.options || []).reduce(function (total, option) {
1240
- var _ref14, _ref15, _ref16, _option$_original_pri, _ref17, _option$num;
1241
- var unitPrice = Number((_ref14 = (_ref15 = (_ref16 = (_option$_original_pri = option._original_price) !== null && _option$_original_pri !== void 0 ? _option$_original_pri : option._original_add_price) !== null && _ref16 !== void 0 ? _ref16 : option.price) !== null && _ref15 !== void 0 ? _ref15 : option.add_price) !== null && _ref14 !== void 0 ? _ref14 : 0);
1242
- var quantity = Number((_ref17 = (_option$num = option.num) !== null && _option$num !== void 0 ? _option$num : option.quantity) !== null && _ref17 !== void 0 ? _ref17 : 1);
1243
- if (!Number.isFinite(unitPrice) || !Number.isFinite(quantity) || quantity <= 0) {
1244
- return total;
1245
- }
1246
- return total.plus(new Decimal(unitPrice).mul(quantity));
1247
- }, new Decimal(0)).greaterThan(0);
1257
+ return hasPayableOptions(product);
1248
1258
  };
1249
1259
 
1250
1260
  // 首先遍历所有商品和所有优惠券,确定每个优惠券的适用范围,包括isSelected为false的优惠券
@@ -1274,7 +1284,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1274
1284
  }
1275
1285
  var isItemRewardProductDiscount = _this5.isItemRewardProductDiscount(product);
1276
1286
  addModeDiscount.forEach(function (discount) {
1277
- var _product6, _product7, _product8, _product9, _flatItem$bundleItem3, _flatItem$bundleItem4, _discount$config5;
1287
+ var _product6, _product7, _product8, _product9, _flatItem$bundleItem3, _flatItem$bundleItem4, _discount$config6;
1278
1288
  var limitedData = discount === null || discount === void 0 ? void 0 : discount.limited_relation_product_data;
1279
1289
  // 拿到discount配置的holder信息 product信息 product.holder 加在 isLimitedProduct
1280
1290
  var _tempVar = (flatItem === null || flatItem === void 0 ? void 0 : flatItem.type) === 'bundle' ? flatItem === null || flatItem === void 0 ? void 0 : flatItem.parentProduct : flatItem === null || flatItem === void 0 ? void 0 : flatItem.product;
@@ -1305,7 +1315,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1305
1315
  }
1306
1316
 
1307
1317
  // 判断优惠券是否适用于该商品
1308
- if (isAvailableProduct && !isItemRewardProductDiscount && isLimitedProduct && timeLimit && isBundleAvailable && (_discount$config5 = discount.config) !== null && _discount$config5 !== void 0 && _discount$config5.isAvailable && (isFullCoveragePass(discount) || isDiscountCardPriceAvailable(flatItem, discount)) && (!isEntitlementPass(discount) || getRemainingEntitlementUses(discount, 0, 1) > 0)) {
1318
+ if (isAvailableProduct && !isItemRewardProductDiscount && !isGiftWithoutDeductibleAmount(flatItem, discount) && isLimitedProduct && timeLimit && isBundleAvailable && (_discount$config6 = discount.config) !== null && _discount$config6 !== void 0 && _discount$config6.isAvailable && (isFullCoveragePass(discount) || isDiscountCardPriceAvailable(flatItem, discount)) && (!isEntitlementPass(discount) || getRemainingEntitlementUses(discount, 0, 1) > 0)) {
1309
1319
  var _discountApplicabilit, _discount$metadata4, _discount$metadata5, _discount$metadata6;
1310
1320
  // 记录此优惠券适用的商品
1311
1321
  (_discountApplicabilit = discountApplicability.get(discount.id)) === null || _discountApplicabilit === void 0 || _discountApplicabilit.push(product.id);
@@ -1456,6 +1466,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1456
1466
  // 找到适用于此商品的所有优惠券,仅考虑isSelected不为false的优惠券
1457
1467
  var applicableDiscounts = sortedDiscountList.filter(function (discount) {
1458
1468
  var _product$discount_lis4;
1469
+ if (isGiftWithoutDeductibleAmount(flatItem, discount)) return false;
1459
1470
  if (_this5.discountScope && !_this5.discountScope(originProduct, discount)) return false;
1460
1471
  if (_this5.isItemRewardProductDiscount(product)) return false;
1461
1472
  if (isCardBlockedByPromotion(flatItem, discount)) return false;
@@ -1469,9 +1480,9 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1469
1480
  if (!discount.isSelected) return false;
1470
1481
  }
1471
1482
  if (['entitlement_pass', 'good_pass', 'discount_card', 'product_discount_card'].includes(discountType !== null && discountType !== void 0 ? discountType : '') && !isReapplyEditModeDiscountForProduct) {
1472
- var _discount$config6;
1483
+ var _discount$config7;
1473
1484
  // 如果策略检查后没有config,说明不可用
1474
- if (discount.config === undefined || !(discount !== null && discount !== void 0 && (_discount$config6 = discount.config) !== null && _discount$config6 !== void 0 && _discount$config6.isAvailable)) {
1485
+ if (discount.config === undefined || !(discount !== null && discount !== void 0 && (_discount$config7 = discount.config) !== null && _discount$config7 !== void 0 && _discount$config7.isAvailable)) {
1475
1486
  return false;
1476
1487
  }
1477
1488
  }
@@ -1493,8 +1504,8 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1493
1504
 
1494
1505
  // 🔥 检查 maxUsagePerOrder 限制:同一 product_id 的商品券使用数量不能超过配置值
1495
1506
  if (isFullCoveragePass(discount)) {
1496
- var _discount$config7;
1497
- var maxUsagePerOrder = (_discount$config7 = discount.config) === null || _discount$config7 === void 0 ? void 0 : _discount$config7.maxUsagePerOrder;
1507
+ var _discount$config8;
1508
+ var maxUsagePerOrder = (_discount$config8 = discount.config) === null || _discount$config8 === void 0 ? void 0 : _discount$config8.maxUsagePerOrder;
1498
1509
  if (maxUsagePerOrder && maxUsagePerOrder > 0) {
1499
1510
  var currentUsedCount = usedProductIdCounts.get(discount.product_id) || 0;
1500
1511
  if (currentUsedCount >= maxUsagePerOrder) {
@@ -2647,7 +2658,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
2647
2658
  }, {
2648
2659
  key: "checkPackageSubItemUsageRules",
2649
2660
  value: function checkPackageSubItemUsageRules(discount, flatItem) {
2650
- var _flatItem$product, _flatItem$originProdu, _flatItem$parentProdu10;
2661
+ var _flatItem$product, _flatItem$originProdu2, _flatItem$parentProdu10;
2651
2662
  var limitedData = discount.limited_relation_product_data;
2652
2663
  var usageRules = limitedData === null || limitedData === void 0 ? void 0 : limitedData.package_sub_item_usage_rules;
2653
2664
  var rules = ['original_price'].concat(_toConsumableArray((usageRules === null || usageRules === void 0 ? void 0 : usageRules.rules) || []));
@@ -2672,7 +2683,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
2672
2683
  var isBundleItem = flatItem.type === 'bundle'; // 套餐中购买
2673
2684
  var bundleMainProductId = (_flatItem$product = flatItem.product) === null || _flatItem$product === void 0 ? void 0 : _flatItem$product.product_id;
2674
2685
  // 主商品id
2675
- var mainProductId = (flatItem === null || flatItem === void 0 || (_flatItem$originProdu = flatItem.originProduct) === null || _flatItem$originProdu === void 0 || (_flatItem$originProdu = _flatItem$originProdu._productOrigin) === null || _flatItem$originProdu === void 0 ? void 0 : _flatItem$originProdu.id) || (flatItem === null || flatItem === void 0 || (_flatItem$parentProdu10 = flatItem.parentProduct) === null || _flatItem$parentProdu10 === void 0 ? void 0 : _flatItem$parentProdu10.id) || 0;
2686
+ var mainProductId = (flatItem === null || flatItem === void 0 || (_flatItem$originProdu2 = flatItem.originProduct) === null || _flatItem$originProdu2 === void 0 || (_flatItem$originProdu2 = _flatItem$originProdu2._productOrigin) === null || _flatItem$originProdu2 === void 0 ? void 0 : _flatItem$originProdu2.id) || (flatItem === null || flatItem === void 0 || (_flatItem$parentProdu10 = flatItem.parentProduct) === null || _flatItem$parentProdu10 === void 0 ? void 0 : _flatItem$parentProdu10.id) || 0;
2676
2687
 
2677
2688
  // 主商品直接可用
2678
2689
  if (isMainProduct) {
@@ -431,11 +431,14 @@ var Server = /*#__PURE__*/function () {
431
431
  schedule_date: schedule_date,
432
432
  schedule_datetime: scheduleDatetime
433
433
  });
434
- return _context4.abrupt("return", _this.computeProductQueryResult({
434
+ return _context4.abrupt("return", _this.computeProductQueryResult(_objectSpread({
435
435
  schedule_date: schedule_date,
436
436
  schedule_datetime: scheduleDatetime,
437
437
  product_id: productId
438
- }));
438
+ }, data && _typeof(data) === 'object' ? {
439
+ customer_id: data.customer_id,
440
+ strategy_context: data.strategy_context
441
+ } : {})));
439
442
  case 17:
440
443
  case "end":
441
444
  return _context4.stop();
@@ -7,7 +7,7 @@ import { OrderModule } from '../../modules/Order';
7
7
  import { type PickupTimingBookingInput } from '../../modules/Order/pickupTiming';
8
8
  import type { PickupTimingAvailability, PickupTimingSelection, PickupTimingValidationResult } from '../../modules/FulfillmentTiming';
9
9
  import { type ContactInfoConfig } from '../../modules/OpenData/contactInfo';
10
- import type { AddProductBookingInput, AddProductToOrderOptions, LoadSalesDetailParams, OrderPaymentData, OrderPaymentUpdateOptions, OrderPaymentUpdateResult, OrderPaymentSource, SendCustomerPayLinkParams, SyncPaymentsToOrderParams, SyncPaymentsToOrderResult, UpdateTempOrderCustomerInput, UpdateOrderBookingParams, UpdateOrderProductParams, OrderTempOrder, OrderSummary, OrderPromotionEvaluator, OrderGiftSelectResolver, OrderUnfulfilledPromotion, OrderLastGiftActions, RemoveProductsFromOrderOptions, ReplaceTempOrderOptions, SalesNote, SalesNotesMutationSnapshot, SetSalesNoteInput, PickupReferenceMode, ShopServiceData, ShopServiceType } from '../../modules/Order/types';
10
+ import type { AddProductBookingInput, AddProductToOrderOptions, LoadSalesDetailParams, OrderPaymentData, OrderPaymentUpdateOptions, OrderPaymentUpdateResult, OrderPaymentSource, SendCustomerPayLinkParams, SyncPaymentsToOrderParams, SyncPaymentsToOrderResult, UpdateTempOrderCustomerInput, UpdateOrderBookingParams, UpdateOrderProductParams, UpdateOrderProductsOptions, OrderTempOrder, OrderSummary, OrderPromotionEvaluator, OrderGiftSelectResolver, OrderUnfulfilledPromotion, OrderLastGiftActions, RemoveProductsFromOrderOptions, ReplaceTempOrderOptions, SalesNote, SalesNotesMutationSnapshot, SetSalesNoteInput, PickupReferenceMode, ShopServiceData, ShopServiceType } from '../../modules/Order/types';
11
11
  import type { SubmitPayloadEnhancer } from '../../modules/Order/utils';
12
12
  import type { Discount, VirtualCurrencyAsset } from '../../modules/Discount/types';
13
13
  import { RequestPlugin, WindowPlugin } from '../../plugins';
@@ -135,7 +135,7 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
135
135
  * /product/query 的智能定价评估只读取 strategy_context;
136
136
  * application_code 仅作为接口兼容字段,不能替代 channel / business_code。
137
137
  */
138
- private getPriceQueryStrategyContext;
138
+ protected getPriceQueryStrategyContext(channel?: string): Record<string, any>;
139
139
  /**
140
140
  * 子类可在商品重报价前准备客户维度的策略上下文,例如等待 Wallet/优惠资产加载。
141
141
  */
@@ -162,6 +162,12 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
162
162
  private prepareRawProductForPriceQuery;
163
163
  private resolveLocalProductForPriceQuery;
164
164
  private loadProductsForPriceQuery;
165
+ /** Opt-in subclasses may supply page-owned raw pools; ordinary sales keep remote fallback. */
166
+ protected isVenueCatalogLocalPricingActive(): boolean;
167
+ protected getVenueCatalogLocalPriceSource(_productId: number, _selectedProduct?: Record<string, any>): {
168
+ product: Record<string, any>;
169
+ menuList: Record<string, any>[];
170
+ } | undefined;
165
171
  private resolveProductsForPriceQuery;
166
172
  private getAuthoritativeBundleItems;
167
173
  private findAuthoritativeBundleItem;
@@ -535,6 +541,11 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
535
541
  submitBeforeSend?: boolean;
536
542
  }): Promise<T>;
537
543
  transformBaseProductToOrderProduct(params: TransformBaseProductToOrderProductParams): import("./utils/transformBaseProductToOrderProduct").BaseProductOrderProductInput | null;
544
+ /** Explicit pool source avoids races between two simultaneous Venue pricing contexts. */
545
+ protected calculateVenueCatalogProductBookingPrice(params: BaseSalesCalculateProductBookingPriceParams, source: {
546
+ product: Record<string, any>;
547
+ menuList: Record<string, any>[];
548
+ }): Promise<BaseSalesProductBookingPriceResult>;
538
549
  calculateProductBookingPrice(params: BaseSalesCalculateProductBookingPriceParams): Promise<BaseSalesProductBookingPriceResult>;
539
550
  getQuotationCustomerScopeInfo(): BaseSalesQuotationCustomerScopeInfo;
540
551
  private hasSmartPricingStrategies;
@@ -548,7 +559,7 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
548
559
  validateProductVoucherSelection(): void;
549
560
  addProductToOrder(product: Partial<BaseSalesOrderProduct> & BaseSalesOrderProductIdentity, booking?: AddProductBookingInput, options?: AddProductToOrderOptions): Promise<import("../../modules/Order/types").OrderProduct[]>;
550
561
  updateOrderProduct(params: UpdateOrderProductParams): Promise<import("../../modules/Order/types").OrderProduct[]>;
551
- updateOrderProducts(paramsList: UpdateOrderProductParams[]): Promise<import("../../modules/Order/types").OrderProduct[]>;
562
+ updateOrderProducts(paramsList: UpdateOrderProductParams[], options?: UpdateOrderProductsOptions): Promise<import("../../modules/Order/types").OrderProduct[]>;
552
563
  updateOrderProductQuantity(params: BaseSalesUpdateOrderProductQuantityParams): Promise<import("../../modules/Order/types").OrderProduct[]>;
553
564
  updateOrderBooking(params: UpdateOrderBookingParams): any[];
554
565
  /**