@pisell/private-materials 6.3.69 → 6.3.71

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 (318) 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 +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +3 -3
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +3 -3
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/booking/addons/model.d.ts +1 -10
  15. package/es/components/booking/components/voucher/index.js +8 -7
  16. package/es/components/booking/forms/model.d.ts +1 -10
  17. package/es/components/booking/hooks/useQuotation.js +2 -2
  18. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  21. package/es/components/booking/info/index.d.ts +1 -0
  22. package/es/components/booking/info/model.d.ts +1 -10
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  25. package/es/components/booking/info/service2/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  27. package/es/components/booking/model.d.ts +1 -9
  28. package/es/components/booking/notes/model.d.ts +1 -10
  29. package/es/components/booking/payments/model.d.ts +1 -10
  30. package/es/components/eftposPay/amount.d.ts +1 -1
  31. package/es/components/eftposPay/device.d.ts +1 -1
  32. package/es/components/eftposPay/hooks.d.ts +2 -2
  33. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  40. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  41. package/es/components/kioskSkuDetail/index.js +531 -0
  42. package/es/components/kioskSkuDetail/index.less +196 -0
  43. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  44. package/es/components/kioskSkuDetail/locales.js +26 -0
  45. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  46. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  47. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  48. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  49. package/es/components/pay/toC/model.d.ts +1 -9
  50. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  51. package/es/components/schedules/model.d.ts +1 -9
  52. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  53. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  54. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  55. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  56. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  57. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  58. package/es/components/walletList/index.js +7 -2
  59. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  60. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  61. package/es/index.d.ts +3 -1
  62. package/es/index.js +3 -1
  63. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  64. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  65. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  66. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
  67. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  68. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  69. package/es/plus/skuOptionsSelection/locales.js +3 -0
  70. package/es/plus/skuOptionsSelection/store/actions.js +17 -2
  71. package/es/plus/skuOptionsSelection/types.d.ts +5 -0
  72. package/es/plus/skuOptionsSelection/types.js +2 -1
  73. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
  74. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  75. package/es/plus/walletPassGallery/index.js +2 -2
  76. package/es/pro/numberKeyboard/index.d.ts +28 -0
  77. package/es/pro/numberKeyboard/index.js +155 -0
  78. package/es/pro/numberKeyboard/index.less +25 -0
  79. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  80. package/es/pro/numberKeyboard/locales.js +11 -0
  81. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  82. package/es/pro/pisellNumberSelector/example.js +68 -0
  83. package/es/pro/pisellNumberSelector/index.d.ts +29 -0
  84. package/es/pro/pisellNumberSelector/index.js +257 -0
  85. package/es/pro/pisellNumberSelector/index.less +235 -0
  86. package/es/pro/skuDetailModal/index.d.ts +4 -0
  87. package/es/pro/skuDetailModal/index.js +1031 -0
  88. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  89. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  90. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  91. package/lib/components/booking/addons/model.d.ts +1 -10
  92. package/lib/components/booking/components/voucher/index.js +0 -1
  93. package/lib/components/booking/forms/model.d.ts +1 -10
  94. package/lib/components/booking/hooks/useQuotation.js +3 -3
  95. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  96. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  97. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  98. package/lib/components/booking/info/index.d.ts +1 -0
  99. package/lib/components/booking/info/model.d.ts +1 -10
  100. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  101. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  102. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  103. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  104. package/lib/components/booking/model.d.ts +1 -9
  105. package/lib/components/booking/notes/model.d.ts +1 -10
  106. package/lib/components/booking/payments/model.d.ts +1 -10
  107. package/lib/components/eftposPay/amount.d.ts +1 -1
  108. package/lib/components/eftposPay/device.d.ts +1 -1
  109. package/lib/components/eftposPay/hooks.d.ts +2 -2
  110. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  111. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  112. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  113. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  114. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  115. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  116. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  117. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  118. package/lib/components/kioskSkuDetail/index.js +393 -0
  119. package/lib/components/kioskSkuDetail/index.less +196 -0
  120. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  121. package/lib/components/kioskSkuDetail/locales.js +50 -0
  122. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  123. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  124. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  125. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  126. package/lib/components/pay/toC/model.d.ts +1 -9
  127. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  128. package/lib/components/schedules/model.d.ts +1 -9
  129. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  130. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  131. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  132. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  133. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  134. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  135. package/lib/components/walletList/index.js +5 -1
  136. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  137. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  138. package/lib/index.d.ts +3 -1
  139. package/lib/index.js +7 -1
  140. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  141. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  142. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  143. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
  144. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  145. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  146. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  147. package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
  148. package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
  149. package/lib/plus/skuOptionsSelection/types.js +2 -1
  150. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
  151. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  152. package/lib/plus/walletPassGallery/index.js +2 -2
  153. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  154. package/lib/pro/numberKeyboard/index.js +182 -0
  155. package/lib/pro/numberKeyboard/index.less +25 -0
  156. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  157. package/lib/pro/numberKeyboard/locales.js +35 -0
  158. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  159. package/lib/pro/pisellNumberSelector/example.js +93 -0
  160. package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
  161. package/lib/pro/pisellNumberSelector/index.js +275 -0
  162. package/lib/pro/pisellNumberSelector/index.less +235 -0
  163. package/lib/pro/skuDetailModal/index.d.ts +4 -0
  164. package/lib/pro/skuDetailModal/index.js +736 -0
  165. package/lowcode/kiosk-sku-detail/meta.ts +264 -0
  166. package/package.json +4 -4
  167. package/es/components/Sales/Cart/utils.d.ts +0 -63
  168. package/es/components/Sales/Summary/utils.d.ts +0 -51
  169. package/es/components/appointmentBooking/locales.d.ts +0 -363
  170. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  171. package/es/components/booking/dashboard/serve.d.ts +0 -1
  172. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  173. package/es/components/booking/forms/serve.d.ts +0 -18
  174. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  175. package/es/components/booking/info/client/serve.d.ts +0 -2
  176. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  177. package/es/components/booking/info/pet/serve.d.ts +0 -1
  178. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  179. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  180. package/es/components/booking/info/service/serve.d.ts +0 -20
  181. package/es/components/booking/info2/serve.d.ts +0 -6
  182. package/es/components/booking/locales.d.ts +0 -843
  183. package/es/components/eftposPay/const.d.ts +0 -184
  184. package/es/components/eftposPay/locales.d.ts +0 -330
  185. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  186. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  187. package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
  188. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  189. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  190. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  191. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  192. package/es/components/pay/toC/locales.d.ts +0 -307
  193. package/es/components/pay/toC/status.d.ts +0 -13
  194. package/es/components/ruleSetting/locales.d.ts +0 -48
  195. package/es/components/shoppingCart/locales.d.ts +0 -33
  196. package/es/components/shoppingCart/type.d.ts +0 -48
  197. package/es/components/subTotal/locales.d.ts +0 -42
  198. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  199. package/es/components/systemSettings/registry/services.d.ts +0 -77
  200. package/es/components/systemSettings/registry/types.d.ts +0 -126
  201. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  202. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  203. package/es/components/ticketBooking/locales.d.ts +0 -174
  204. package/es/components/wallet/utils.d.ts +0 -48
  205. package/es/components/walletList/locales.d.ts +0 -27
  206. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  207. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  208. package/es/hooks/useEngineContext.d.ts +0 -10
  209. package/es/hooks/useWindowSize.d.ts +0 -5
  210. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  211. package/es/plus/selectHolder/locales.d.ts +0 -21
  212. package/es/plus/selectHolder/types.d.ts +0 -104
  213. package/es/plus/selectHolder/utils.d.ts +0 -9
  214. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
  215. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
  216. package/es/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
  217. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
  218. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  219. package/es/plus/walletEditor/locales.d.ts +0 -135
  220. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  221. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  222. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  223. package/es/pro/NumericStepper/index.d.ts +0 -43
  224. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  225. package/es/pro/Selector/Item.d.ts +0 -14
  226. package/es/pro/Selector/Selector.stories.d.ts +0 -78
  227. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  228. package/es/pro/Selector/components/Card/types.d.ts +0 -1
  229. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  230. package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  231. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  232. package/es/pro/Selector/components/Media/index.d.ts +0 -6
  233. package/es/pro/Selector/components/Media/types.d.ts +0 -47
  234. package/es/pro/Selector/components/index.d.ts +0 -4
  235. package/es/pro/Selector/demo.d.ts +0 -2
  236. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  237. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  238. package/es/pro/Selector/index.d.ts +0 -11
  239. package/es/pro/Selector/locales.d.ts +0 -36
  240. package/es/pro/Selector/types.d.ts +0 -173
  241. package/es/pro/Selector/utils/index.d.ts +0 -49
  242. package/es/test/setup.d.ts +0 -1
  243. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  244. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  245. package/lib/components/appointmentBooking/locales.d.ts +0 -363
  246. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  247. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  248. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  249. package/lib/components/booking/forms/serve.d.ts +0 -18
  250. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  251. package/lib/components/booking/info/client/serve.d.ts +0 -2
  252. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  253. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  254. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  255. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  256. package/lib/components/booking/info/service/serve.d.ts +0 -20
  257. package/lib/components/booking/info2/serve.d.ts +0 -6
  258. package/lib/components/booking/locales.d.ts +0 -843
  259. package/lib/components/eftposPay/const.d.ts +0 -184
  260. package/lib/components/eftposPay/locales.d.ts +0 -330
  261. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  262. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  263. package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
  264. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  265. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  266. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  267. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  268. package/lib/components/pay/toC/locales.d.ts +0 -307
  269. package/lib/components/pay/toC/status.d.ts +0 -13
  270. package/lib/components/ruleSetting/locales.d.ts +0 -48
  271. package/lib/components/shoppingCart/locales.d.ts +0 -33
  272. package/lib/components/shoppingCart/type.d.ts +0 -48
  273. package/lib/components/subTotal/locales.d.ts +0 -42
  274. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  275. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  276. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  277. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  278. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  279. package/lib/components/ticketBooking/locales.d.ts +0 -174
  280. package/lib/components/wallet/utils.d.ts +0 -48
  281. package/lib/components/walletList/locales.d.ts +0 -27
  282. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  283. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  284. package/lib/hooks/useEngineContext.d.ts +0 -10
  285. package/lib/hooks/useWindowSize.d.ts +0 -5
  286. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  287. package/lib/plus/selectHolder/locales.d.ts +0 -21
  288. package/lib/plus/selectHolder/types.d.ts +0 -104
  289. package/lib/plus/selectHolder/utils.d.ts +0 -9
  290. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
  291. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
  292. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
  293. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
  294. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  295. package/lib/plus/walletEditor/locales.d.ts +0 -135
  296. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  297. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  298. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  299. package/lib/pro/NumericStepper/index.d.ts +0 -43
  300. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  301. package/lib/pro/Selector/Item.d.ts +0 -14
  302. package/lib/pro/Selector/Selector.stories.d.ts +0 -78
  303. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  304. package/lib/pro/Selector/components/Card/types.d.ts +0 -1
  305. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  306. package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  307. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  308. package/lib/pro/Selector/components/Media/index.d.ts +0 -6
  309. package/lib/pro/Selector/components/Media/types.d.ts +0 -47
  310. package/lib/pro/Selector/components/index.d.ts +0 -4
  311. package/lib/pro/Selector/demo.d.ts +0 -2
  312. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  313. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  314. package/lib/pro/Selector/index.d.ts +0 -11
  315. package/lib/pro/Selector/locales.d.ts +0 -36
  316. package/lib/pro/Selector/types.d.ts +0 -173
  317. package/lib/pro/Selector/utils/index.d.ts +0 -49
  318. package/lib/test/setup.d.ts +0 -1
