@pisell/private-materials 6.8.28 → 6.8.29

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 (287) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +8 -8
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/locales.d.ts +363 -0
  11. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
  12. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  13. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  14. package/es/components/booking/components/footer/amount.d.ts +37 -0
  15. package/es/components/booking/components/footer/index.js +43 -44
  16. package/es/components/booking/deposit/index.d.ts +1 -0
  17. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  19. package/es/components/booking/forms/single/index.d.ts +1 -0
  20. package/es/components/booking/info/client/index.d.ts +4 -0
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  22. package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
  23. package/es/components/booking/info/notes/index.d.ts +1 -0
  24. package/es/components/booking/info/service/Lists.d.ts +1 -0
  25. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  26. package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  27. package/es/components/booking/info/service/serve.d.ts +34 -0
  28. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  29. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  30. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  31. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  32. package/es/components/booking/info/service2/utils.d.ts +219 -0
  33. package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
  34. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  35. package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
  36. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  37. package/es/components/booking/info2/service/editNormalService/index.js +4 -4
  38. package/es/components/booking/info2/service/editService/index.js +3 -3
  39. package/es/components/booking/info2/service/editService/utils.js +6 -1
  40. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
  42. package/es/components/booking/locales.d.ts +951 -0
  43. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  44. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  45. package/es/components/booking/utils/confirmHolderModal.js +3 -4
  46. package/es/components/booking/utils.d.ts +182 -0
  47. package/es/components/booking/utils.js +7 -1
  48. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  49. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  50. package/es/components/checkout/types.d.ts +130 -0
  51. package/es/components/checkout/utils.d.ts +3 -0
  52. package/es/components/eftposPay/app.d.ts +10 -0
  53. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  54. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  55. package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
  56. package/es/components/eftposPay/const.d.ts +190 -0
  57. package/es/components/eftposPay/device.d.ts +25 -0
  58. package/es/components/eftposPay/hooks.d.ts +35 -0
  59. package/es/components/eftposPay/index.d.ts +4 -0
  60. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  61. package/es/components/eftposPay/locales.d.ts +330 -0
  62. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  63. package/es/components/eftposPay/pay.d.ts +20 -0
  64. package/es/components/eftposPay/payo/config.d.ts +12 -0
  65. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  66. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  67. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  73. package/es/components/list/hooks/index.d.ts +5 -0
  74. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  75. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  76. package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
  77. package/es/components/pay/toB/locales.d.ts +54 -0
  78. package/es/components/pay/toB/store/context.d.ts +3 -0
  79. package/es/components/pay/toB/store/hooks.d.ts +15 -0
  80. package/es/components/pay/toB/store/index.d.ts +3 -0
  81. package/es/components/pay/toB/store/provider.d.ts +4 -0
  82. package/es/components/pay/toB/store/utils.d.ts +13 -0
  83. package/es/components/pay/toB/types/index.d.ts +72 -0
  84. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  86. package/es/components/pay/toC/model.d.ts +32 -0
  87. package/es/components/pay/toC/utils.d.ts +57 -0
  88. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  89. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  90. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  91. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  92. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  93. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  95. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  96. package/es/components/productExtension/index.d.ts +1 -0
  97. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  98. package/es/components/ruleSetting/locales.d.ts +48 -0
  99. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  100. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  101. package/es/components/shoppingCart/index.d.ts +1 -0
  102. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  103. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  104. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
  105. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
  106. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
  107. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  108. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  109. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  110. package/es/components/ticketBooking/utils/index.d.ts +101 -0
  111. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  112. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  113. package/es/hooks/useWindowSize.d.ts +5 -0
  114. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  115. package/es/plus/clinetSearch/locales.d.ts +105 -0
  116. package/es/plus/clinetSearch/types.d.ts +61 -0
  117. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  118. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  119. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  120. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  121. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  122. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  123. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  124. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  125. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  126. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  127. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  128. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  129. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  130. package/es/plus/webPosLogin/locales.d.ts +49 -0
  131. package/es/plus/webPosLogin/types.d.ts +286 -0
  132. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  133. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  134. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  135. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  136. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  137. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  138. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  139. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  140. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  141. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  142. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  143. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  144. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  145. package/es/pro/skuDetailModal/index.js +17 -2
  146. package/es/pro/skuDetailModal/index.less +1 -1
  147. package/es/test/setup.d.ts +1 -0
  148. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  149. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  150. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
  151. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  152. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  153. package/lib/components/booking/components/footer/amount.d.ts +37 -0
  154. package/lib/components/booking/components/footer/index.js +9 -12
  155. package/lib/components/booking/deposit/index.d.ts +1 -0
  156. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  157. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  158. package/lib/components/booking/forms/single/index.d.ts +1 -0
  159. package/lib/components/booking/info/client/index.d.ts +4 -0
  160. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  161. package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
  162. package/lib/components/booking/info/notes/index.d.ts +1 -0
  163. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  164. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  165. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  166. package/lib/components/booking/info/service/serve.d.ts +34 -0
  167. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  168. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  169. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  170. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  171. package/lib/components/booking/info/service2/utils.d.ts +219 -0
  172. package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
  173. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  174. package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
  175. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  176. package/lib/components/booking/info2/service/editNormalService/index.js +4 -4
  177. package/lib/components/booking/info2/service/editService/index.js +4 -4
  178. package/lib/components/booking/info2/service/editService/utils.js +4 -1
  179. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  180. package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
  181. package/lib/components/booking/locales.d.ts +951 -0
  182. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  183. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  184. package/lib/components/booking/utils/confirmHolderModal.js +0 -1
  185. package/lib/components/booking/utils.d.ts +182 -0
  186. package/lib/components/booking/utils.js +5 -1
  187. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  188. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  189. package/lib/components/checkout/types.d.ts +130 -0
  190. package/lib/components/checkout/utils.d.ts +3 -0
  191. package/lib/components/eftposPay/app.d.ts +10 -0
  192. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  193. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  194. package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
  195. package/lib/components/eftposPay/const.d.ts +190 -0
  196. package/lib/components/eftposPay/device.d.ts +25 -0
  197. package/lib/components/eftposPay/hooks.d.ts +35 -0
  198. package/lib/components/eftposPay/index.d.ts +4 -0
  199. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  200. package/lib/components/eftposPay/locales.d.ts +330 -0
  201. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  202. package/lib/components/eftposPay/pay.d.ts +20 -0
  203. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  204. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  205. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  206. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  207. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  209. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  210. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  211. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  212. package/lib/components/list/hooks/index.d.ts +5 -0
  213. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  214. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  215. package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
  216. package/lib/components/pay/toB/locales.d.ts +54 -0
  217. package/lib/components/pay/toB/store/context.d.ts +3 -0
  218. package/lib/components/pay/toB/store/hooks.d.ts +15 -0
  219. package/lib/components/pay/toB/store/index.d.ts +3 -0
  220. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  221. package/lib/components/pay/toB/store/utils.d.ts +13 -0
  222. package/lib/components/pay/toB/types/index.d.ts +72 -0
  223. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  224. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  225. package/lib/components/pay/toC/model.d.ts +32 -0
  226. package/lib/components/pay/toC/utils.d.ts +57 -0
  227. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  228. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  229. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  230. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  231. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  232. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  233. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  234. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  235. package/lib/components/productExtension/index.d.ts +1 -0
  236. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  237. package/lib/components/ruleSetting/locales.d.ts +48 -0
  238. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  239. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  240. package/lib/components/shoppingCart/index.d.ts +1 -0
  241. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  242. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  243. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
  244. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
  245. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
  246. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  247. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  248. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  249. package/lib/components/ticketBooking/utils/index.d.ts +101 -0
  250. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  251. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  252. package/lib/hooks/useWindowSize.d.ts +5 -0
  253. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  254. package/lib/plus/clinetSearch/locales.d.ts +105 -0
  255. package/lib/plus/clinetSearch/types.d.ts +61 -0
  256. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  257. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  258. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  259. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  260. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  261. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  262. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  263. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  264. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  265. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  266. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  267. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  268. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  269. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  270. package/lib/plus/webPosLogin/types.d.ts +286 -0
  271. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  272. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  273. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  274. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  275. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  276. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  277. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  278. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  279. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  280. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  281. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  282. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  283. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  284. package/lib/pro/skuDetailModal/index.js +13 -2
  285. package/lib/pro/skuDetailModal/index.less +1 -1
  286. package/lib/test/setup.d.ts +1 -0
  287. package/package.json +2 -2
