@pisell/private-materials 6.4.48 → 6.4.50

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 (500) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +1 -1
  10. package/es/businessModel/SalesModel/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  20. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/index.d.ts +0 -1
  23. package/es/components/booking/addons/model.d.ts +10 -1
  24. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  25. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  26. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  27. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  28. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  29. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  30. package/es/components/booking/components/footer/index.d.ts +0 -1
  31. package/es/components/booking/components/footer/index.js +12 -4
  32. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  33. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  34. package/es/components/booking/components/voucher/index.d.ts +0 -1
  35. package/es/components/booking/deposit/index.d.ts +0 -1
  36. package/es/components/booking/forms/footer.d.ts +0 -1
  37. package/es/components/booking/forms/model.d.ts +10 -1
  38. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  39. package/es/components/booking/forms/single/index.d.ts +0 -1
  40. package/es/components/booking/forms/table/index.d.ts +0 -1
  41. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  42. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  43. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  44. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  45. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  46. package/es/components/booking/info/date/index.d.ts +0 -1
  47. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  48. package/es/components/booking/info/header/index.d.ts +0 -1
  49. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  50. package/es/components/booking/info/index.d.ts +0 -1
  51. package/es/components/booking/info/model.d.ts +10 -1
  52. package/es/components/booking/info/notes/index.d.ts +0 -1
  53. package/es/components/booking/info/service/Lists.d.ts +0 -1
  54. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  55. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  56. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  57. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  58. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  59. package/es/components/booking/info/service/like/index.d.ts +0 -1
  60. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  61. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  62. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  63. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  64. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  65. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  66. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  67. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  68. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  69. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  70. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  71. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  72. package/es/components/booking/model.d.ts +9 -1
  73. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  74. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  75. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  76. package/es/components/booking/notes/model.d.ts +10 -1
  77. package/es/components/booking/payments/model.d.ts +10 -1
  78. package/es/components/checkout/PaymentModal.js +78 -42
  79. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  80. package/es/components/checkout/components/AmountSummary/index.js +39 -4
  81. package/es/components/checkout/components/PaymentDetailModal/index.js +72 -20
  82. package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
  83. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  84. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  85. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  86. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  87. package/es/components/checkout/hooks/useWalletPass.js +1 -0
  88. package/es/components/checkout/locales.d.ts +3 -0
  89. package/es/components/checkout/locales.js +3 -0
  90. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  91. package/es/components/eftpos/form/index.d.ts +0 -1
  92. package/es/components/eftpos/group/index.d.ts +0 -1
  93. package/es/components/eftpos/hooks.d.ts +0 -1
  94. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  95. package/es/components/eftpos/icon/device.d.ts +0 -1
  96. package/es/components/eftpos/index.d.ts +0 -1
  97. package/es/components/eftpos/pos.d.ts +0 -1
  98. package/es/components/eftpos/receipt/index.d.ts +0 -1
  99. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  100. package/es/components/eftposPay/EFTPos.js +2 -9
  101. package/es/components/eftposPay/amount.d.ts +1 -2
  102. package/es/components/eftposPay/app.d.ts +0 -1
  103. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  104. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  105. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  106. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  107. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  108. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  109. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  110. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  111. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  112. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  113. package/es/components/eftposPay/device.d.ts +1 -1
  114. package/es/components/eftposPay/hooks.d.ts +2 -2
  115. package/es/components/eftposPay/index.d.ts +0 -1
  116. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  117. package/es/components/eftposPay/pay.d.ts +0 -1
  118. package/es/components/eftposPay/payo/config.d.ts +0 -1
  119. package/es/components/eftposPay/serve.d.ts +1 -1
  120. package/es/components/eftposPay/serve.js +5 -5
  121. package/es/components/eftposPay/store/index.d.ts +3 -3
  122. package/es/components/eftposPay/tip.d.ts +0 -1
  123. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  124. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  125. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  126. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  127. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  128. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  129. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  130. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  131. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  132. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  133. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  134. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  135. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  136. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  137. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  138. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  139. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  140. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  141. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  142. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  143. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  144. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  145. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  146. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  147. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  148. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  149. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  150. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  151. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  152. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  153. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  154. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  155. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  156. package/es/components/eventBooking/index.d.ts +0 -1
  157. package/es/components/login/index.d.ts +0 -1
  158. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  159. package/es/components/pay/toB/components/Card/index.d.ts +0 -1
  160. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  161. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  162. package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
  163. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  164. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  165. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  166. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  167. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  168. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  169. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  170. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  171. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  172. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  173. package/es/components/pay/toC/model.d.ts +9 -1
  174. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  175. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  176. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  177. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  178. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  179. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  180. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  181. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  182. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  183. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  184. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  185. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  186. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  187. package/es/components/productExtension/index.d.ts +0 -1
  188. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  189. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  190. package/es/components/ruleSetting/index.d.ts +0 -1
  191. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  192. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  193. package/es/components/schedules/calendar/index.d.ts +0 -1
  194. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  195. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  196. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  197. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  198. package/es/components/schedules/model.d.ts +9 -1
  199. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  200. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  201. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  202. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  203. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  204. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  205. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  206. package/es/components/schedules/products/index.d.ts +0 -1
  207. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  208. package/es/components/schedules/products/list/index.d.ts +0 -1
  209. package/es/components/schedules/resources/index.d.ts +0 -1
  210. package/es/components/schedules/resources/list/index.d.ts +0 -1
  211. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  212. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  213. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  214. package/es/components/schedules/schedules/index.d.ts +0 -1
  215. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  216. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  217. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  218. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  219. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  220. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  221. package/es/components/shoppingCart/index.d.ts +0 -1
  222. package/es/components/taxSelect/index.d.ts +0 -1
  223. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  224. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  225. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  226. package/es/components/wallet/Detail/model.d.ts +13 -1
  227. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  228. package/es/components/wallet/PointCard/model.d.ts +13 -1
  229. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  230. package/es/components/wallet/Voucher/model.d.ts +13 -1
  231. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  232. package/es/components/wallet/model.d.ts +9 -1
  233. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  234. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  235. package/es/hooks/usePaymentLogger.d.ts +0 -1
  236. package/es/plus/clientName/index.d.ts +0 -1
  237. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  238. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  239. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  240. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  241. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  242. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  243. package/es/plus/saasLogin/utils.d.ts +5 -5
  244. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  245. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  246. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  247. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  248. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  249. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  250. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  251. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  252. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  253. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  254. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  255. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  256. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  257. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  258. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  259. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  260. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  261. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  262. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  263. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  264. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  265. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  266. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  267. package/lib/components/appointmentBooking/index.d.ts +0 -1
  268. package/lib/components/booking/addons/model.d.ts +10 -1
  269. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  270. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  271. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  272. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  273. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  274. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  275. package/lib/components/booking/components/footer/index.d.ts +0 -1
  276. package/lib/components/booking/components/footer/index.js +6 -1
  277. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  278. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  279. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  280. package/lib/components/booking/deposit/index.d.ts +0 -1
  281. package/lib/components/booking/forms/footer.d.ts +0 -1
  282. package/lib/components/booking/forms/model.d.ts +10 -1
  283. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  284. package/lib/components/booking/forms/single/index.d.ts +0 -1
  285. package/lib/components/booking/forms/table/index.d.ts +0 -1
  286. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  287. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  288. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  289. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  290. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  291. package/lib/components/booking/info/date/index.d.ts +0 -1
  292. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  293. package/lib/components/booking/info/header/index.d.ts +0 -1
  294. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  295. package/lib/components/booking/info/index.d.ts +0 -1
  296. package/lib/components/booking/info/model.d.ts +10 -1
  297. package/lib/components/booking/info/notes/index.d.ts +0 -1
  298. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  299. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  300. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  301. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  302. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  303. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  304. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  305. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  306. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  307. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  308. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  309. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  310. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  311. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  312. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  313. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  314. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  315. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  316. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  317. package/lib/components/booking/model.d.ts +9 -1
  318. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  319. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  320. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  321. package/lib/components/booking/notes/model.d.ts +10 -1
  322. package/lib/components/booking/payments/model.d.ts +10 -1
  323. package/lib/components/checkout/PaymentModal.js +36 -9
  324. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  325. package/lib/components/checkout/components/AmountSummary/index.js +31 -3
  326. package/lib/components/checkout/components/PaymentDetailModal/index.js +49 -11
  327. package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
  328. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  329. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  330. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  331. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  332. package/lib/components/checkout/hooks/useWalletPass.js +1 -0
  333. package/lib/components/checkout/locales.d.ts +3 -0
  334. package/lib/components/checkout/locales.js +3 -0
  335. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  336. package/lib/components/eftpos/form/index.d.ts +0 -1
  337. package/lib/components/eftpos/group/index.d.ts +0 -1
  338. package/lib/components/eftpos/hooks.d.ts +0 -1
  339. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  340. package/lib/components/eftpos/icon/device.d.ts +0 -1
  341. package/lib/components/eftpos/index.d.ts +0 -1
  342. package/lib/components/eftpos/pos.d.ts +0 -1
  343. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  344. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  345. package/lib/components/eftposPay/EFTPos.js +2 -3
  346. package/lib/components/eftposPay/amount.d.ts +1 -2
  347. package/lib/components/eftposPay/app.d.ts +0 -1
  348. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  349. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  350. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  351. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  352. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  353. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  354. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  355. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  356. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  357. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  358. package/lib/components/eftposPay/device.d.ts +1 -1
  359. package/lib/components/eftposPay/hooks.d.ts +2 -2
  360. package/lib/components/eftposPay/index.d.ts +0 -1
  361. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  362. package/lib/components/eftposPay/pay.d.ts +0 -1
  363. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  364. package/lib/components/eftposPay/serve.d.ts +1 -1
  365. package/lib/components/eftposPay/serve.js +1 -1
  366. package/lib/components/eftposPay/store/index.d.ts +3 -3
  367. package/lib/components/eftposPay/tip.d.ts +0 -1
  368. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  369. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  370. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  371. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  372. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  373. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  374. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  375. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  376. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  377. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  378. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  379. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  380. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  381. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  382. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  383. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  384. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  385. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  386. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  387. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  388. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  389. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  390. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  391. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  392. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  393. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  394. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  395. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  396. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  397. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  398. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  399. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  400. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  401. package/lib/components/eventBooking/index.d.ts +0 -1
  402. package/lib/components/login/index.d.ts +0 -1
  403. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  404. package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
  405. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  406. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  407. package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
  408. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  409. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  410. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  411. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  412. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  413. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  414. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  415. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  416. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  417. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  418. package/lib/components/pay/toC/model.d.ts +9 -1
  419. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  420. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  421. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  422. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  423. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  424. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  425. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  426. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  427. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  428. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  429. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  430. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  431. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  432. package/lib/components/productExtension/index.d.ts +0 -1
  433. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  434. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  435. package/lib/components/ruleSetting/index.d.ts +0 -1
  436. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  437. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  438. package/lib/components/schedules/calendar/index.d.ts +0 -1
  439. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  440. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  441. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  442. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  443. package/lib/components/schedules/model.d.ts +9 -1
  444. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  445. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  446. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  447. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  448. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  449. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  450. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  451. package/lib/components/schedules/products/index.d.ts +0 -1
  452. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  453. package/lib/components/schedules/products/list/index.d.ts +0 -1
  454. package/lib/components/schedules/resources/index.d.ts +0 -1
  455. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  456. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  457. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  458. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  459. package/lib/components/schedules/schedules/index.d.ts +0 -1
  460. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  461. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  462. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  463. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  464. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  465. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  466. package/lib/components/shoppingCart/index.d.ts +0 -1
  467. package/lib/components/taxSelect/index.d.ts +0 -1
  468. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  469. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  470. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  471. package/lib/components/wallet/Detail/model.d.ts +13 -1
  472. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  473. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  474. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  475. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  476. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  477. package/lib/components/wallet/model.d.ts +9 -1
  478. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  479. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  480. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  481. package/lib/plus/clientName/index.d.ts +0 -1
  482. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  483. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  484. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  485. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  486. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  487. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  488. package/lib/plus/saasLogin/utils.d.ts +5 -5
  489. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  490. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  491. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  492. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  493. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  494. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  495. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  496. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  497. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  498. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  499. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  500. package/package.json +12 -12