@@ -1,184 +0,0 @@
1
- export declare enum EftposEnum {
2
- /** 后端支付 - 仅支付 */
3
- Payo = "payo",
4
- /** 前端支付 */
5
- Tyro = "tyro",
6
- /** 后端支付 - 支付 + 退款 */
7
- Windcave = "windcave",
8
- Stripe = "stripe",
9
- Linkly = "linkly"
10
- }
11
- export declare enum StatusEnum {
12
- Loading = "loading",
13
- Warn = "warn",
14
- Fail = "fail",
15
- Success = "success",
16
- Pedding = "pedding",
17
- Resove = "resove",
18
- Reject = "reject",
19
- Question = "question"
20
- }
21
- export declare enum ModeEnum {
22
- /** 支付 */
23
- Pay = "pay",
24
- /** 完整支付 */
25
- FullPay = "fullPay",
26
- /** 退款 */
27
- Refund = "refund",
28
- /** 查询 */
29
- Query = "query"
30
- }
31
- /**
32
- * 崩溃恢复
33
- */
34
- export declare enum RestoreEumn {
35
- /** 常规 */
36
- Normal = "normal",
37
- /** 恢复 */
38
- Restore = "restore"
39
- }
40
- /**
41
- * 订单状态
42
- */
43
- export declare enum OrderEumn {
44
- /** 恢复 */
45
- Restore = "restore",
46
- /** 常规 */
47
- Normal = "normal",
48
- /** 成功 */
49
- Succeed = "succeed",
50
- /** 失败 */
51
- Failed = "failed",
52
- /** 等待 */
53
- Pending = "pending",
54
- /** 没有订单状态 */
55
- Null = "null"
56
- }
57
- export declare enum ClientEnum {
58
- /** 用户端 */
59
- User = "user",
60
- /** 商家端 */
61
- Merchant = "merchant"
62
- }
63
- export declare enum RouteEnum {
64
- /** 改价页 */
65
- Amount = "amount",
66
- /** 门店列表页 */
67
- DeviceList = "deviceList",
68
- /**支付页 */
69
- Pay = "pay"
70
- }
71
- export declare enum PayRouteEnum {
72
- Step = "step",
73
- Unset = "unset"
74
- }
75
- export declare type RouteType = `${RouteEnum}`;
76
- export declare type PayRouteType = `${PayRouteEnum}`;
77
- export declare type DeviceStatusType = `${EftposEnum}`;
78
- export declare type StatusType = `${StatusEnum}`;
79
- export declare type ModeType = `${ModeEnum}`;
80
- export interface PosProps {
81
- /** 厂商类型 */
82
- type: DeviceStatusType;
83
- getApi: () => {
84
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
85
- };
86
- params: {
87
- [key: string]: unknown;
88
- };
89
- /** 回调 */
90
- onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page' | 'print' | 'mark_tx_processed', params?: {
91
- [keys: string]: unknown;
92
- } | string, other?: any) => void;
93
- onChangeParams(...agrn: unknown[]): void;
94
- terminal: {
95
- network: boolean;
96
- };
97
- device?: {
98
- [key: string]: unknown;
99
- };
100
- mode: ModeEnum;
101
- tyroUrl?: string;
102
- tyroVersion?: string;
103
- source: 'normal' | 'restore';
104
- }
105
- export interface PayProps {
106
- api: ReturnType<PosProps['getApi']>;
107
- onChange: PosProps['onChangeStatus'];
108
- className?: string;
109
- }
110
- export declare type Amount = {
111
- name: string;
112
- /** 订单金额 */
113
- money: number;
114
- /** 上一轮操作订单金额 */
115
- amount: number;
116
- /** 金额单位 */
117
- symbol: string;
118
- /** 手续费-百分率 */
119
- surRate: number;
120
- /** 手续费-是否开启 */
121
- surMoney: number;
122
- /** 手续费-是否存在 */
123
- surcharge: boolean;
124
- /** 是否使用原始手续费 */
125
- useOriginSurcharge: boolean;
126
- };
127
- export declare type PayAmount = {
128
- /** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
129
- surPercentRate: string;
130
- /** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
131
- surRate: string;
132
- /** 手续费-比例金额 amount * surPercentRate */
133
- surRateMoney: string;
134
- /** 手续费-固定金额 */
135
- surMoney: string;
136
- /** 手续费 = surPercentRate + surMoney */
137
- surcharge: string;
138
- /** 支付金额 (不包含手续费) */
139
- amount: string;
140
- /** 支付总金额 = amount + surcharge */
141
- total: string;
142
- /** 订单金额 */
143
- sourceAmount: string;
144
- /** 支付总金额带单位 + 单位 */
145
- totalUnit: string;
146
- };
147
- export declare enum PayStatus {
148
- 'Success' = "200",
149
- /** 未生成交易记录 */
150
- 'NoPay' = "4004",
151
- /** 配对失效 */
152
- 'PairingFailure' = "606020",
153
- /** 支付失败 */
154
- 'Unknown' = "701000",
155
- /** 交易请求超时 */
156
- 'Timeout' = "701001",
157
- /** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
158
- 'PayOtherEftposFailed' = "701003",
159
- /** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
160
- 'PayCardErrorFailed' = "701004",
161
- /** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
162
- 'NoNetWork' = "701005",
163
- /** 交易等待超时 */
164
- 'PayTimeout' = "701006",
165
- /** 连接失败 */
166
- 'SocketError' = "701007",
167
- /** 银行拒绝 */
168
- 'PayBankRefuses' = "701008",
169
- /** 签名拒绝 */
170
- 'SignatureDeclined' = "701009",
171
- /** 配置参数错误 */
172
- 'UserConfigError' = "701010"
173
- }
174
- export interface ActionProps {
175
- onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
176
- [key: string]: unknown;
177
- } | string) => void;
178
- api: {
179
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
180
- };
181
- className?: string;
182
- isMobile?: boolean;
183
- formatAmount: (amount: number | string, precision: number, symbol: string) => string;
184
- }
@@ -1,330 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'page.eftpos-pay.text.loading': (mode: string) => string;
4
- 'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
5
- 'page.eftpos-pay.text.surcharge': string;
6
- 'page.eftpos-pay.text.card': string;
7
- 'page.eftpos-pay.text.account': string;
8
- 'page.eftpos-pay.text.pin': string;
9
- 'page.eftpos-pay.text.receipt': string;
10
- 'page.eftpos-pay.text.receipt.again.title': string;
11
- 'page.eftpos-pay.text.receipt.again.text': string;
12
- 'page.eftpos-pay.text.signature.title': string;
13
- 'page.eftpos-pay.text.signature.text': (mode: string) => "Decline will cause payment failure, need to pay again." | "Decline will cause refund failure; a refund needs to be processed again.";
14
- 'page.eftpos-pay.text.timedout.title': string;
15
- 'page.eftpos-pay.text.timedout.text': (mode: string) => "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." | "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
16
- 'page.eftpos-pay.text.request.title': (mode: string) => string;
17
- 'page.eftpos-pay.text.request.text': (mode: string) => "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." | "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
18
- 'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
19
- 'page.eftpos-pay.text.request.unknown.text': (mode: string) => "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." | "Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.";
20
- 'page.eftpos-pay.text.interrupted': string;
21
- 'page.eftpos-pay.text.reconnect': string;
22
- 'page.eftpos-pay.text.waiting.pay': (mode: string) => "If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip." | "If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.";
23
- 'page.eftpos-pay.text.restored': string;
24
- 'page.eftpos-pay.text.disconnected': string;
25
- 'page.eftpos-pay.text.waiting.network': string;
26
- 'page.eftpos-pay.text.waiting.wifi.title': string;
27
- 'page.eftpos-pay.text.waiting.wifi.connection': string;
28
- 'page.eftpos-pay.text.waiting.wifi.router': string;
29
- 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
30
- 'page.eftpos-pay.text.accept': string;
31
- 'page.eftpos-pay.text.decline': string;
32
- 'page.eftpos-pay.text.manual.marking': string;
33
- 'page.eftpos-pay.text.manual.title': string;
34
- 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
35
- 'page.eftpos-pay.text.manual.confirm': string;
36
- 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
37
- 'page.eftpos-pay.text.manual.diff': string;
38
- 'page.eftpos-pay.text.manual.tip': string;
39
- 'page.eftpos-pay.text.manual.cancel': string;
40
- 'page.eftpos-pay.text.manual.print_receipt': string;
41
- 'page.eftpos-pay.text.modify.payment.info': (mode: string) => "Modify payment info" | "Modify refund information";
42
- 'page.eftpos-pay.text.successful': (mode: string) => string;
43
- 'page.eftpos-pay.text.failed': (mode: string) => string;
44
- 'page.eftpos-pay.text.confirm': string;
45
- 'page.eftpos-pay.text.confirm.decline': string;
46
- 'page.eftpos-pay.text.back': string;
47
- 'page.eftpos-pay.text.cancel': string;
48
- 'page.eftpos-pay.text.waiting.processing': string;
49
- 'page.eftpos-pay.text.waiting.signature': string;
50
- 'page.eftpos-pay.text.waiting.decline': string;
51
- 'page.eftpos-pay.text.processing': string;
52
- 'page.eftpos-pay.text.transaction.processing': string;
53
- 'page.eftpos-pay.text.retry': string;
54
- 'page.eftpos-pay.text.sure': string;
55
- 'page.eftpos-pay.text.device': string;
56
- 'page.eftpos-pay.text.leave': string;
57
- 'page.eftpos-pay.text.latest.success': string;
58
- 'page.eftpos-pay.text.latest.amount': string;
59
- 'page.eftpos-pay.text.latest.surcharge': string;
60
- 'page.eftpos-pay.text.latest.time': string;
61
- 'page.eftpos-pay.text.latest.confirm': string;
62
- 'page.eftpos-pay.text.amount.to.pay': string;
63
- 'page.eftpos-pay.text.surcharge.percentage': string;
64
- 'page.eftpos-pay.text.surcharge.fixed': string;
65
- 'page.eftpos-pay.text.surcharge.percentage-fixed': string;
66
- 'page.eftpos-pay.text.surcharge.edit.title': string;
67
- 'page.eftpos-pay.text.input.title': (name: string) => string;
68
- 'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
69
- 'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
70
- 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
71
- 'page.eftpos-pay.text.surcharge.edit.rate': string;
72
- 'page.eftpos-pay.text.surcharge.edit.surcharge': string;
73
- 'page.eftpos-pay.text.transaction.end': string;
74
- 'page.eftpos-pay.text.transaction.user.declined.title': string;
75
- 'page.eftpos-pay.text.transaction.user.declined.text': string;
76
- 'page.eftpos-pay.text.transaction.user.config.title': string;
77
- 'page.eftpos-pay.text.transaction.user.config.text': string;
78
- 'page.eftpos-pay.text.transaction.back.declined.title': string;
79
- 'page.eftpos-pay.text.transaction.back.declined.text': string;
80
- 'page.eftpos-pay.text.transaction.fail': string;
81
- 'page.eftpos-pay.text.transaction.fail.timeout': string;
82
- 'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
83
- 'page.eftpos-pay.text.transaction.fail.terminal.title': string;
84
- 'page.eftpos-pay.text.transaction.fail.terminal': string;
85
- 'page.eftpos-pay.text.transaction.fail.cancel.title': string;
86
- 'page.eftpos-pay.text.transaction.fail.cancel': string;
87
- 'page.eftpos-pay.text.transaction.fail.socket': string;
88
- 'page.eftpos-pay.text.transaction.eftpos.fail': string;
89
- 'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
90
- 'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
91
- 'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
92
- 'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
93
- 'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "If you have confirmed the payment status of this order, please click on Manual marking." | "If you have confirmed the refund status of this order, please click on Manual Marking.";
94
- 'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
95
- 'page.eftpos-pay.text.application': string;
96
- 'page.eftpos-pay.text.approved': string;
97
- 'page.eftpos-pay.text.device.no.title': string;
98
- 'page.eftpos-pay.text.device.no.add': string;
99
- 'page.eftpos-pay.text.device.no.web': string;
100
- 'page.eftpos-pay.text.device.no.terminal': string;
101
- 'page.eftpos-pay.text.waiting.decline.signature': string;
102
- 'page.eftpos-pay.text.unknown.title': (mode: string) => string;
103
- 'page.eftpos-pay.text.unknown.text': (mode: string) => string;
104
- 'page.eftpos-pay.text.reconnecting': string;
105
- 'page.eftpos-pay.text.reconnect.network': string;
106
- 'page.eftpos-pay.text.network.disconnected': string;
107
- 'page.eftpos-pay.text.not.connected': string;
108
- 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
109
- 'page.eftpos-pay.text.tyro': (key: string) => string;
110
- };
111
- 'zh-CN': {
112
- 'page.eftpos-pay.text.loading': (mode: string) => string;
113
- 'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
114
- 'page.eftpos-pay.text.surcharge': string;
115
- 'page.eftpos-pay.text.card': string;
116
- 'page.eftpos-pay.text.account': string;
117
- 'page.eftpos-pay.text.pin': string;
118
- 'page.eftpos-pay.text.receipt': string;
119
- 'page.eftpos-pay.text.receipt.again.title': string;
120
- 'page.eftpos-pay.text.receipt.again.text': string;
121
- 'page.eftpos-pay.text.signature.title': string;
122
- 'page.eftpos-pay.text.signature.text': (mode: string) => "拒绝将导致支付失败,需重新支付。" | "拒绝将导致退款失败;需要重新退款";
123
- 'page.eftpos-pay.text.timedout.title': string;
124
- 'page.eftpos-pay.text.timedout.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。";
125
- 'page.eftpos-pay.text.request.title': (mode: string) => string;
126
- 'page.eftpos-pay.text.request.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。";
127
- 'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
128
- 'page.eftpos-pay.text.request.unknown.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请您根据刷卡机上的退款状态,手动标记退款结果,以确保交易的准确性。";
129
- 'page.eftpos-pay.text.interrupted': string;
130
- 'page.eftpos-pay.text.reconnect': string;
131
- 'page.eftpos-pay.text.waiting.pay': (mode: string) => "如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。" | "如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。";
132
- 'page.eftpos-pay.text.restored': string;
133
- 'page.eftpos-pay.text.disconnected': string;
134
- 'page.eftpos-pay.text.waiting.network': string;
135
- 'page.eftpos-pay.text.waiting.wifi.title': string;
136
- 'page.eftpos-pay.text.waiting.wifi.connection': string;
137
- 'page.eftpos-pay.text.waiting.wifi.router': string;
138
- 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
139
- 'page.eftpos-pay.text.accept': string;
140
- 'page.eftpos-pay.text.decline': string;
141
- 'page.eftpos-pay.text.manual.marking': string;
142
- 'page.eftpos-pay.text.manual.title': string;
143
- 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
144
- 'page.eftpos-pay.text.manual.confirm': string;
145
- 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
146
- 'page.eftpos-pay.text.manual.diff': string;
147
- 'page.eftpos-pay.text.manual.tip': string;
148
- 'page.eftpos-pay.text.manual.cancel': string;
149
- 'page.eftpos-pay.text.manual.print_receipt': string;
150
- 'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
151
- 'page.eftpos-pay.text.successful': (mode: string) => string;
152
- 'page.eftpos-pay.text.failed': (mode: string) => string;
153
- 'page.eftpos-pay.text.confirm': string;
154
- 'page.eftpos-pay.text.confirm.decline': string;
155
- 'page.eftpos-pay.text.back': string;
156
- 'page.eftpos-pay.text.cancel': string;
157
- 'page.eftpos-pay.text.waiting.processing': string;
158
- 'page.eftpos-pay.text.waiting.signature': string;
159
- 'page.eftpos-pay.text.waiting.decline': string;
160
- 'page.eftpos-pay.text.processing': string;
161
- 'page.eftpos-pay.text.transaction.processing': string;
162
- 'page.eftpos-pay.text.retry': string;
163
- 'page.eftpos-pay.text.sure': string;
164
- 'page.eftpos-pay.text.device': string;
165
- 'page.eftpos-pay.text.leave': string;
166
- 'page.eftpos-pay.text.latest.success': string;
167
- 'page.eftpos-pay.text.latest.amount': string;
168
- 'page.eftpos-pay.text.latest.surcharge': string;
169
- 'page.eftpos-pay.text.latest.time': string;
170
- 'page.eftpos-pay.text.latest.confirm': string;
171
- 'page.eftpos-pay.text.amount.to.pay': string;
172
- 'page.eftpos-pay.text.surcharge.percentage': string;
173
- 'page.eftpos-pay.text.surcharge.fixed': string;
174
- 'page.eftpos-pay.text.surcharge.percentage-fixed': string;
175
- 'page.eftpos-pay.text.surcharge.edit.title': string;
176
- 'page.eftpos-pay.text.input.title': (name: string) => string;
177
- 'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
178
- 'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
179
- 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
180
- 'page.eftpos-pay.text.surcharge.edit.rate': string;
181
- 'page.eftpos-pay.text.surcharge.edit.surcharge': string;
182
- 'page.eftpos-pay.text.transaction.end': string;
183
- 'page.eftpos-pay.text.transaction.user.declined.title': string;
184
- 'page.eftpos-pay.text.transaction.user.declined.text': string;
185
- 'page.eftpos-pay.text.transaction.user.config.title': string;
186
- 'page.eftpos-pay.text.transaction.user.config.text': string;
187
- 'page.eftpos-pay.text.transaction.back.declined.title': string;
188
- 'page.eftpos-pay.text.transaction.back.declined.text': string;
189
- 'page.eftpos-pay.text.transaction.fail': string;
190
- 'page.eftpos-pay.text.transaction.fail.timeout': string;
191
- 'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
192
- 'page.eftpos-pay.text.transaction.fail.terminal.title': string;
193
- 'page.eftpos-pay.text.transaction.fail.terminal': string;
194
- 'page.eftpos-pay.text.transaction.fail.cancel.title': string;
195
- 'page.eftpos-pay.text.transaction.fail.cancel': string;
196
- 'page.eftpos-pay.text.transaction.fail.socket': string;
197
- 'page.eftpos-pay.text.transaction.eftpos.fail': string;
198
- 'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
199
- 'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
200
- 'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
201
- 'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
202
- 'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "如果您已确认此交易的付款状态,请点击手动标记" | "如果您已确认此订单的退款状态,请点击手动标记。";
203
- 'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
204
- 'page.eftpos-pay.text.application': string;
205
- 'page.eftpos-pay.text.approved': string;
206
- 'page.eftpos-pay.text.device.no.title': string;
207
- 'page.eftpos-pay.text.device.no.add': string;
208
- 'page.eftpos-pay.text.device.no.web': string;
209
- 'page.eftpos-pay.text.device.no.terminal': string;
210
- 'page.eftpos-pay.text.waiting.decline.signature': string;
211
- 'page.eftpos-pay.text.unknown.title': (mode: string) => string;
212
- 'page.eftpos-pay.text.unknown.text': (mode: string) => string;
213
- 'page.eftpos-pay.text.reconnecting': string;
214
- 'page.eftpos-pay.text.reconnect.network': string;
215
- 'page.eftpos-pay.text.network.disconnected': string;
216
- 'page.eftpos-pay.text.not.connected': string;
217
- 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
218
- 'page.eftpos-pay.text.tyro': (key: string) => string | string[];
219
- };
220
- 'zh-HK': {
221
- 'page.eftpos-pay.text.loading': (mode: string) => string;
222
- 'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
223
- 'page.eftpos-pay.text.surcharge': string;
224
- 'page.eftpos-pay.text.card': string;
225
- 'page.eftpos-pay.text.account': string;
226
- 'page.eftpos-pay.text.pin': string;
227
- 'page.eftpos-pay.text.receipt': string;
228
- 'page.eftpos-pay.text.receipt.again.title': string;
229
- 'page.eftpos-pay.text.receipt.again.text': string;
230
- 'page.eftpos-pay.text.signature.title': string;
231
- 'page.eftpos-pay.text.signature.text': (mode: string) => "拒絕將導致支付失敗,需重新支付。" | "拒絕將導致退款失敗;需要重新退款";
232
- 'page.eftpos-pay.text.timedout.title': string;
233
- 'page.eftpos-pay.text.timedout.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。";
234
- 'page.eftpos-pay.text.request.title': (mode: string) => string;
235
- 'page.eftpos-pay.text.request.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。";
236
- 'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
237
- 'page.eftpos-pay.text.request.unknown.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請您根據刷卡機上的退款狀態,手動標記退款結果,以確保交易的準確性。";
238
- 'page.eftpos-pay.text.interrupted': string;
239
- 'page.eftpos-pay.text.reconnect': string;
240
- 'page.eftpos-pay.text.waiting.pay': (mode: string) => "如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。" | "如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。";
241
- 'page.eftpos-pay.text.restored': string;
242
- 'page.eftpos-pay.text.disconnected': string;
243
- 'page.eftpos-pay.text.waiting.network': string;
244
- 'page.eftpos-pay.text.waiting.wifi.title': string;
245
- 'page.eftpos-pay.text.waiting.wifi.connection': string;
246
- 'page.eftpos-pay.text.waiting.wifi.router': string;
247
- 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
248
- 'page.eftpos-pay.text.accept': string;
249
- 'page.eftpos-pay.text.decline': string;
250
- 'page.eftpos-pay.text.manual.marking': string;
251
- 'page.eftpos-pay.text.manual.title': string;
252
- 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
253
- 'page.eftpos-pay.text.manual.confirm': string;
254
- 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
255
- 'page.eftpos-pay.text.manual.diff': string;
256
- 'page.eftpos-pay.text.manual.tip': string;
257
- 'page.eftpos-pay.text.manual.cancel': string;
258
- 'page.eftpos-pay.text.manual.print_receipt': string;
259
- 'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
260
- 'page.eftpos-pay.text.successful': (mode: string) => string;
261
- 'page.eftpos-pay.text.failed': (mode: string) => string;
262
- 'page.eftpos-pay.text.confirm': string;
263
- 'page.eftpos-pay.text.confirm.decline': string;
264
- 'page.eftpos-pay.text.back': string;
265
- 'page.eftpos-pay.text.cancel': string;
266
- 'page.eftpos-pay.text.waiting.processing': string;
267
- 'page.eftpos-pay.text.waiting.signature': string;
268
- 'page.eftpos-pay.text.waiting.decline': string;
269
- 'page.eftpos-pay.text.processing': string;
270
- 'page.eftpos-pay.text.transaction.processing': string;
271
- 'page.eftpos-pay.text.retry': string;
272
- 'page.eftpos-pay.text.sure': string;
273
- 'page.eftpos-pay.text.device': string;
274
- 'page.eftpos-pay.text.leave': string;
275
- 'page.eftpos-pay.text.latest.success': string;
276
- 'page.eftpos-pay.text.latest.amount': string;
277
- 'page.eftpos-pay.text.latest.surcharge': string;
278
- 'page.eftpos-pay.text.latest.time': string;
279
- 'page.eftpos-pay.text.latest.confirm': string;
280
- 'page.eftpos-pay.text.amount.to.pay': string;
281
- 'page.eftpos-pay.text.surcharge.percentage': string;
282
- 'page.eftpos-pay.text.surcharge.fixed': string;
283
- 'page.eftpos-pay.text.surcharge.percentage-fixed': string;
284
- 'page.eftpos-pay.text.surcharge.edit.title': string;
285
- 'page.eftpos-pay.text.input.title': (name: string) => string;
286
- 'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
287
- 'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
288
- 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
289
- 'page.eftpos-pay.text.surcharge.edit.rate': string;
290
- 'page.eftpos-pay.text.surcharge.edit.surcharge': string;
291
- 'page.eftpos-pay.text.transaction.end': string;
292
- 'page.eftpos-pay.text.transaction.user.declined.title': string;
293
- 'page.eftpos-pay.text.transaction.user.declined.text': string;
294
- 'page.eftpos-pay.text.transaction.user.config.title': string;
295
- 'page.eftpos-pay.text.transaction.user.config.text': string;
296
- 'page.eftpos-pay.text.transaction.back.declined.title': string;
297
- 'page.eftpos-pay.text.transaction.back.declined.text': string;
298
- 'page.eftpos-pay.text.transaction.fail': string;
299
- 'page.eftpos-pay.text.transaction.fail.timeout': string;
300
- 'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
301
- 'page.eftpos-pay.text.transaction.fail.terminal.title': string;
302
- 'page.eftpos-pay.text.transaction.fail.terminal': string;
303
- 'page.eftpos-pay.text.transaction.fail.cancel.title': string;
304
- 'page.eftpos-pay.text.transaction.fail.cancel': string;
305
- 'page.eftpos-pay.text.transaction.fail.socket': string;
306
- 'page.eftpos-pay.text.transaction.eftpos.fail': string;
307
- 'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
308
- 'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
309
- 'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
310
- 'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
311
- 'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "如果您已確認此交易的付款狀態,請點擊手動標記" | "如果您已確認此訂單的退款狀態,請點擊手動標記。";
312
- 'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
313
- 'page.eftpos-pay.text.application': string;
314
- 'page.eftpos-pay.text.approved': string;
315
- 'page.eftpos-pay.text.device.no.title': string;
316
- 'page.eftpos-pay.text.device.no.add': string;
317
- 'page.eftpos-pay.text.device.no.web': string;
318
- 'page.eftpos-pay.text.device.no.terminal': string;
319
- 'page.eftpos-pay.text.waiting.decline.signature': string;
320
- 'page.eftpos-pay.text.unknown.title': (mode: string) => string;
321
- 'page.eftpos-pay.text.unknown.text': (mode: string) => string;
322
- 'page.eftpos-pay.text.reconnecting': string;
323
- 'page.eftpos-pay.text.reconnect.network': string;
324
- 'page.eftpos-pay.text.network.disconnected': string;
325
- 'page.eftpos-pay.text.not.connected': string;
326
- 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
327
- 'page.eftpos-pay.text.tyro': (key: string) => string | string[];
328
- };
329
- };
330
- export default _default;
@@ -1,7 +0,0 @@
1
- import { State } from './store';
2
- export { getAmonunt } from './helper';
3
- export { default as Payo } from './payo';
4
- export { default as Windcave } from './windcave/windcave';
5
- export { default as Tyro } from './tyro';
6
- export { default as Linkly } from './linkly';
7
- export declare const getInitState: (type: string, params?: any) => State;
@@ -1,66 +0,0 @@
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 {};
@@ -1,36 +0,0 @@
1
- /**
2
- * @description: visa/master手续费是否一致
3
- * @param {any} creditCardConfig
4
- * @return {*}
5
- */
6
- export declare const isCreditCardSurchargeSame: (creditCardConfig: any[]) => boolean;
7
- /**
8
- * @description: 格式化visa/master手续费
9
- * @param {any} item 支付列表项
10
- * @param {number} amount 订单金额
11
- * @param {boolean} isSame 手续费是否一致
12
- * @return {*}
13
- */
14
- export declare const formatCreditCardSurcharge: (item: any, amount: number, isSame: boolean) => any;
15
- /**
16
- * @description: 格式化visa/master手续费列表
17
- * @param {any} item
18
- * @param {number} amount
19
- * @return {*}
20
- */
21
- export declare const formatCreditCardSurchargeList: (item: any, amount: number) => any;
22
- /**
23
- * @description: 格式化visa/master手续费文案,只显示百分比区间
24
- * @return {*}
25
- */
26
- export declare const formatCreditCardSurchargeText: (surcharge_config: any[], surcharge_text: string) => string;
27
- /**
28
- * @title: 计算支付列表的手续费
29
- * @description:
30
- * @param {any} paymentList
31
- * @param {number} amount
32
- * @return {*}
33
- * @Author: zhiwei.Wang
34
- * @Date: 2024-08-18 09:30
35
- */
36
- export declare const calculateSurcharge: (paymentList: any[], amount: number) => any[];
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare type PaymentStatusProps = {
3
- onChange: (status: 'succeeded' | 'processing' | 'requires_payment_method' | 'error') => void;
4
- };
5
- declare const PaymentStatus: React.FC<PaymentStatusProps>;
6
- export default PaymentStatus;
@@ -1,2 +0,0 @@
1
- declare const StripePayment: () => JSX.Element;
2
- export default StripePayment;
@@ -1,2 +0,0 @@
1
- declare const PageLoading: () => JSX.Element;
2
- export default PageLoading;
@@ -1,2 +0,0 @@
1
- declare const PaymentRequestForm: () => JSX.Element | null;
2
- export default PaymentRequestForm;