@@ -0,0 +1,66 @@
1
+ interface RunApiParams {
2
+ [key: string]: any;
3
+ }
4
+ export declare enum ActionType {
5
+ Pay = "pay",
6
+ Refund = "refund",
7
+ Query = "query"
8
+ }
9
+ interface UsePaymentOptions {
10
+ /**
11
+ * 支付接口
12
+ */
13
+ payApi: (params: RunApiParams, options?: {
14
+ signal?: AbortSignal;
15
+ }) => Promise<any>;
16
+ /**
17
+ * 退款接口
18
+ */
19
+ refundApi?: (params: RunApiParams, options?: {
20
+ signal?: AbortSignal;
21
+ }) => Promise<any>;
22
+ /**
23
+ * 查询接口
24
+ */
25
+ checkApi: (params: {
26
+ number: string;
27
+ }, options?: {
28
+ signal?: AbortSignal;
29
+ }) => Promise<any>;
30
+ /**
31
+ * 检查是否应该继续处理结果(用于处理网络断开、组件卸载等情况)
32
+ */
33
+ shouldContinue?: () => boolean;
34
+ }
35
+ interface RunParams {
36
+ /** 支付类型 */
37
+ paymentType: ActionType;
38
+ /** 支付交易号 */
39
+ paymentNum: string;
40
+ /** 订单ID */
41
+ orderId?: string | number;
42
+ /** 设备ID */
43
+ deviceId?: string | number;
44
+ /** 支付参数 */
45
+ params: RunApiParams;
46
+ /** 回调方法 */
47
+ callbacks: RunCallbacks;
48
+ }
49
+ interface RunCallbacks {
50
+ /**
51
+ * 成功回调
52
+ */
53
+ onSuccess: (res: any) => void;
54
+ /**
55
+ * 失败回调
56
+ */
57
+ onError: (error: any) => void;
58
+ }
59
+ export declare const usePayment: (options: UsePaymentOptions) => {
60
+ run: (options: RunParams) => Promise<void>;
61
+ stop: () => void;
62
+ clean: (params?: {
63
+ clearCallbacks?: boolean;
64
+ }) => void;
65
+ };
66
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const _default: ({ api, onChange, children, url, version, }: {
3
+ api: any;
4
+ onChange: any;
5
+ children?: React.ReactNode;
6
+ url?: string | undefined;
7
+ version?: string | undefined;
8
+ }) => JSX.Element;
9
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { PayStatus } from '../const';
3
+ import XhrTimer from './timer';
4
+ /**
5
+ * @title: windcave 支付,退款,查询 错误逻辑处理
6
+ * @description: 动态步骤页 异常前往 FailCustom 页面
7
+ * @return null
8
+ * @Author: hongbing.wang
9
+ * @Date: 2024-08-12 10:29
10
+ */
11
+ export declare const useFail: () => (res: {
12
+ code?: `${PayStatus}`;
13
+ }, isMark?: boolean) => void;
14
+ /**
15
+ * @title: 轮询 check 接口
16
+ * @description: 轮询 终止条件 1.超时 , 2. 返回非200状态码 , 3. 外部关闭
17
+ * @return [run, XhrTimer] run: 启动函数 , XhrTimer 轮询类
18
+ * @Author: hongbing.wang
19
+ * @Date: 2024-08-12 10:30
20
+ */
21
+ export declare const useValidate: (check: (...agrn: unknown[]) => Promise<unknown>, num: number, onChange: (params: {
22
+ [key: string]: unknown;
23
+ }) => unknown) => readonly [(timeout?: number) => void, React.MutableRefObject<((res: any, isRun?: boolean) => unknown) | undefined>, React.MutableRefObject<XhrTimer | undefined>];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -0,0 +1,5 @@
1
+ export { useDevice, getUserAgentInfo } from './useDevice';
2
+ export type { DeviceType, DeviceInfo } from './useDevice';
3
+ export { default as useWaterfall } from './useWaterfall';
4
+ export { useListState } from './useListState';
5
+ export type { ListState, ListAction, UseListStateProps, UseListStateReturn } from './useListState';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayMethod, PayMethodGroup } from '../../types';
2
3
  import './index.less';