@@ -451,17 +451,22 @@ var PaymentContent = (0, import_react.forwardRef)(
451
451
  );
452
452
  const paymentItems2 = await checkoutModule.getCurrentOrderPaymentItemsAsync();
453
453
  let totalAmount2 = new import_decimal.default(orderInfo2.isDeposit ? orderInfo2.depositAmount : orderInfo2.totalAmount);
454
- if (paymentItems2.length > 0 && paymentItems2.filter((n) => n.isSynced).some((item) => item.service_charge)) {
454
+ if (paymentItems2.length > 0 && paymentItems2.filter((n) => n.isSynced).some((item) => item.service_charge || item.rounding_amount)) {
455
455
  const serviceChargeTotal = paymentItems2.reduce((acc, item) => {
456
456
  var _a3, _b3;
457
457
  const chargeAmount = new import_decimal.default(((_a3 = item.service_charge) == null ? void 0 : _a3.amount) || 0);
458
458
  const chargePercentage = new import_decimal.default(((_b3 = item.service_charge) == null ? void 0 : _b3.percentage) || 0);
459
459
  const itemAmount = new import_decimal.default(item.amount || 0);
460
- const itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
460
+ let itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
461
+ if (Number(item.rounding_amount) > 0) {
462
+ itemServiceCharge = itemServiceCharge.sub(new import_decimal.default(item.rounding_amount));
463
+ }
464
+ console.log(itemServiceCharge);
461
465
  return acc.add(itemServiceCharge);
462
466
  }, new import_decimal.default(0));
463
467
  totalAmount2 = totalAmount2.add(serviceChargeTotal);
464
468
  }
469
+ console.log(totalAmount2, paymentItems2);
465
470
  await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
466
471
  {
467
472
  paymentStatus: "partially_paid",
@@ -563,9 +568,12 @@ var PaymentContent = (0, import_react.forwardRef)(
563
568
  const result = await checkoutModule.manualSyncOrderAsync();
564
569
  await (showSuccessToast == null ? void 0 : showSuccessToast(result));
565
570
  if (result.success) {
571
+ checkoutModule.core.effects.emit("checkout:onPaymentStarted", {
572
+ paymentMethodCode: ""
573
+ });
566
574
  const orderInfo2 = checkoutModule.getCurrentOrderInfo();
567
575
  setCurrentEditOrderId == null ? void 0 : setCurrentEditOrderId(result.orderId);
568
- if (result.is_deposit && Number(orderInfo2.depositAmount < orderInfo2.totalAmount)) {
576
+ if (result.is_deposit && Number(orderInfo2.depositAmount) < Number(orderInfo2.totalAmount)) {
569
577
  updateOrderInfo == null ? void 0 : updateOrderInfo(orderInfo2);
570
578
  return;
571
579
  }
@@ -1044,7 +1052,7 @@ var PaymentModal = ({
1044
1052
  import_locales2.default,
1045
1053
  ((_e = (_d = (_c = (_b = (_a = context.appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.locales) == null ? void 0 : _d.getLocale) == null ? void 0 : _e.call(_d)) || ((_g = (_f = context.appHelper.utils) == null ? void 0 : _f.storage) == null ? void 0 : _g.get("umi_locale")) || "en"
1046
1054
  );
1047
- const { pisellos, getData, interaction } = ((_h = context == null ? void 0 : context.appHelper) == null ? void 0 : _h.utils) || {};
1055
+ const { pisellos, getData, interaction, isWebPos } = ((_h = context == null ? void 0 : context.appHelper) == null ? void 0 : _h.utils) || {};
1048
1056
  const [orderInfo, setOrderInfo] = (0, import_react.useState)(null);
1049
1057
  const [totalAmount, setTotalAmount] = (0, import_react.useState)(0);
1050
1058
  const [actualShowCashPayment, setActualShowCashPayment] = (0, import_react.useState)(true);
@@ -1422,6 +1430,13 @@ var PaymentModal = ({
1422
1430
  totalInfo: newData.subtotal_info
1423
1431
  });
1424
1432
  } else {
1433
+ logger == null ? void 0 : logger.addLog({
1434
+ type: "info",
1435
+ title: "正常创建 createLocalOrderAsync",
1436
+ metadata: {
1437
+ data
1438
+ }
1439
+ });
1425
1440
  await checkout.createLocalOrderAsync({
1426
1441
  orderData: newData.order_info,
1427
1442
  cartSummary: (_b2 = newData.subtotal_info) == null ? void 0 : _b2.subTotalList,
@@ -1515,10 +1530,15 @@ var PaymentModal = ({
1515
1530
  paymentStatus,
1516
1531
  !!currentChangeGivenAmount
1517
1532
  );
1518
- const enabledAutoPrint = await ((_e2 = (_d3 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _d3.asyncDataManager) == null ? void 0 : _e2.call(_d3, {
1519
- module: "get",
1520
- key: "auto_print_receipt"
1521
- }));
1533
+ let enabledAutoPrint = false;
1534
+ if (isWebPos) {
1535
+ enabledAutoPrint = false;
1536
+ } else {
1537
+ enabledAutoPrint = await ((_e2 = (_d3 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _d3.asyncDataManager) == null ? void 0 : _e2.call(_d3, {
1538
+ module: "get",
1539
+ key: "auto_print_receipt"
1540
+ }));
1541
+ }
1522
1542
  const orderInfo3 = checkout.getCurrentOrderInfo();
1523
1543
  await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
1524
1544
  {
@@ -1564,6 +1584,13 @@ var PaymentModal = ({
1564
1584
  totalInfo: data == null ? void 0 : data.subtotal_info
1565
1585
  });
1566
1586
  } else {
1587
+ logger == null ? void 0 : logger.addLog({
1588
+ type: "info",
1589
+ title: "含有 localOrderCreate, 调用 createLocalOrderAsync",
1590
+ metadata: {
1591
+ data
1592
+ }
1593
+ });
1567
1594
  await checkout.createLocalOrderAsync({
1568
1595
  orderData: data == null ? void 0 : data.order_info,
1569
1596
  cartSummary: (_d2 = data == null ? void 0 : data.subtotal_info) == null ? void 0 : _d2.subTotalList,
@@ -1618,7 +1645,7 @@ var PaymentModal = ({
1618
1645
  setTimeout(() => {
1619
1646
  (0, import_PaymentResultToast.closePaymentResultToast)();
1620
1647
  }, 0);
1621
- const { isTerminal, isWebPos } = (_a2 = context.appHelper) == null ? void 0 : _a2.utils;
1648
+ const { isTerminal, isWebPos: isWebPos2 } = (_a2 = context.appHelper) == null ? void 0 : _a2.utils;
1622
1649
  if (isTerminal == null ? void 0 : isTerminal()) {
1623
1650
  const checkout = pisellos.getModule("checkout");
1624
1651
  const orderId = await checkout.getCurrentOrderId();
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentPlugin: () => JSX.Element;
3
2
  export default PaymentPlugin;
@@ -173,7 +173,7 @@ function AmountSummary({
173
173
  (0, import_react.useEffect)(() => {
174
174
  var _a2;
175
175
  const nonWalletPassAmount = ((_a2 = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
176
- if (!item.voucher_id) {
176
+ if (!item.voucher_id || item.voucher_id && item.isSynced) {
177
177
  let itemAmount = new import_decimal.default(item.amount || "0");
178
178
  if (item.rounding_amount) {
179
179
  const roundingAmount = new import_decimal.default(item.rounding_amount);
@@ -364,6 +364,13 @@ function AmountSummary({
364
364
  const renderConfirmMode = () => {
365
365
  let balanceAmountValue = parseFormattedAmount(getBalanceDueAmount());
366
366
  let balanceDecimal = new import_decimal.default(balanceAmountValue);
367
+ const syncedVoucherAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
368
+ if (item.voucher_id && item.isSynced && (paymentType === "regular" && item.order_payment_type !== "deposit" || paymentType === "deposit" && item.order_payment_type === "deposit")) {
369
+ return acc.plus(item.amount).plus(item.rounding_amount);
370
+ }
371
+ return acc;
372
+ }, new import_decimal.default(0)).toNumber();
373
+ balanceDecimal = balanceDecimal.minus(syncedVoucherAmount);
367
374
  const finalBalanceAmount = (0, import_utils.formatAmountWithOptions)(
368
375
  balanceDecimal.toNumber(),
369
376
  amountSymbol,
@@ -457,12 +464,22 @@ function AmountSummary({
457
464
  }
458
465
  }, [paymentItems, paymentType, totalAmount]);
459
466
  const showCancelSplitPayment = (0, import_react.useMemo)(() => {
460
- return balanceDueAmount !== customAmount;
467
+ return balanceDueAmount !== customAmount && Number(balanceDueAmount) > 0 && Number(customAmount) > 0;
461
468
  }, [customAmount, balanceDueAmount]);
462
469
  const handleChangeDepositAmount = (value) => {
463
470
  console.log("handleChangeDepositAmount", value);
464
471
  checkoutModule == null ? void 0 : checkoutModule.setDepositAmountAsync(value);
465
472
  };
473
+ const hasDepositPayment = (0, import_react.useMemo)(() => {
474
+ return paymentItems == null ? void 0 : paymentItems.some((item) => item.order_payment_type === "deposit" && item.status !== "voided");
475
+ }, [paymentItems]);
476
+ const showCanNotChangeDepositAmount = () => {
477
+ Toast == null ? void 0 : Toast.fail(
478
+ import_utils.locales.getText(
479
+ "pisell2.checkout.can-not-change-deposit-amount"
480
+ )
481
+ );
482
+ };
466
483
  return /* @__PURE__ */ import_react2.default.createElement(
467
484
  "div",
468
485
  {
@@ -504,7 +521,18 @@ function AmountSummary({
504
521
  })
505
522
  },
506
523
  // 如果应该显示确认模式,直接返回确认界面
507
- shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-info") }, paymentType === "deposit" ? /* @__PURE__ */ import_react2.default.createElement(
524
+ shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-info") }, paymentType === "deposit" ? hasDepositPayment ? /* @__PURE__ */ import_react2.default.createElement("div", { onClick: () => showCanNotChangeDepositAmount() }, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-label") }, getText("deposit.due") || "Deposit Due"), /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-amount") }, (0, import_utils.formatAmountWithOptions)(balanceDueAmount, amountSymbol, {
525
+ precision: 2,
526
+ hideDecimalForWholeNumbers: false,
527
+ useThousandsSeparator: true,
528
+ showCurrencySymbol: true
529
+ }), /* @__PURE__ */ import_react2.default.createElement(
530
+ import_icon.Edit05,
531
+ {
532
+ className: (0, import_classnames.default)("edit-icon"),
533
+ style: { color: "#7F56DA" }
534
+ }
535
+ ))) : /* @__PURE__ */ import_react2.default.createElement(
508
536
  import_pisellSimplePriceKeyboardPopover.default,
509
537
  {
510
538
  value: balanceDueAmount || "0",
@@ -39,6 +39,7 @@ var import_locales = __toESM(require("../../locales"));
39
39
  var import_index = require("./index.less");
40
40
  var import_classnames = __toESM(require("classnames"));
41
41
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
42
+ var import_decimal = __toESM(require("decimal.js"));
42
43
  function PaymentDetailModal({
43
44
  amountSymbol,
44
45
  orderInfo,
@@ -87,15 +88,14 @@ function PaymentDetailModal({
87
88
  return (item.code === "cash" || item.type === "custom") && !item.isSynced;
88
89
  };
89
90
  const getTotalPaidAmount = () => {
90
- return paymentItems.filter((item) => !item.voucher_id).reduce((total, item) => total + Math.abs(item.amount) + Math.abs(item.rounding_amount), 0);
91
- };
92
- const getTotalVoucherAmount = () => {
93
- return paymentItems.filter((item) => item.voucher_id).reduce((total, item) => total + Math.abs(item.amount), 0);
91
+ return paymentItems.filter((item) => !item.voucher_id || item.isSynced).reduce((total, item) => {
92
+ const amount = new import_decimal.default(Math.abs(item.amount));
93
+ const roundingAmount = new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
94
+ return new import_decimal.default(total).plus(amount).plus(roundingAmount).toNumber();
95
+ }, 0);
94
96
  };
95
97
  const getBalanceDueAmount = () => {
96
- const baseAmount = customAmount ? parseFloat(customAmount) : 0;
97
- const voucherDeductions = getTotalVoucherAmount();
98
- return baseAmount + voucherDeductions;
98
+ return new import_decimal.default(orderInfo.totalAmount || 0).sub(new import_decimal.default(getTotalPaidAmount())).toNumber().toFixed(2);
99
99
  };
100
100
  const handleVoidPayment = (paymentItem) => {
101
101
  console.log("Void payment:", paymentItem);
@@ -104,16 +104,54 @@ function PaymentDetailModal({
104
104
  }
105
105
  };
106
106
  const renderPaymentItems = () => {
107
- const regularPayments = paymentItems.filter((item) => !item.voucher_id);
108
- if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0) {
107
+ const depositPayments = paymentItems.filter((item) => item.order_payment_type === "deposit" && item.isSynced);
108
+ const regularPayments = paymentItems.filter((item) => item.isSynced && item.order_payment_type !== "deposit");
109
+ if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0 && depositPayments.length === 0) {
109
110
  return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("no-payment-text") }, getText("no.payments.recorded") || "No payments recorded"));
110
111
  }
111
- return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(Math.abs(item.amount) + Math.abs(item.rounding_amount), amountSymbol, {
112
+ const depositPaymentSummary = depositPayments.reduce((acc, item) => {
113
+ return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
114
+ }, 0);
115
+ const regularPaymentSummary = regularPayments.reduce((acc, item) => {
116
+ return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
117
+ }, 0);
118
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, depositPayments.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-header") }, /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.subtotal.deposit") || "Deposit"), /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_utils.formatAmountWithOptions)(depositPaymentSummary, amountSymbol, {
119
+ precision: 2,
120
+ hideDecimalForWholeNumbers: false,
121
+ useThousandsSeparator: true,
122
+ showCurrencySymbol: true
123
+ }))), depositPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-bullet") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(
124
+ new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(),
125
+ amountSymbol,
126
+ {
127
+ precision: 2,
128
+ hideDecimalForWholeNumbers: false,
129
+ useThousandsSeparator: true,
130
+ showCurrencySymbol: true
131
+ }
132
+ )), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
133
+ "button",
134
+ {
135
+ className: (0, import_classnames.default)("void-button"),
136
+ onClick: () => handleVoidPayment(item),
137
+ type: "button"
138
+ },
139
+ getText("void") || "Void"
140
+ ))))), regularPayments.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-header") }, /* @__PURE__ */ import_react.default.createElement("div", null, getText("payment.text") || "Payment"), /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_utils.formatAmountWithOptions)(regularPaymentSummary, amountSymbol, {
112
141
  precision: 2,
113
142
  hideDecimalForWholeNumbers: false,
114
143
  useThousandsSeparator: true,
115
144
  showCurrencySymbol: true
116
- })), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
145
+ }))), regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-bullet") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(
146
+ new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(),
147
+ amountSymbol,
148
+ {
149
+ precision: 2,
150
+ hideDecimalForWholeNumbers: false,
151
+ useThousandsSeparator: true,
152
+ showCurrencySymbol: true
153
+ }
154
+ )), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
117
155
  "button",
118
156
  {
119
157
  className: (0, import_classnames.default)("void-button"),
@@ -263,7 +263,7 @@
263
263
  flex-direction: column;
264
264
  justify-content: flex-start;
265
265
  align-items: flex-start;
266
- gap: 16px;
266
+ gap: 8px;
267
267
  }
268
268
 
269
269
  .payment-record-header {
@@ -299,12 +299,33 @@
299
299
  line-height: 20px;
300
300
  word-wrap: break-word;
301
301
  }
302
+ .payment-item-header {
303
+ width: 100%;
304
+ color: black;
305
+ font-size: 14px;
306
+ font-weight: 500;
307
+ line-height: 20px;
308
+ word-wrap: break-word;
309
+ display: flex;
310
+ justify-content: space-between;
311
+ }
302
312
 
303
313
  .payment-item {
304
314
  align-self: stretch;
305
315
  display: flex;
306
- justify-content: space-between;
316
+ justify-content: flex-start;
307
317
  align-items: center;
318
+ gap: 8px;
319
+ margin-left: 10px;
320
+ margin-right: 64px;
321
+ }
322
+
323
+ .payment-item-bullet {
324
+ width: 6px;
325
+ height: 6px;
326
+ background-color: #475467;
327
+ border-radius: 50%;
328
+ flex-shrink: 0;
308
329
  }
309
330
 
310
331
  .payment-item-content {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface IScanResult {
4
3
  status: 'success' | 'failed';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellWalletPassCardProps } from '../../types';
3
2
  export declare const TestModule: () => JSX.Element;
4
3
  declare const ConflictModal: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface DiscountWalletProps {
4
3
  isCardMode: boolean;
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any[];
20
+ expiredWalletIds: any;
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -272,6 +272,7 @@ var useWalletPass = (props) => {
272
272
  } else {
273
273
  setWalletSelect([]);
274
274
  notSetWalletSelectRef.current = false;
275
+ onSelectChange == null ? void 0 : onSelectChange([]);
275
276
  }
276
277
  const originalDiscountList = shopDiscount.getDiscountList();
277
278
  const sortedDiscountList = sortDiscountListWithInitialOrder(originalDiscountList);
@@ -122,6 +122,7 @@ declare const _default: {
122
122
  'pisell2.checkout.manual-discount.no-amount': string;
123
123
  'pisell2.checkout.manual-discount.has-payment-items': string;
124
124
  'pisell2.checkout.manual-discount.invalid-amount': string;
125
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
125
126
  'pisell2.checkout.wallet-balance-confirm.title': string;
126
127
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
127
128
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -281,6 +282,7 @@ declare const _default: {
281
282
  'pisell2.checkout.manual-discount.no-amount': string;
282
283
  'pisell2.checkout.manual-discount.has-payment-items': string;
283
284
  'pisell2.checkout.manual-discount.invalid-amount': string;
285
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
284
286
  'pisell2.checkout.wallet-balance-confirm.title': string;
285
287
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
286
288
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -456,6 +458,7 @@ declare const _default: {
456
458
  'pisell2.checkout.manual-discount.no-amount': string;
457
459
  'pisell2.checkout.manual-discount.has-payment-items': string;
458
460
  'pisell2.checkout.manual-discount.invalid-amount': string;
461
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
459
462
  'pisell2.checkout.wallet-balance-confirm.title': string;
460
463
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
461
464
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -166,6 +166,7 @@ var locales_default = {
166
166
  "pisell2.checkout.manual-discount.no-amount": "No order amount available for discount",
167
167
  "pisell2.checkout.manual-discount.has-payment-items": "Order already contains payment items, cannot manually adjust price",
168
168
  "pisell2.checkout.manual-discount.invalid-amount": "Please enter a valid amount greater than 0",
169
+ "pisell2.checkout.can-not-change-deposit-amount": "Order already contains deposit payment items, cannot change deposit amount",
169
170
  // Wallet balance confirmation modal
170
171
  "pisell2.checkout.wallet-balance-confirm.title": "Apply wallet balance now",
171
172
  "pisell2.checkout.wallet-balance-confirm.description-before": " will be deducted from selected wallet balance, order will be marked as ",
@@ -354,6 +355,7 @@ var locales_default = {
354
355
  "pisell2.checkout.manual-discount.no-amount": "无可用的订单金额进行折扣",
355
356
  "pisell2.checkout.manual-discount.has-payment-items": "订单已经含有支付项,不可手动改价",
356
357
  "pisell2.checkout.manual-discount.invalid-amount": "请输入大于0的有效金额",
358
+ "pisell2.checkout.can-not-change-deposit-amount": "已经含有定金支付项,不可修改定金金额",
357
359
  // Wallet balance confirmation modal
358
360
  "pisell2.checkout.wallet-balance-confirm.title": "立即应用钱包余额",
359
361
  "pisell2.checkout.wallet-balance-confirm.description-before": " 将从所选钱包余额中扣除,订单将标记为 ",
@@ -574,6 +576,7 @@ var locales_default = {
574
576
  "pisell2.checkout.manual-discount.no-amount": "無可用的訂單金額進行折扣",
575
577
  "pisell2.checkout.manual-discount.has-payment-items": "訂單已經含有支付項,不可手動改價",
576
578
  "pisell2.checkout.manual-discount.invalid-amount": "請輸入大於0的有效金額",
579
+ "pisell2.checkout.can-not-change-deposit-amount": "已經含有定金支付項,不可修改定金金額",
577
580
  // Wallet balance confirmation modal
578
581
  "pisell2.checkout.wallet-balance-confirm.title": "立即應用錢包餘額",
579
582
  "pisell2.checkout.wallet-balance-confirm.description-before": " 將從所選錢包餘額中扣除,訂單將標記為 ",
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -473,12 +473,11 @@ var EFTPos = (props, ref) => {
473
473
  return Promise.reject(res);
474
474
  });
475
475
  },
476
- editTransaction(params, config) {
477
- const [id, ...otherParams] = params;
476
+ editTransaction(id, params, config) {
478
477
  console.log("editTransaction id = ", id);
479
478
  return new Promise((resolve) => {
480
479
  resolve(id);
481
- }).then(() => (0, import_serve.editTransaction)({ id, ...otherParams })).then(
480
+ }).then(() => (0, import_serve.editTransaction)(id, params, config)).then(
482
481
  (res) => {
483
482
  if (res && (res.code === "200" || res.code === 200)) {
484
483
  return res;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -9,7 +8,7 @@ import { PosProps } from './const';
9
8
  */
10
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
10
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
12
  [keys: string]: unknown;
14
13
  } | undefined, other?: any) => void) | undefined;
15
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "fail" | "warn" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Linkly: ({ api, onChange }: any) => JSX.Element;
3
2
  export default Linkly;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -11,6 +11,6 @@ export declare const payButton: (params: any, config?: any) => Promise<any>;
11
11
  export declare const payData: (params: any, config?: any) => Promise<any>;
12
12
  export declare const refundData: (params: any, config?: any) => Promise<any>;
13
13
  export declare const addTransaction: (params: any, config?: any) => Promise<any>;
14
- export declare const editTransaction: (params: any, config?: any) => Promise<any>;
14
+ export declare const editTransaction: (id: any, params: any, config?: any) => Promise<any>;
15
15
  export declare const linklyPayQuery: (params: any, config?: any) => Promise<any>;
16
16
  export declare const linklyRefundQuery: (params: any, config?: any) => Promise<any>;