@pisell/pisellos 2.3.185 → 2.3.186

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 (294) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  2. package/dist/modules/Order/utils.js +12 -1
  3. package/dist/modules/Product/index.d.ts +1 -1
  4. package/dist/modules/Product/types.d.ts +5 -0
  5. package/dist/solution/BaseSales/index.d.ts +1 -0
  6. package/dist/solution/BaseSales/index.js +298 -209
  7. package/dist/solution/BaseSales/types.d.ts +3 -0
  8. package/dist/solution/BaseSales/utils/posDurationPricing.d.ts +21 -0
  9. package/dist/solution/BaseSales/utils/posDurationPricing.js +174 -0
  10. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +2 -0
  11. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +8 -8
  12. package/dist/solution/BookingByStep/index.d.ts +2 -2
  13. package/dist/solution/UnifiedBookingSales/index.js +34 -16
  14. package/lib/modules/Order/utils.js +13 -0
  15. package/lib/modules/Product/index.d.ts +1 -1
  16. package/lib/modules/Product/types.d.ts +5 -0
  17. package/lib/solution/BaseSales/index.d.ts +1 -0
  18. package/lib/solution/BaseSales/index.js +95 -36
  19. package/lib/solution/BaseSales/types.d.ts +3 -0
  20. package/lib/solution/BaseSales/utils/posDurationPricing.d.ts +21 -0
  21. package/lib/solution/BaseSales/utils/posDurationPricing.js +133 -0
  22. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +2 -0
  23. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +1 -1
  24. package/lib/solution/BookingByStep/index.d.ts +2 -2
  25. package/lib/solution/UnifiedBookingSales/index.js +23 -1
  26. package/package.json +1 -1
  27. package/dist/apis/picoding.d.ts.map +0 -1
  28. package/dist/core/index.d.ts.map +0 -1
  29. package/dist/effects/index.d.ts.map +0 -1
  30. package/dist/index.d.ts.map +0 -1
  31. package/dist/inventory/index.d.ts.map +0 -1
  32. package/dist/model/index.d.ts.map +0 -1
  33. package/dist/model/strategy/adapter/dataVariant/adapter.d.ts.map +0 -1
  34. package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts.map +0 -1
  35. package/dist/model/strategy/adapter/dataVariant/examples.d.ts.map +0 -1
  36. package/dist/model/strategy/adapter/dataVariant/index.d.ts.map +0 -1
  37. package/dist/model/strategy/adapter/dataVariant/type.d.ts.map +0 -1
  38. package/dist/model/strategy/adapter/index.d.ts.map +0 -1
  39. package/dist/model/strategy/adapter/itemRule/adapter.d.ts.map +0 -1
  40. package/dist/model/strategy/adapter/itemRule/evaluator.d.ts.map +0 -1
  41. package/dist/model/strategy/adapter/itemRule/examples.d.ts.map +0 -1
  42. package/dist/model/strategy/adapter/itemRule/index.d.ts.map +0 -1
  43. package/dist/model/strategy/adapter/itemRule/type.d.ts.map +0 -1
  44. package/dist/model/strategy/adapter/promotion/adapter.d.ts.map +0 -1
  45. package/dist/model/strategy/adapter/promotion/evaluator.d.ts.map +0 -1
  46. package/dist/model/strategy/adapter/promotion/examples.d.ts.map +0 -1
  47. package/dist/model/strategy/adapter/promotion/index.d.ts.map +0 -1
  48. package/dist/model/strategy/adapter/promotion/type.d.ts.map +0 -1
  49. package/dist/model/strategy/adapter/type.d.ts.map +0 -1
  50. package/dist/model/strategy/adapter/walletPass/evaluator.d.ts.map +0 -1
  51. package/dist/model/strategy/adapter/walletPass/example.d.ts.map +0 -1
  52. package/dist/model/strategy/adapter/walletPass/index.d.ts.map +0 -1
  53. package/dist/model/strategy/adapter/walletPass/locales.d.ts.map +0 -1
  54. package/dist/model/strategy/adapter/walletPass/type.d.ts.map +0 -1
  55. package/dist/model/strategy/adapter/walletPass/utils.d.ts.map +0 -1
  56. package/dist/model/strategy/engine.d.ts.map +0 -1
  57. package/dist/model/strategy/index.d.ts.map +0 -1
  58. package/dist/model/strategy/strategy-example.d.ts.map +0 -1
  59. package/dist/model/strategy/type.d.ts.map +0 -1
  60. package/dist/modules/Account/index.d.ts.map +0 -1
  61. package/dist/modules/Account/types.d.ts.map +0 -1
  62. package/dist/modules/AccountList/index.d.ts.map +0 -1
  63. package/dist/modules/AccountList/types.d.ts.map +0 -1
  64. package/dist/modules/AccountList/utils.d.ts.map +0 -1
  65. package/dist/modules/BaseModule.d.ts.map +0 -1
  66. package/dist/modules/BookingContext/index.d.ts.map +0 -1
  67. package/dist/modules/BookingContext/types.d.ts.map +0 -1
  68. package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts.map +0 -1
  69. package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts.map +0 -1
  70. package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts.map +0 -1
  71. package/dist/modules/BookingContext/utils/flexible.d.ts.map +0 -1
  72. package/dist/modules/BookingContext/utils/formatResourceList.d.ts.map +0 -1
  73. package/dist/modules/BookingContext/utils/index.d.ts.map +0 -1
  74. package/dist/modules/BookingContext/utils/noResource.d.ts.map +0 -1
  75. package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts.map +0 -1
  76. package/dist/modules/BookingContext/utils/productExtend.d.ts.map +0 -1
  77. package/dist/modules/BookingContext/utils/resourceErrors.d.ts.map +0 -1
  78. package/dist/modules/BookingContext/utils/resourceSelection.d.ts.map +0 -1
  79. package/dist/modules/BookingContext/utils/resources.d.ts.map +0 -1
  80. package/dist/modules/BookingContext/utils/serviceTimes.d.ts.map +0 -1
  81. package/dist/modules/BookingContext/utils/timeSlices.d.ts.map +0 -1
  82. package/dist/modules/BusinessAvailability/index.d.ts.map +0 -1
  83. package/dist/modules/Cart/index.d.ts.map +0 -1
  84. package/dist/modules/Cart/types.d.ts.map +0 -1
  85. package/dist/modules/Cart/utils/cartAccount.d.ts.map +0 -1
  86. package/dist/modules/Cart/utils/cartDate.d.ts.map +0 -1
  87. package/dist/modules/Cart/utils/cartDiscount.d.ts.map +0 -1
  88. package/dist/modules/Cart/utils/cartNote.d.ts.map +0 -1
  89. package/dist/modules/Cart/utils/cartProduct.d.ts.map +0 -1
  90. package/dist/modules/Cart/utils/cartRelationForms.d.ts.map +0 -1
  91. package/dist/modules/Cart/utils/cartResource.d.ts.map +0 -1
  92. package/dist/modules/Cart/utils/changePrice.d.ts.map +0 -1
  93. package/dist/modules/Cart/utils/index.d.ts.map +0 -1
  94. package/dist/modules/Customer/constants.d.ts.map +0 -1
  95. package/dist/modules/Customer/index.d.ts.map +0 -1
  96. package/dist/modules/Customer/types.d.ts.map +0 -1
  97. package/dist/modules/Date/index.d.ts.map +0 -1
  98. package/dist/modules/Date/types.d.ts.map +0 -1
  99. package/dist/modules/Date/utils.d.ts.map +0 -1
  100. package/dist/modules/Discount/availability.d.ts.map +0 -1
  101. package/dist/modules/Discount/entitlementPass.d.ts.map +0 -1
  102. package/dist/modules/Discount/index.d.ts.map +0 -1
  103. package/dist/modules/Discount/types.d.ts.map +0 -1
  104. package/dist/modules/FulfillmentTiming/index.d.ts.map +0 -1
  105. package/dist/modules/FulfillmentTiming/types.d.ts.map +0 -1
  106. package/dist/modules/Guests/index.d.ts.map +0 -1
  107. package/dist/modules/Guests/types.d.ts.map +0 -1
  108. package/dist/modules/Holder/index.d.ts.map +0 -1
  109. package/dist/modules/Holder/types.d.ts.map +0 -1
  110. package/dist/modules/Holder/utils.d.ts.map +0 -1
  111. package/dist/modules/OpenData/contactInfo.d.ts.map +0 -1
  112. package/dist/modules/OpenData/index.d.ts.map +0 -1
  113. package/dist/modules/OpenData/salesSettings.d.ts.map +0 -1
  114. package/dist/modules/OpenData/types.d.ts.map +0 -1
  115. package/dist/modules/OpenData/utils.d.ts.map +0 -1
  116. package/dist/modules/Order/holderRelations.d.ts.map +0 -1
  117. package/dist/modules/Order/index.d.ts.map +0 -1
  118. package/dist/modules/Order/localEftposState.d.ts.map +0 -1
  119. package/dist/modules/Order/payment-utils.d.ts.map +0 -1
  120. package/dist/modules/Order/pickupTiming.d.ts.map +0 -1
  121. package/dist/modules/Order/salesNotes.d.ts.map +0 -1
  122. package/dist/modules/Order/types.d.ts.map +0 -1
  123. package/dist/modules/Order/utils/bundleDiscountHydration.d.ts.map +0 -1
  124. package/dist/modules/Order/utils/discountProductLineIdentity.d.ts.map +0 -1
  125. package/dist/modules/Order/utils/manualProductDiscount.d.ts.map +0 -1
  126. package/dist/modules/Order/utils/orderCollectionIdentity.d.ts.map +0 -1
  127. package/dist/modules/Order/utils/productVoucherGroups.d.ts.map +0 -1
  128. package/dist/modules/Order/utils/virtualSettlement.d.ts.map +0 -1
  129. package/dist/modules/Order/utils/weighedProduct.d.ts.map +0 -1
  130. package/dist/modules/Order/utils.d.ts.map +0 -1
  131. package/dist/modules/Payment/cash.d.ts.map +0 -1
  132. package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts.map +0 -1
  133. package/dist/modules/Payment/eftpos.d.ts.map +0 -1
  134. package/dist/modules/Payment/index.d.ts.map +0 -1
  135. package/dist/modules/Payment/mx51.d.ts.map +0 -1
  136. package/dist/modules/Payment/types.d.ts.map +0 -1
  137. package/dist/modules/Payment/utils.d.ts.map +0 -1
  138. package/dist/modules/Payment/walletpass.d.ts.map +0 -1
  139. package/dist/modules/Product/index.d.ts.map +0 -1
  140. package/dist/modules/Product/types.d.ts.map +0 -1
  141. package/dist/modules/Product/utils.d.ts.map +0 -1
  142. package/dist/modules/ProductList/clientDataVariants.d.ts.map +0 -1
  143. package/dist/modules/ProductList/index.d.ts.map +0 -1
  144. package/dist/modules/ProductList/types.d.ts.map +0 -1
  145. package/dist/modules/Quotation/index.d.ts.map +0 -1
  146. package/dist/modules/Quotation/types.d.ts.map +0 -1
  147. package/dist/modules/Resource/index.d.ts.map +0 -1
  148. package/dist/modules/Resource/types.d.ts.map +0 -1
  149. package/dist/modules/Resource/utils.d.ts.map +0 -1
  150. package/dist/modules/ResourcePlanner/index.d.ts.map +0 -1
  151. package/dist/modules/ResourcePlanner/localClock.d.ts.map +0 -1
  152. package/dist/modules/ResourcePlanner/planner.d.ts.map +0 -1
  153. package/dist/modules/ResourcePlanner/types.d.ts.map +0 -1
  154. package/dist/modules/Rules/index.d.ts.map +0 -1
  155. package/dist/modules/Rules/promotionSelection.d.ts.map +0 -1
  156. package/dist/modules/Rules/types.d.ts.map +0 -1
  157. package/dist/modules/SalesSummary/index.d.ts.map +0 -1
  158. package/dist/modules/SalesSummary/types.d.ts.map +0 -1
  159. package/dist/modules/SalesSummary/utils.d.ts.map +0 -1
  160. package/dist/modules/ScanOrderLogger/index.d.ts.map +0 -1
  161. package/dist/modules/ScanOrderLogger/providers/feishu.d.ts.map +0 -1
  162. package/dist/modules/ScanOrderLogger/providers/grafana.d.ts.map +0 -1
  163. package/dist/modules/ScanOrderLogger/types.d.ts.map +0 -1
  164. package/dist/modules/Schedule/getDateIsInSchedule.d.ts.map +0 -1
  165. package/dist/modules/Schedule/index.d.ts.map +0 -1
  166. package/dist/modules/Schedule/type.d.ts.map +0 -1
  167. package/dist/modules/Schedule/types.d.ts.map +0 -1
  168. package/dist/modules/Schedule/utils.d.ts.map +0 -1
  169. package/dist/modules/Step/index.d.ts.map +0 -1
  170. package/dist/modules/Step/tyeps.d.ts.map +0 -1
  171. package/dist/modules/Summary/index.d.ts.map +0 -1
  172. package/dist/modules/Summary/types.d.ts.map +0 -1
  173. package/dist/modules/Summary/utils.d.ts.map +0 -1
  174. package/dist/modules/SurchargeList/index.d.ts.map +0 -1
  175. package/dist/modules/SurchargeList/types.d.ts.map +0 -1
  176. package/dist/modules/index.d.ts.map +0 -1
  177. package/dist/plugins/app.d.ts.map +0 -1
  178. package/dist/plugins/index.d.ts.map +0 -1
  179. package/dist/plugins/request.d.ts.map +0 -1
  180. package/dist/plugins/shopStore.d.ts.map +0 -1
  181. package/dist/plugins/user.d.ts.map +0 -1
  182. package/dist/plugins/window.d.ts.map +0 -1
  183. package/dist/server/index.d.ts.map +0 -1
  184. package/dist/server/modules/floor-plan/index.d.ts.map +0 -1
  185. package/dist/server/modules/floor-plan/types.d.ts.map +0 -1
  186. package/dist/server/modules/form/index.d.ts.map +0 -1
  187. package/dist/server/modules/form/types.d.ts.map +0 -1
  188. package/dist/server/modules/index.d.ts.map +0 -1
  189. package/dist/server/modules/menu/index.d.ts.map +0 -1
  190. package/dist/server/modules/menu/types.d.ts.map +0 -1
  191. package/dist/server/modules/order/index.d.ts.map +0 -1
  192. package/dist/server/modules/order/types.d.ts.map +0 -1
  193. package/dist/server/modules/order/utils/filterBookings.d.ts.map +0 -1
  194. package/dist/server/modules/order/utils/filterOrders.d.ts.map +0 -1
  195. package/dist/server/modules/payment/index.d.ts.map +0 -1
  196. package/dist/server/modules/payment/types.d.ts.map +0 -1
  197. package/dist/server/modules/products/index.d.ts.map +0 -1
  198. package/dist/server/modules/products/replication.d.ts.map +0 -1
  199. package/dist/server/modules/products/types.d.ts.map +0 -1
  200. package/dist/server/modules/quotation/index.d.ts.map +0 -1
  201. package/dist/server/modules/quotation/types.d.ts.map +0 -1
  202. package/dist/server/modules/resource/index.d.ts.map +0 -1
  203. package/dist/server/modules/resource/types.d.ts.map +0 -1
  204. package/dist/server/modules/schedule/index.d.ts.map +0 -1
  205. package/dist/server/modules/schedule/types.d.ts.map +0 -1
  206. package/dist/server/modules/schedule/utils.d.ts.map +0 -1
  207. package/dist/server/types.d.ts.map +0 -1
  208. package/dist/server/utils/index.d.ts.map +0 -1
  209. package/dist/server/utils/product.d.ts.map +0 -1
  210. package/dist/server/utils/schedule.d.ts.map +0 -1
  211. package/dist/server/utils/small-ticket.d.ts.map +0 -1
  212. package/dist/server/utils/time.d.ts.map +0 -1
  213. package/dist/shared/payment/loadPaymentMethods.d.ts.map +0 -1
  214. package/dist/shared/receipt/customerInvoiceLanguages.d.ts.map +0 -1
  215. package/dist/shared/receipt/loadCustomerInvoiceLayout.d.ts.map +0 -1
  216. package/dist/shared/receipt/small-ticket.d.ts.map +0 -1
  217. package/dist/shared/receipt/templateVisibility.d.ts.map +0 -1
  218. package/dist/shared/sales/loadSalesOrderSnapshot.d.ts.map +0 -1
  219. package/dist/solution/BaseSales/fulfillmentItemRules.d.ts.map +0 -1
  220. package/dist/solution/BaseSales/index.d.ts.map +0 -1
  221. package/dist/solution/BaseSales/pickupTiming.d.ts.map +0 -1
  222. package/dist/solution/BaseSales/types.d.ts.map +0 -1
  223. package/dist/solution/BaseSales/utils/cartPromotion.d.ts.map +0 -1
  224. package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts.map +0 -1
  225. package/dist/solution/BaseSales/utils/quotationPrice.d.ts.map +0 -1
  226. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts.map +0 -1
  227. package/dist/solution/BaseSales/utils.d.ts.map +0 -1
  228. package/dist/solution/BookingByStep/index.d.ts.map +0 -1
  229. package/dist/solution/BookingByStep/types.d.ts.map +0 -1
  230. package/dist/solution/BookingByStep/utils/capacity.d.ts.map +0 -1
  231. package/dist/solution/BookingByStep/utils/products.d.ts.map +0 -1
  232. package/dist/solution/BookingByStep/utils/resources.d.ts.map +0 -1
  233. package/dist/solution/BookingByStep/utils/stock.d.ts.map +0 -1
  234. package/dist/solution/BookingByStep/utils/timeslots.d.ts.map +0 -1
  235. package/dist/solution/BookingTicket/index.d.ts.map +0 -1
  236. package/dist/solution/BookingTicket/types.d.ts.map +0 -1
  237. package/dist/solution/BookingTicket/utils/addProductDecision.d.ts.map +0 -1
  238. package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts.map +0 -1
  239. package/dist/solution/BookingTicket/utils/bookingStatus.d.ts.map +0 -1
  240. package/dist/solution/BookingTicket/utils/cartView.d.ts.map +0 -1
  241. package/dist/solution/BookingTicket/utils/exampleData.d.ts.map +0 -1
  242. package/dist/solution/BookingTicket/utils/orderCustomer.d.ts.map +0 -1
  243. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts.map +0 -1
  244. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts.map +0 -1
  245. package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts.map +0 -1
  246. package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts.map +0 -1
  247. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts.map +0 -1
  248. package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts.map +0 -1
  249. package/dist/solution/BookingTicket/utils/scan/index.d.ts.map +0 -1
  250. package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts.map +0 -1
  251. package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts.map +0 -1
  252. package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts.map +0 -1
  253. package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts.map +0 -1
  254. package/dist/solution/BuyTickets/index.d.ts.map +0 -1
  255. package/dist/solution/BuyTickets/types.d.ts.map +0 -1
  256. package/dist/solution/Checkout/index.d.ts.map +0 -1
  257. package/dist/solution/Checkout/types.d.ts.map +0 -1
  258. package/dist/solution/Checkout/utils/index.d.ts.map +0 -1
  259. package/dist/solution/OrderInvoicePreview/index.d.ts.map +0 -1
  260. package/dist/solution/PlaceOrder/index.d.ts.map +0 -1
  261. package/dist/solution/RegisterAndLogin/config.d.ts.map +0 -1
  262. package/dist/solution/RegisterAndLogin/index.d.ts.map +0 -1
  263. package/dist/solution/RegisterAndLogin/types.d.ts.map +0 -1
  264. package/dist/solution/RegisterAndLogin/utils.d.ts.map +0 -1
  265. package/dist/solution/Sales/index.d.ts.map +0 -1
  266. package/dist/solution/Sales/types.d.ts.map +0 -1
  267. package/dist/solution/ScanOrder/index.d.ts.map +0 -1
  268. package/dist/solution/ScanOrder/menuAvailability.d.ts.map +0 -1
  269. package/dist/solution/ScanOrder/types.d.ts.map +0 -1
  270. package/dist/solution/ScanOrder/utils.d.ts.map +0 -1
  271. package/dist/solution/ShopDiscount/index.d.ts.map +0 -1
  272. package/dist/solution/ShopDiscount/types.d.ts.map +0 -1
  273. package/dist/solution/ShopDiscount/utils.d.ts.map +0 -1
  274. package/dist/solution/UnifiedBookingSales/businessAvailability.d.ts.map +0 -1
  275. package/dist/solution/UnifiedBookingSales/index.d.ts.map +0 -1
  276. package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts.map +0 -1
  277. package/dist/solution/UnifiedBookingSales/salesSettings.d.ts.map +0 -1
  278. package/dist/solution/UnifiedBookingSales/types.d.ts.map +0 -1
  279. package/dist/solution/VenueBooking/index.d.ts.map +0 -1
  280. package/dist/solution/VenueBooking/types.d.ts.map +0 -1
  281. package/dist/solution/VenueBooking/utils/dateSummary.d.ts.map +0 -1
  282. package/dist/solution/VenueBooking/utils/resource.d.ts.map +0 -1
  283. package/dist/solution/VenueBooking/utils/slotMerge.d.ts.map +0 -1
  284. package/dist/solution/VenueBooking/utils/smartPricing.d.ts.map +0 -1
  285. package/dist/solution/VenueBooking/utils/timeSlot.d.ts.map +0 -1
  286. package/dist/solution/VenueBooking/utils.d.ts.map +0 -1
  287. package/dist/solution/index.d.ts.map +0 -1
  288. package/dist/store/createStore.d.ts.map +0 -1
  289. package/dist/types/index.d.ts.map +0 -1
  290. package/dist/utils/os-private-payload.d.ts.map +0 -1
  291. package/dist/utils/payment-number.d.ts.map +0 -1
  292. package/dist/utils/platform.d.ts.map +0 -1
  293. package/dist/utils/task.d.ts.map +0 -1
  294. package/dist/utils/watch.d.ts.map +0 -1