3
4
  declare const ToBPayCardGroup: (props: {
@@ -0,0 +1,16 @@
1
+ import { Order, PayMethod, PayMethodCode } from '../../types';
2
+ export declare const isEftposPay: (code: PayMethodCode) => boolean;
3
+ /**
4
+ * @title: 处理eftpos支付
5
+ * @description: 处理eftpos支付
6
+ * @param {any} action 引擎action
7
+ * @param {any} params 参数
8
+ * @param {any} successCallback 成功回调
9
+ */
10
+ export declare const handleEftposPay: (action: any, params: {
11
+ payMethod: PayMethod;
12
+ order: Order;
13
+ symbol: string;
14
+ network: any;
15
+ type: string;
16
+ }, successCallback: (res: any) => void) => void;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'tobPay.text.back': string;
4
+ 'tobPay.text.waitPay': string;
5
+ 'tobPay.text.card.edit.amount': string;
6
+ 'tobPay.text.group.normalPay': string;
7
+ 'tobPay.text.group.thirdPay': string;
8
+ 'tobPay.text.cancel': string;
9
+ 'tobPay.text.submit': string;
10
+ 'tobPay.text.confirmed.payment': string;
11
+ 'tobPay.text.cash.modal.amount.toPay': string;
12
+ 'tobPay.text.cash.modal.input.title': string;
13
+ 'tobPay.text.cash.modal.no.change.given': string;
14
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
15
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
16
+ 'tobPay.text.cash.modal.ok': string;
17
+ 'tobPay.text.payment.with.surcharge': string;
18
+ };
19
+ 'zh-CN': {
20
+ 'tobPay.text.back': string;
21
+ 'tobPay.text.waitPay': string;
22
+ 'tobPay.text.card.edit.amount': string;
23
+ 'tobPay.text.group.normalPay': string;
24
+ 'tobPay.text.group.thirdPay': string;
25
+ 'tobPay.text.cancel': string;
26
+ 'tobPay.text.submit': string;
27
+ 'tobPay.text.confirmed.payment': string;
28
+ 'tobPay.text.cash.modal.amount.toPay': string;
29
+ 'tobPay.text.cash.modal.input.title': string;
30
+ 'tobPay.text.cash.modal.no.change.given': string;
31
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
32
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
33
+ 'tobPay.text.cash.modal.ok': string;
34
+ 'tobPay.text.payment.with.surcharge': string;
35
+ };
36
+ 'zh-HK': {
37
+ 'tobPay.text.back': string;
38
+ 'tobPay.text.waitPay': string;
39
+ 'tobPay.text.card.edit.amount': string;
40
+ 'tobPay.text.group.normalPay': string;
41
+ 'tobPay.text.group.thirdPay': string;
42
+ 'tobPay.text.cancel': string;
43
+ 'tobPay.text.submit': string;
44
+ 'tobPay.text.confirmed.payment': string;
45
+ 'tobPay.text.cash.modal.amount.toPay': string;
46
+ 'tobPay.text.cash.modal.input.title': string;
47
+ 'tobPay.text.cash.modal.no.change.given': string;
48
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
49
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
50
+ 'tobPay.text.cash.modal.ok': string;
51
+ 'tobPay.text.payment.with.surcharge': string;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ToBPayContextType } from '../types';
3
+ export declare const ToBPayContext: import("react").Context<ToBPayContextType>;
@@ -0,0 +1,15 @@
1
+ import { ToBPayContextType } from '../types';
2
+ /**
3
+ * 使用商家端支付的Hook
4
+ * @throws {Error} 如果在ToBPayProvider外部使用会抛出错误
5
+ * @returns {ToBPayContextType} 商家端支付上下文
6
+ */
7
+ export declare const useToBPay: () => ToBPayContextType;
8
+ export declare const useOSPayment: () => any;
9
+ /**
10
+ * 使用OS支付的Hook
11
+ */
12
+ export declare const useOSPaymentEffect: () => {
13
+ osPaymentEffectOn: () => void;
14
+ osPaymentEffectOff: () => void;
15
+ };
@@ -0,0 +1,3 @@
1
+ export * from './context';
2
+ export * from './provider';
3
+ export * from './hooks';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const ToBPayProvider: ({ children }: {
3
+ children: React.ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { PayMethod, PayMethodGroup } from '../types';
2
+ /**
3
+ * 处理支付方式列表
4
+ * @param payMethodList 支付方式列表
5
+ * @returns 处理后的支付方式列表
6
+ */
7
+ export declare const handlePayMethodList: (payMethodList: PayMethod[]) => PayMethodGroup[];
8
+ /**
9
+ * inputNumber过滤
10
+ * @param value
11
+ * @returns string
12
+ */
13
+ export declare const limitDecimals: (value: any) => any;
@@ -0,0 +1,72 @@
1
+ export * from './storeTypes';
2
+ export interface ToBPayParams {
3
+ source?: 'normal' | 'restore';
4
+ data: {
5
+ type?: string;
6
+ payMethod: {
7
+ id: string;
8
+ code: string;
9
+ type: string;
10
+ name: string;
11
+ };
12
+ params: {
13
+ orderId: string | number;
14
+ symbol?: string;
15
+ amount: string;
16
+ surcharge?: string;
17
+ };
18
+ mode: 'pay' | 'refund';
19
+ };
20
+ callback: ToBPayCallback;
21
+ }
22
+ export declare type ToBPayCallback = (res: {
23
+ status: string;
24
+ data: {
25
+ amount: number;
26
+ surPercentRate?: number;
27
+ surMoney?: number;
28
+ surcharge?: number;
29
+ uniquePaymentNumber?: string;
30
+ };
31
+ msg?: string;
32
+ }) => void;
33
+ /**
34
+ * @title: 支付打开参数
35
+ */
36
+ export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
37
+ payCallback: (res: EftposPayResult | MX51PayResult) => void;
38
+ }
39
+ /**
40
+ * @title: eftpos支付结果
41
+ */
42
+ export interface EftposPayResult {
43
+ status: 'success' | 'fail';
44
+ params: {
45
+ amount: number;
46
+ surPercentRate: number;
47
+ surMoney: number;
48
+ uniquePaymentNumber: string;
49
+ };
50
+ }
51
+ /**
52
+ * @title: MX51支付结果
53
+ */
54
+ export interface MX51PayResult {
55
+ result: boolean;
56
+ msg?: string;
57
+ amount: number;
58
+ surcharge: number;
59
+ uniquePaymentNumber: string;
60
+ }
61
+ /**
62
+ * @title 原生MX51支付结果
63
+ */
64
+ export interface NativeMX51PayResult {
65
+ code: string;
66
+ msg?: string;
67
+ data: {
68
+ amount: number;
69
+ surcharge: number;
70
+ };
71
+ uuid: string;
72
+ }
@@ -0,0 +1,143 @@
1
+ export interface ToBPayContextType {
2
+ /** 订单 */
3
+ order: Order;
4
+ /** 设置订单 */
5
+ setOrder: (order: Order) => void;
6
+ /** 订单信息 */
7
+ orderInfo: OrderInfo;
8
+ /** 设置订单信息 */
9
+ setOrderInfo: (orderInfo: OrderInfo) => void;
10
+ /** 支付方式列表 */
11
+ payMethodGroupList: PayMethodGroup[];
12
+ /** 设置支付方式列表 */
13
+ setPayMethodGroupList: (payMethodGroupList: PayMethodGroup[]) => void;
14
+ /** 获取支付方式列表 */
15
+ getPayMethodList: () => Promise<void>;
16
+ }
17
+ /**
18
+ * OS支付的订单信息
19
+ */
20
+ export interface Order {
21
+ /** 订单唯一标识 */
22
+ uuid: string;
23
+ /** 订单 id */
24
+ id: number;
25
+ /** 订单信息 */
26
+ order_info: OrderInfo;
27
+ /** 作废的支付项 */
28
+ adjust_offline_payments: any[];
29
+ /** 支付项 */
30
+ payment: Payment[];
31
+ /** 支付状态 */
32
+ payment_status: string;
33
+ /** 税费 */
34
+ tax_fee: string;
35
+ /** 订单总金额 */
36
+ total_amount: string;
37
+ /** 待付金额 */
38
+ expect_amount: string;
39
+ }
40
+ /**
41
+ * 订单信息
42
+ */
43
+ export interface OrderInfo {
44
+ /** 订单 id */
45
+ order_id: number;
46
+ /** 订单总金额 */
47
+ total_amount: string;
48
+ /** 是否是定金订单 */
49
+ is_deposit: 0 | 1;
50
+ /** 定金金额 */
51
+ deposit_amount: string;
52
+ }
53
+ /**
54
+ * 支付方式
55
+ */
56
+ export interface PayMethod {
57
+ /** 支付方式 id */
58
+ id: number;
59
+ /** 店铺 id */
60
+ shop_id: number;
61
+ /** 支付方式代码 */
62
+ code: PayMethodCode;
63
+ /** 支付方式类型 */
64
+ type: string;
65
+ /** 支付方式名称 */
66
+ name: string;
67
+ /** 支付方式描述 */
68
+ description: string;
69
+ /** 支付方式通道 */
70
+ channel_application: string[];
71
+ /** 支付方式状态 */
72
+ status: 0 | 1;
73
+ /** 是否是附加费用 */
74
+ is_surcharge: 0 | 1;
75
+ /** 是否禁用 */
76
+ disable: 0 | 1;
77
+ /** 支付方式公司 */
78
+ companies: any;
79
+ /** 支付方式额外数据 */
80
+ metadata?: {
81
+ order_rounding_switch: number;
82
+ };
83
+ /** 创建时间 */
84
+ created_at: string;
85
+ /** 更新时间 */
86
+ updated_at: string;
87
+ /** 删除时间 */
88
+ deleted_at: string | null;
89
+ /** 固定费用 */
90
+ fixed: string;
91
+ /** 百分比费用 */
92
+ percentage: string;
93
+ }
94
+ export declare enum PayMethodCode {
95
+ /** 现金支付 */
96
+ CASHMANUAL = "CASHMANUAL",
97
+ /** eftpos payo */
98
+ EFTPOS_PAYO = "EFTPOS_PAYO",
99
+ /** eftpos windcave */
100
+ EFTPOS_WINDCAVE = "EFTPOS_WINDCAVE",
101
+ /** eftpos tyro */
102
+ EFTPOS_TYRO = "EFTPOS_TYRO",
103
+ /** eftpos linkly */
104
+ EFTPOS_LINKLY = "EFTPOS_LINKLY"
105
+ }
106
+ export interface PayMethodGroup {
107
+ title: string;
108
+ list: PayMethod[];
109
+ }
110
+ /**
111
+ * 已经支付的信息
112
+ */
113
+ export interface Payment {
114
+ /** 当前支付项的唯一 ID,用于标记支付项的唯一性 */
115
+ uuid: string;
116
+ /** 当前支付方式付出去多少钱 */
117
+ amount: number;
118
+ /** 支付类型,跟支付列表上对应的支付方式保持一致 */
119
+ code: PayMethodCode;
120
+ /** 支付类型id,跟支付列表上对应的支付方式保持一致 */
121
+ id: number;
122
+ /** 支付类型id,跟支付列表上对应的支付方式保持一致 */
123
+ name: string;
124
+ /** 支付类型type,跟支付列表上对应的支付方式保持一致 */
125
+ type: string;
126
+ /** 代金券、充值卡、积分卡 等wallet pass id,通过order/deduction 查出来的,本期都为空 */
127
+ voucher_id?: string | null;
128
+ /** 该支付项是否已经同步给后端 */
129
+ isSynced?: boolean;
130
+ /** 支付时间 */
131
+ created_at?: string;
132
+ /** 支付方式额外数据 */
133
+ metadata?: {
134
+ unique_payment_number: string;
135
+ };
136
+ /** 手续费 */
137
+ service_charge?: {
138
+ /** 手续费百分比 */
139
+ percentage?: number | string;
140
+ /** 手续费固定金额 */
141
+ amount?: number | string;
142
+ };
143
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -0,0 +1,32 @@
1
+ export interface FormState {
2
+ platform: 'pc' | 'h5' | '' | undefined;
3
+ order: any;
4
+ status: 'init' | 'ready' | 'loading' | 'success' | 'error';
5
+ payCallback: (res?: any) => void;
6
+ history?: any;
7
+ payGroup?: PayGroup;
8
+ walletSetting: {
9
+ name: string;
10
+ popup_status: 0 | 1 | null;
11
+ };
12
+ }
13
+ export interface PayGroup {
14
+ order_id?: string;
15
+ total_amount?: number;
16
+ walletPass?: {
17
+ amount: number;
18
+ cards: any[];
19
+ [key: string]: any;
20
+ paid?: boolean;
21
+ };
22
+ otherPayment?: {
23
+ [key: string]: any;
24
+ };
25
+ wait_amount?: number;
26
+ payment_group_id?: number;
27
+ payment_priority?: string[];
28
+ pay_number?: string;
29
+ _order: any;
30
+ front_order_uuid?: string;
31
+ }
32
+ export declare const Provider: any, Context: any;
@@ -0,0 +1,57 @@
1
+ import { PayGroup } from "./model";
2
+ import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
3
+ /**
4
+ * 计算walletPass列表数据的总金额
5
+ * @param list
6
+ */
7
+ export declare const calcWalletPassListAmount: (list: any[]) => any;
8
+ /**
9
+ * 将walletPass列表数据转换为prepare_payments需要的数据格式
10
+ * @param list
11
+ */
12
+ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
13
+ voucher_id: any;
14
+ amount: number;
15
+ tag: any;
16
+ }[];
17
+ /**
18
+ * walletPass支付params
19
+ * @param payGroup
20
+ */
21
+ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
+ order_id: string;
23
+ payment_group_id: number;
24
+ payments: {
25
+ amount: string;
26
+ wallet_pass_use_value: any;
27
+ voucher_id: any;
28
+ tag: any;
29
+ wallet_pass_usage_unit: any;
30
+ }[];
31
+ };
32
+ /**
33
+ * @title: 获取是否walletPass和三方支付的组合支付
34
+ * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
35
+ * @return: *
36
+ * @Author: shengjie.zuo
37
+ * @Date: 2024-08-30 10:06:17
38
+ */
39
+ export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
40
+ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
41
+ /**
42
+ * @title: 获取当前连锁加盟店铺shopid
43
+ * @description:
44
+ * @param {any} param1
45
+ * @return {*}
46
+ * @Author: chensheng.gu
47
+ * @Date: 2024-08-07 10:04
48
+ */
49
+ export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
50
+ export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
51
+ export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
52
+ export declare const clientPayment: (params: {
53
+ order_id: number;
54
+ type: "aliPay" | "wxPay" | 'google_pay';
55
+ values: any;
56
+ interaction?: any;
57
+ }) => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type BoolConfigVal = 0 | 1;
3
4
  export interface ProductCardConfig {