@@ -1,9 +0,0 @@
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, ITEM_REWARD_STRATEGY } from "./examples";
@@ -1219,7 +1219,7 @@ function formatSubmitBundleItems(bundle) {
1219
1219
  * 法币仅做字段/metadata 裁剪;虚拟币在出站前再次执行零加价与固定单价断言。
1220
1220
  */
1221
1221
  function normalizeSubmitProduct(product) {
1222
- var _ref39, _submitProduct$bundle, _rawMetadata$product_, _rawMetadata$selected, _rawMetadata$selected2, _submitProduct$produc, _submitProduct$paymen;
1222
+ var _ref39, _submitProduct$bundle, _rawMetadata$pricing_, _rawMetadata$product_, _rawMetadata$selected, _rawMetadata$selected2, _submitProduct$produc, _submitProduct$paymen;
1223
1223
  var formatOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1224
1224
  var _ref38 = product,
1225
1225
  _runtimeUid = _ref38.unique_identification_number,
@@ -1253,6 +1253,17 @@ function normalizeSubmitProduct(product) {
1253
1253
  cleanMetadata[key] = rawMetadata[key];
1254
1254
  }
1255
1255
  }
1256
+ // Persist only an applied pricing snapshot, so reopening a saved order can
1257
+ // compare it with the latest catalog without reinterpreting legacy duration.
1258
+ var pricingMethod = (_rawMetadata$pricing_ = rawMetadata.pricing_method) === null || _rawMetadata$pricing_ === void 0 ? void 0 : _rawMetadata$pricing_.type;
1259
+ if (pricingMethod === 'duration_based' || pricingMethod === 'fixed_price') {
1260
+ cleanMetadata.pricing_method = {
1261
+ type: pricingMethod
1262
+ };
1263
+ if (pricingMethod === 'duration_based' && rawMetadata.duration) {
1264
+ cleanMetadata.duration = _objectSpread({}, rawMetadata.duration);
1265
+ }
1266
+ }
1256
1267
  cleanMetadata.product_discount_difference = (_rawMetadata$product_ = rawMetadata.product_discount_difference) !== null && _rawMetadata$product_ !== void 0 ? _rawMetadata$product_ : '';
1257
1268
  if (rawMetadata.price_breakdown) {
1258
1269
  cleanMetadata.price_breakdown = rawMetadata.price_breakdown;
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "duration" | "normal" | "session";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -42,6 +42,9 @@ export interface ProductSettlementOption extends Record<string, any> {
42
42
  available: boolean;
43
43
  disabled_reason?: string;
44
44
  }
45
+ export interface ProductPricingMethod {
46
+ type: 'fixed_price' | 'duration_based';
47
+ }
45
48
  /**
46
49
  * 商品基本信息接口
47
50
  */
@@ -74,6 +77,8 @@ export interface ProductData {
74
77
  sum_stock: number;
75
78
  /** 商品价格 */
76
79
  price: string;
80
+ /** POS booking pricing; missing configuration retains existing fixed pricing. */
81
+ pricing_method?: ProductPricingMethod;
77
82
  /** 当前上下文解析出的可选结算货币 */
78
83
  available_settlement_options?: ProductSettlementOption[];
79
84
  /** 商品原价 */
@@ -535,6 +535,7 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
535
535
  getQuotationCustomerScopeInfo(): BaseSalesQuotationCustomerScopeInfo;
536
536
  private hasSmartPricingStrategies;
537
537
  shouldRecalculateProductBookingPricesForContextChange(params: BaseSalesPriceRecalculationContextChange): boolean;
538
+ private resolveProductBookingPriceGroups;
538
539
  calculateProductBookingPrices(paramsList: BaseSalesCalculateProductBookingPriceParams[]): Promise<BaseSalesProductBookingPriceResult[]>;
539
540
  setProductVoucherGroups(groups: Array<{
540
541
  key: string;