@pisell/private-materials 6.3.114 → 6.3.116

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 (281) 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.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/addons/model.d.ts +1 -10
  8. package/es/components/booking/forms/model.d.ts +1 -10
  9. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  10. package/es/components/booking/info/model.d.ts +1 -10
  11. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  12. package/es/components/booking/info/service2/utils.d.ts +1 -1
  13. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/model.d.ts +1 -9
  15. package/es/components/booking/notes/model.d.ts +1 -10
  16. package/es/components/booking/payments/model.d.ts +1 -10
  17. package/es/components/eftpos/index.js +3 -3
  18. package/es/components/eftposPay/aggregatePayment/utils/payment.js +7 -1
  19. package/es/components/eftposPay/device.js +7 -3
  20. package/es/components/eftposPay/hooks.d.ts +2 -2
  21. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  22. package/es/components/pay/toC/model.d.ts +1 -9
  23. package/es/components/schedules/model.d.ts +1 -9
  24. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  25. package/lib/components/booking/addons/model.d.ts +1 -10
  26. package/lib/components/booking/forms/model.d.ts +1 -10
  27. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  28. package/lib/components/booking/info/model.d.ts +1 -10
  29. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  30. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  31. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  32. package/lib/components/booking/model.d.ts +1 -9
  33. package/lib/components/booking/notes/model.d.ts +1 -10
  34. package/lib/components/booking/payments/model.d.ts +1 -10
  35. package/lib/components/eftpos/index.js +3 -3
  36. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +6 -1
  37. package/lib/components/eftposPay/device.js +24 -21
  38. package/lib/components/eftposPay/hooks.d.ts +2 -2
  39. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  40. package/lib/components/pay/toC/model.d.ts +1 -9
  41. package/lib/components/schedules/model.d.ts +1 -9
  42. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  43. package/package.json +3 -3
  44. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  45. package/es/components/appointmentBooking/locales.d.ts +0 -366
  46. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  47. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  48. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  51. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  52. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  53. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  54. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  55. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  56. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  57. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  58. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  59. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  60. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  61. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  62. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  63. package/es/components/booking/dashboard/serve.d.ts +0 -1
  64. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  65. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  66. package/es/components/booking/forms/serve.d.ts +0 -18
  67. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  68. package/es/components/booking/info/client/serve.d.ts +0 -2
  69. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  70. package/es/components/booking/info/pet/serve.d.ts +0 -1
  71. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  72. package/es/components/booking/info/service/serve.d.ts +0 -20
  73. package/es/components/booking/info2/serve.d.ts +0 -6
  74. package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
  75. package/es/components/booking/locales.d.ts +0 -846
  76. package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
  77. package/es/components/eftpos/SettlementModal/Action.d.ts +0 -8
  78. package/es/components/eftpos/SettlementModal/types.d.ts +0 -138
  79. package/es/components/eftpos/const.d.ts +0 -66
  80. package/es/components/eftpos/hooks.d.ts +0 -46
  81. package/es/components/eftpos/locales.d.ts +0 -138
  82. package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  83. package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  84. package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -101
  85. package/es/components/eftposPay/app.d.ts +0 -11
  86. package/es/components/eftposPay/const.d.ts +0 -191
  87. package/es/components/eftposPay/locales.d.ts +0 -333
  88. package/es/components/eftposPay/mx51/Action.d.ts +0 -7
  89. package/es/components/eftposPay/mx51/types.d.ts +0 -138
  90. package/es/components/eftposPay/mx51/utils.d.ts +0 -10
  91. package/es/components/eftposPay/store/index.d.ts +0 -355
  92. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  93. package/es/components/eventBooking/locales.d.ts +0 -246
  94. package/es/components/kioskSkuDetail/locales.d.ts +0 -27
  95. package/es/components/login/locales.d.ts +0 -24
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  100. package/es/components/pay/toC/locales.d.ts +0 -307
  101. package/es/components/pinModal/locales.d.ts +0 -27
  102. package/es/components/pinVerifyModal/locales.d.ts +0 -24
  103. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  104. package/es/components/productExtension/locales.d.ts +0 -48
  105. package/es/components/productSelect/locales.d.ts +0 -18
  106. package/es/components/ruleSetting/locales.d.ts +0 -48
  107. package/es/components/schedules/locales.d.ts +0 -87
  108. package/es/components/shoppingCart/Provider.d.ts +0 -3
  109. package/es/components/shoppingCart/locales.d.ts +0 -33
  110. package/es/components/shoppingCart/mock.d.ts +0 -40
  111. package/es/components/shoppingCart/type.d.ts +0 -48
  112. package/es/components/shoppingCart/utils.d.ts +0 -63
  113. package/es/components/stepController/locales.d.ts +0 -27
  114. package/es/components/subTotal/locales.d.ts +0 -42
  115. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  116. package/es/components/systemSettings/registry/services.d.ts +0 -77
  117. package/es/components/systemSettings/registry/types.d.ts +0 -126
  118. package/es/components/taxSelect/locales.d.ts +0 -24
  119. package/es/components/ticketBooking/locales.d.ts +0 -174
  120. package/es/components/wallet/utils.d.ts +0 -48
  121. package/es/components/walletList/locales.d.ts +0 -27
  122. package/es/components/walletList/types/index.d.ts +0 -194
  123. package/es/hooks/useEngineContext.d.ts +0 -10
  124. package/es/hooks/useLocale.d.ts +0 -2
  125. package/es/hooks/useWindowSize.d.ts +0 -5
  126. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  127. package/es/plus/contactInfo/locales.d.ts +0 -15
  128. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  129. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  130. package/es/plus/productSelect/locales.d.ts +0 -18
  131. package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
  132. package/es/plus/saasLogin/locales.d.ts +0 -51
  133. package/es/plus/saasRegister/locales.d.ts +0 -117
  134. package/es/plus/selectHolder/locales.d.ts +0 -21
  135. package/es/plus/skuOptionsSelection/locales.d.ts +0 -33
  136. package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
  137. package/es/plus/skuOptionsSelection/types.d.ts +0 -429
  138. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  139. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  140. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  141. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  142. package/es/plus/walletEditor/locales.d.ts +0 -135
  143. package/es/plus/walletEditor/types.d.ts +0 -52
  144. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  145. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  146. package/es/pro/Login2.0/locales.d.ts +0 -543
  147. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  148. package/es/pro/NumericStepper/index.d.ts +0 -43
  149. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  150. package/es/pro/Selector/Item.d.ts +0 -14
  151. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  152. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  153. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  154. package/es/pro/Selector/components/Media/index.d.ts +0 -6
  155. package/es/pro/Selector/demo.d.ts +0 -3
  156. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  157. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  158. package/es/pro/Selector/locales.d.ts +0 -36
  159. package/es/pro/Selector/types.d.ts +0 -173
  160. package/es/pro/Selector/utils/index.d.ts +0 -49
  161. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  162. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  163. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  164. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  165. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  166. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  167. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  168. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  169. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  170. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  171. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  172. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  173. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  174. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  175. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  176. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  177. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  178. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  179. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  180. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  181. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  182. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  183. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  184. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  185. package/lib/components/booking/forms/serve.d.ts +0 -18
  186. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  187. package/lib/components/booking/info/client/serve.d.ts +0 -2
  188. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  189. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  190. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  191. package/lib/components/booking/info/service/serve.d.ts +0 -20
  192. package/lib/components/booking/info2/serve.d.ts +0 -6
  193. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
  194. package/lib/components/booking/locales.d.ts +0 -846
  195. package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
  196. package/lib/components/eftpos/SettlementModal/Action.d.ts +0 -8
  197. package/lib/components/eftpos/SettlementModal/types.d.ts +0 -138
  198. package/lib/components/eftpos/const.d.ts +0 -66
  199. package/lib/components/eftpos/hooks.d.ts +0 -46
  200. package/lib/components/eftpos/locales.d.ts +0 -138
  201. package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  202. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  203. package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -101
  204. package/lib/components/eftposPay/app.d.ts +0 -11
  205. package/lib/components/eftposPay/const.d.ts +0 -191
  206. package/lib/components/eftposPay/locales.d.ts +0 -333
  207. package/lib/components/eftposPay/mx51/Action.d.ts +0 -7
  208. package/lib/components/eftposPay/mx51/types.d.ts +0 -138
  209. package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
  210. package/lib/components/eftposPay/store/index.d.ts +0 -355
  211. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  212. package/lib/components/eventBooking/locales.d.ts +0 -246
  213. package/lib/components/kioskSkuDetail/locales.d.ts +0 -27
  214. package/lib/components/login/locales.d.ts +0 -24
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  216. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  217. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  218. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  219. package/lib/components/pay/toC/locales.d.ts +0 -307
  220. package/lib/components/pinModal/locales.d.ts +0 -27
  221. package/lib/components/pinVerifyModal/locales.d.ts +0 -24
  222. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  223. package/lib/components/productExtension/locales.d.ts +0 -48
  224. package/lib/components/productSelect/locales.d.ts +0 -18
  225. package/lib/components/ruleSetting/locales.d.ts +0 -48
  226. package/lib/components/schedules/locales.d.ts +0 -87
  227. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  228. package/lib/components/shoppingCart/locales.d.ts +0 -33
  229. package/lib/components/shoppingCart/mock.d.ts +0 -40
  230. package/lib/components/shoppingCart/type.d.ts +0 -48
  231. package/lib/components/shoppingCart/utils.d.ts +0 -63
  232. package/lib/components/stepController/locales.d.ts +0 -27
  233. package/lib/components/subTotal/locales.d.ts +0 -42
  234. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  235. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  236. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  237. package/lib/components/taxSelect/locales.d.ts +0 -24
  238. package/lib/components/ticketBooking/locales.d.ts +0 -174
  239. package/lib/components/wallet/utils.d.ts +0 -48
  240. package/lib/components/walletList/locales.d.ts +0 -27
  241. package/lib/components/walletList/types/index.d.ts +0 -194
  242. package/lib/hooks/useEngineContext.d.ts +0 -10
  243. package/lib/hooks/useLocale.d.ts +0 -2
  244. package/lib/hooks/useWindowSize.d.ts +0 -5
  245. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  246. package/lib/plus/contactInfo/locales.d.ts +0 -15
  247. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  248. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  249. package/lib/plus/productSelect/locales.d.ts +0 -18
  250. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
  251. package/lib/plus/saasLogin/locales.d.ts +0 -51
  252. package/lib/plus/saasRegister/locales.d.ts +0 -117
  253. package/lib/plus/selectHolder/locales.d.ts +0 -21
  254. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -33
  255. package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
  256. package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
  257. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  258. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  259. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  260. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  261. package/lib/plus/walletEditor/locales.d.ts +0 -135
  262. package/lib/plus/walletEditor/types.d.ts +0 -52
  263. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  264. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  265. package/lib/pro/Login2.0/locales.d.ts +0 -543
  266. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  267. package/lib/pro/NumericStepper/index.d.ts +0 -43
  268. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  269. package/lib/pro/Selector/Item.d.ts +0 -14
  270. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  271. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  272. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  273. package/lib/pro/Selector/components/Media/index.d.ts +0 -6
  274. package/lib/pro/Selector/demo.d.ts +0 -3
  275. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  276. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  277. package/lib/pro/Selector/locales.d.ts +0 -36
  278. package/lib/pro/Selector/types.d.ts +0 -173
  279. package/lib/pro/Selector/utils/index.d.ts +0 -49
  280. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  281. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
@@ -1,191 +0,0 @@
1
- export declare enum EftposEnum {
2
- /** 后端支付 - 仅支付 */
3
- Payo = "payo",
4
- /** 前端支付 */
5
- Tyro = "tyro",
6
- /** 后端支付 - 支付 + 退款 */
7
- Windcave = "windcave",
8
- Stripe = "stripe",
9
- /** 后端支付 - 支付 + 退款 */
10
- Linkly = "linkly",
11
- /** mx51支付 - 支付 + 退款 */
12
- MX51 = "mx51"
13
- }
14
- export declare enum StatusEnum {
15
- Loading = "loading",
16
- Warn = "warn",
17
- Fail = "fail",
18
- Success = "success",
19
- Pedding = "pedding",
20
- Resove = "resove",
21
- Reject = "reject",
22
- Question = "question"
23
- }
24
- export declare enum ModeEnum {
25
- /** 支付 */
26
- Pay = "pay",
27
- /** 完整支付 */
28
- FullPay = "fullPay",
29
- /** 退款 */
30
- Refund = "refund",
31
- /** 查询 */
32
- Query = "query"
33
- }
34
- /**
35
- * 崩溃恢复
36
- */
37
- export declare enum RestoreEumn {
38
- /** 常规 */
39
- Normal = "normal",
40
- /** 恢复 */
41
- Restore = "restore"
42
- }
43
- /**
44
- * 订单状态
45
- */
46
- export declare enum OrderEumn {
47
- /** 恢复 */
48
- Restore = "restore",
49
- /** 常规 */
50
- Normal = "normal",
51
- /** 成功 */
52
- Succeed = "succeed",
53
- /** 失败 */
54
- Failed = "failed",
55
- /** 等待 */
56
- Pending = "pending",
57
- /** 没有订单状态 */
58
- Null = "null"
59
- }
60
- export declare enum ClientEnum {
61
- /** 用户端 */
62
- User = "user",
63
- /** 商家端 */
64
- Merchant = "merchant"
65
- }
66
- export declare enum RouteEnum {
67
- /** 改价页 */
68
- Amount = "amount",
69
- /** 门店列表页 */
70
- DeviceList = "deviceList",
71
- /**支付页 */
72
- Pay = "pay"
73
- }
74
- export declare enum PayRouteEnum {
75
- Step = "step",
76
- Unset = "unset"
77
- }
78
- export declare type RouteType = `${RouteEnum}`;
79
- export declare type PayRouteType = `${PayRouteEnum}`;
80
- export declare type DeviceStatusType = `${EftposEnum}`;
81
- export declare type StatusType = `${StatusEnum}`;
82
- export declare type ModeType = `${ModeEnum}`;
83
- export interface PosProps {
84
- /** 厂商类型 */
85
- type: DeviceStatusType;
86
- getApi: () => {
87
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
88
- };
89
- params: {
90
- [key: string]: unknown;
91
- };
92
- /** 回调 */
93
- onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page' | 'print' | 'mark_tx_processed', params?: {
94
- [keys: string]: unknown;
95
- } | string, other?: any) => void;
96
- onChangeParams(...agrn: unknown[]): void;
97
- terminal: {
98
- network: boolean;
99
- };
100
- device?: {
101
- [key: string]: unknown;
102
- };
103
- mode: ModeEnum;
104
- tyroUrl?: string;
105
- tyroVersion?: string;
106
- source: 'normal' | 'restore';
107
- }
108
- export interface PayProps {
109
- api: ReturnType<PosProps['getApi']>;
110
- onChange: PosProps['onChangeStatus'];
111
- className?: string;
112
- }
113
- export declare type Amount = {
114
- name: string;
115
- /** 订单金额 */
116
- money: number;
117
- /** 上一轮操作订单金额 */
118
- amount: number;
119
- /** 金额单位 */
120
- symbol: string;
121
- /** 手续费-百分率 */
122
- surRate: number;
123
- /** 手续费-是否开启 */
124
- surMoney: number;
125
- /** 手续费-是否存在 */
126
- surcharge: boolean;
127
- /** 是否使用原始手续费 */
128
- useOriginSurcharge: boolean;
129
- };
130
- export declare type PayAmount = {
131
- /** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
132
- surPercentRate: string;
133
- /** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
134
- surRate: string;
135
- /** 手续费-比例金额 amount * surPercentRate */
136
- surRateMoney: string;
137
- /** 手续费-固定金额 */
138
- surMoney: string;
139
- /** 手续费 = surPercentRate + surMoney */
140
- surcharge: string;
141
- /** 支付金额 (不包含手续费) */
142
- amount: string;
143
- /** 支付总金额 = amount + surcharge */
144
- total: string;
145
- /** 订单金额 */
146
- sourceAmount: string;
147
- /** 支付总金额带单位 + 单位 */
148
- totalUnit: string;
149
- };
150
- export declare enum PayStatus {
151
- 'Success' = "200",
152
- /** 未生成交易记录 */
153
- 'NoPay' = "4004",
154
- /** 配对失效 */
155
- 'PairingFailure' = "606020",
156
- /** 支付失败 */
157
- 'Unknown' = "701000",
158
- /** 交易请求超时 */
159
- 'Timeout' = "701001",
160
- /** 支付失败 */
161
- 'PaymentFailed' = "701002",
162
- /** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
163
- 'PayOtherEftposFailed' = "701003",
164
- /** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
165
- 'PayCardErrorFailed' = "701004",
166
- /** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
167
- 'NoNetWork' = "701005",
168
- /** 交易等待超时 */
169
- 'PayTimeout' = "701006",
170
- /** 连接失败 */
171
- 'SocketError' = "701007",
172
- /** 银行拒绝 */
173
- 'PayBankRefuses' = "701008",
174
- /** 签名拒绝 */
175
- 'SignatureDeclined' = "701009",
176
- /** 配置参数错误 */
177
- 'UserConfigError' = "701010",
178
- /** mx51未知状态 */
179
- 'UnknownMx51' = "702001"
180
- }
181
- export interface ActionProps {
182
- onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
183
- [key: string]: unknown;
184
- } | string) => void;
185
- api: {
186
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
187
- };
188
- className?: string;
189
- isMobile?: boolean;
190
- formatAmount: (amount: number | string, precision: number, symbol: string) => string;
191
- }
@@ -1,333 +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
- 'page.eftpos-pay.text.mx51.result.loading': string;
111
- };
112
- 'zh-CN': {
113
- 'page.eftpos-pay.text.loading': (mode: string) => string;
114
- 'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
115
- 'page.eftpos-pay.text.surcharge': string;
116
- 'page.eftpos-pay.text.card': string;
117
- 'page.eftpos-pay.text.account': string;
118
- 'page.eftpos-pay.text.pin': string;
119
- 'page.eftpos-pay.text.receipt': string;
120
- 'page.eftpos-pay.text.receipt.again.title': string;
121
- 'page.eftpos-pay.text.receipt.again.text': string;
122
- 'page.eftpos-pay.text.signature.title': string;
123
- 'page.eftpos-pay.text.signature.text': (mode: string) => "拒绝将导致支付失败,需重新支付。" | "拒绝将导致退款失败;需要重新退款";
124
- 'page.eftpos-pay.text.timedout.title': string;
125
- 'page.eftpos-pay.text.timedout.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。";
126
- 'page.eftpos-pay.text.request.title': (mode: string) => string;
127
- 'page.eftpos-pay.text.request.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。";
128
- 'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
129
- 'page.eftpos-pay.text.request.unknown.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请您根据刷卡机上的退款状态,手动标记退款结果,以确保交易的准确性。";
130
- 'page.eftpos-pay.text.interrupted': string;
131
- 'page.eftpos-pay.text.reconnect': string;
132
- 'page.eftpos-pay.text.waiting.pay': (mode: string) => "如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。" | "如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。";
133
- 'page.eftpos-pay.text.restored': string;
134
- 'page.eftpos-pay.text.disconnected': string;
135
- 'page.eftpos-pay.text.waiting.network': string;
136
- 'page.eftpos-pay.text.waiting.wifi.title': string;
137
- 'page.eftpos-pay.text.waiting.wifi.connection': string;
138
- 'page.eftpos-pay.text.waiting.wifi.router': string;
139
- 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
140
- 'page.eftpos-pay.text.accept': string;
141
- 'page.eftpos-pay.text.decline': string;
142
- 'page.eftpos-pay.text.manual.marking': string;
143
- 'page.eftpos-pay.text.manual.title': string;
144
- 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
145
- 'page.eftpos-pay.text.manual.confirm': string;
146
- 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
147
- 'page.eftpos-pay.text.manual.diff': string;
148
- 'page.eftpos-pay.text.manual.tip': string;
149
- 'page.eftpos-pay.text.manual.cancel': string;
150
- 'page.eftpos-pay.text.manual.print_receipt': string;
151
- 'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
152
- 'page.eftpos-pay.text.successful': (mode: string) => string;
153
- 'page.eftpos-pay.text.failed': (mode: string) => string;
154
- 'page.eftpos-pay.text.confirm': string;
155
- 'page.eftpos-pay.text.confirm.decline': string;
156
- 'page.eftpos-pay.text.back': string;
157
- 'page.eftpos-pay.text.cancel': string;
158
- 'page.eftpos-pay.text.waiting.processing': string;
159
- 'page.eftpos-pay.text.waiting.signature': string;
160
- 'page.eftpos-pay.text.waiting.decline': string;
161
- 'page.eftpos-pay.text.processing': string;
162
- 'page.eftpos-pay.text.transaction.processing': string;
163
- 'page.eftpos-pay.text.retry': string;
164
- 'page.eftpos-pay.text.sure': string;
165
- 'page.eftpos-pay.text.device': string;
166
- 'page.eftpos-pay.text.leave': string;
167
- 'page.eftpos-pay.text.latest.success': string;
168
- 'page.eftpos-pay.text.latest.amount': string;
169
- 'page.eftpos-pay.text.latest.surcharge': string;
170
- 'page.eftpos-pay.text.latest.time': string;
171
- 'page.eftpos-pay.text.latest.confirm': string;
172
- 'page.eftpos-pay.text.amount.to.pay': string;
173
- 'page.eftpos-pay.text.surcharge.percentage': string;
174
- 'page.eftpos-pay.text.surcharge.fixed': string;
175
- 'page.eftpos-pay.text.surcharge.percentage-fixed': string;
176
- 'page.eftpos-pay.text.surcharge.edit.title': string;
177
- 'page.eftpos-pay.text.input.title': (name: string) => string;
178
- 'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
179
- 'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
180
- 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
181
- 'page.eftpos-pay.text.surcharge.edit.rate': string;
182
- 'page.eftpos-pay.text.surcharge.edit.surcharge': string;
183
- 'page.eftpos-pay.text.transaction.end': string;
184
- 'page.eftpos-pay.text.transaction.user.declined.title': string;
185
- 'page.eftpos-pay.text.transaction.user.declined.text': string;
186
- 'page.eftpos-pay.text.transaction.user.config.title': string;
187
- 'page.eftpos-pay.text.transaction.user.config.text': string;
188
- 'page.eftpos-pay.text.transaction.back.declined.title': string;
189
- 'page.eftpos-pay.text.transaction.back.declined.text': string;
190
- 'page.eftpos-pay.text.transaction.fail': string;
191
- 'page.eftpos-pay.text.transaction.fail.timeout': string;
192
- 'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
193
- 'page.eftpos-pay.text.transaction.fail.terminal.title': string;
194
- 'page.eftpos-pay.text.transaction.fail.terminal': string;
195
- 'page.eftpos-pay.text.transaction.fail.cancel.title': string;
196
- 'page.eftpos-pay.text.transaction.fail.cancel': string;
197
- 'page.eftpos-pay.text.transaction.fail.socket': string;
198
- 'page.eftpos-pay.text.transaction.eftpos.fail': string;
199
- 'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
200
- 'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
201
- 'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
202
- 'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
203
- 'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "如果您已确认此交易的付款状态,请点击手动标记" | "如果您已确认此订单的退款状态,请点击手动标记。";
204
- 'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
205
- 'page.eftpos-pay.text.application': string;
206
- 'page.eftpos-pay.text.approved': string;
207
- 'page.eftpos-pay.text.device.no.title': string;
208
- 'page.eftpos-pay.text.device.no.add': string;
209
- 'page.eftpos-pay.text.device.no.web': string;
210
- 'page.eftpos-pay.text.device.no.terminal': string;
211
- 'page.eftpos-pay.text.waiting.decline.signature': string;
212
- 'page.eftpos-pay.text.unknown.title': (mode: string) => string;
213
- 'page.eftpos-pay.text.unknown.text': (mode: string) => string;
214
- 'page.eftpos-pay.text.reconnecting': string;
215
- 'page.eftpos-pay.text.reconnect.network': string;
216
- 'page.eftpos-pay.text.network.disconnected': string;
217
- 'page.eftpos-pay.text.not.connected': string;
218
- 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
219
- 'page.eftpos-pay.text.tyro': (key: string) => string | string[];
220
- 'page.eftpos-pay.text.mx51.result.loading': string;
221
- };
222
- 'zh-HK': {
223
- 'page.eftpos-pay.text.loading': (mode: string) => string;
224
- 'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
225
- 'page.eftpos-pay.text.surcharge': string;
226
- 'page.eftpos-pay.text.card': string;
227
- 'page.eftpos-pay.text.account': string;
228
- 'page.eftpos-pay.text.pin': string;
229
- 'page.eftpos-pay.text.receipt': string;
230
- 'page.eftpos-pay.text.receipt.again.title': string;
231
- 'page.eftpos-pay.text.receipt.again.text': string;
232
- 'page.eftpos-pay.text.signature.title': string;
233
- 'page.eftpos-pay.text.signature.text': (mode: string) => "拒絕將導致支付失敗,需重新支付。" | "拒絕將導致退款失敗;需要重新退款";
234
- 'page.eftpos-pay.text.timedout.title': string;
235
- 'page.eftpos-pay.text.timedout.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。";
236
- 'page.eftpos-pay.text.request.title': (mode: string) => string;
237
- 'page.eftpos-pay.text.request.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。";
238
- 'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
239
- 'page.eftpos-pay.text.request.unknown.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請您根據刷卡機上的退款狀態,手動標記退款結果,以確保交易的準確性。";
240
- 'page.eftpos-pay.text.interrupted': string;
241
- 'page.eftpos-pay.text.reconnect': string;
242
- 'page.eftpos-pay.text.waiting.pay': (mode: string) => "如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。" | "如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。";
243
- 'page.eftpos-pay.text.restored': string;
244
- 'page.eftpos-pay.text.disconnected': string;
245
- 'page.eftpos-pay.text.waiting.network': string;
246
- 'page.eftpos-pay.text.waiting.wifi.title': string;
247
- 'page.eftpos-pay.text.waiting.wifi.connection': string;
248
- 'page.eftpos-pay.text.waiting.wifi.router': string;
249
- 'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
250
- 'page.eftpos-pay.text.accept': string;
251
- 'page.eftpos-pay.text.decline': string;
252
- 'page.eftpos-pay.text.manual.marking': string;
253
- 'page.eftpos-pay.text.manual.title': string;
254
- 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
255
- 'page.eftpos-pay.text.manual.confirm': string;
256
- 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
257
- 'page.eftpos-pay.text.manual.diff': string;
258
- 'page.eftpos-pay.text.manual.tip': string;
259
- 'page.eftpos-pay.text.manual.cancel': string;
260
- 'page.eftpos-pay.text.manual.print_receipt': string;
261
- 'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
262
- 'page.eftpos-pay.text.successful': (mode: string) => string;
263
- 'page.eftpos-pay.text.failed': (mode: string) => string;
264
- 'page.eftpos-pay.text.confirm': string;
265
- 'page.eftpos-pay.text.confirm.decline': string;
266
- 'page.eftpos-pay.text.back': string;
267
- 'page.eftpos-pay.text.cancel': string;
268
- 'page.eftpos-pay.text.waiting.processing': string;
269
- 'page.eftpos-pay.text.waiting.signature': string;
270
- 'page.eftpos-pay.text.waiting.decline': string;
271
- 'page.eftpos-pay.text.processing': string;
272
- 'page.eftpos-pay.text.transaction.processing': string;
273
- 'page.eftpos-pay.text.retry': string;
274
- 'page.eftpos-pay.text.sure': string;
275
- 'page.eftpos-pay.text.device': string;
276
- 'page.eftpos-pay.text.leave': string;
277
- 'page.eftpos-pay.text.latest.success': string;
278
- 'page.eftpos-pay.text.latest.amount': string;
279
- 'page.eftpos-pay.text.latest.surcharge': string;
280
- 'page.eftpos-pay.text.latest.time': string;
281
- 'page.eftpos-pay.text.latest.confirm': string;
282
- 'page.eftpos-pay.text.amount.to.pay': string;
283
- 'page.eftpos-pay.text.surcharge.percentage': string;
284
- 'page.eftpos-pay.text.surcharge.fixed': string;
285
- 'page.eftpos-pay.text.surcharge.percentage-fixed': string;
286
- 'page.eftpos-pay.text.surcharge.edit.title': string;
287
- 'page.eftpos-pay.text.input.title': (name: string) => string;
288
- 'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
289
- 'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
290
- 'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
291
- 'page.eftpos-pay.text.surcharge.edit.rate': string;
292
- 'page.eftpos-pay.text.surcharge.edit.surcharge': string;
293
- 'page.eftpos-pay.text.transaction.end': string;
294
- 'page.eftpos-pay.text.transaction.user.declined.title': string;
295
- 'page.eftpos-pay.text.transaction.user.declined.text': string;
296
- 'page.eftpos-pay.text.transaction.user.config.title': string;
297
- 'page.eftpos-pay.text.transaction.user.config.text': string;
298
- 'page.eftpos-pay.text.transaction.back.declined.title': string;
299
- 'page.eftpos-pay.text.transaction.back.declined.text': string;
300
- 'page.eftpos-pay.text.transaction.fail': string;
301
- 'page.eftpos-pay.text.transaction.fail.timeout': string;
302
- 'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
303
- 'page.eftpos-pay.text.transaction.fail.terminal.title': string;
304
- 'page.eftpos-pay.text.transaction.fail.terminal': string;
305
- 'page.eftpos-pay.text.transaction.fail.cancel.title': string;
306
- 'page.eftpos-pay.text.transaction.fail.cancel': string;
307
- 'page.eftpos-pay.text.transaction.fail.socket': string;
308
- 'page.eftpos-pay.text.transaction.eftpos.fail': string;
309
- 'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
310
- 'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
311
- 'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
312
- 'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
313
- 'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "如果您已確認此交易的付款狀態,請點擊手動標記" | "如果您已確認此訂單的退款狀態,請點擊手動標記。";
314
- 'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
315
- 'page.eftpos-pay.text.application': string;
316
- 'page.eftpos-pay.text.approved': string;
317
- 'page.eftpos-pay.text.device.no.title': string;
318
- 'page.eftpos-pay.text.device.no.add': string;
319
- 'page.eftpos-pay.text.device.no.web': string;
320
- 'page.eftpos-pay.text.device.no.terminal': string;
321
- 'page.eftpos-pay.text.waiting.decline.signature': string;
322
- 'page.eftpos-pay.text.unknown.title': (mode: string) => string;
323
- 'page.eftpos-pay.text.unknown.text': (mode: string) => string;
324
- 'page.eftpos-pay.text.reconnecting': string;
325
- 'page.eftpos-pay.text.reconnect.network': string;
326
- 'page.eftpos-pay.text.network.disconnected': string;
327
- 'page.eftpos-pay.text.not.connected': string;
328
- 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
329
- 'page.eftpos-pay.text.tyro': (key: string) => string | string[];
330
- 'page.eftpos-pay.text.mx51.result.loading': string;
331
- };
332
- };
333
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * @title 渲染动态内容
4
- * @description 用于渲染从接口解析出来的元素
5
- */
6
- declare const Action: (props: any) => React.JSX.Element;
7
- export default Action;
@@ -1,138 +0,0 @@
1
- import { EPaymentStatus } from '../aggregatePayment/types';
2
- /** 元素类型定义 */
3
- export interface ElementType {
4
- label: string;
5
- key: string;
6
- }
7
- /** 布局类型定义 */
8
- export interface LayoutType {
9
- type: string;
10
- elements: ElementType[];
11
- }
12
- /** 元素属性定义 */
13
- export interface ElementProperty {
14
- type: 'button' | 'text' | 'image' | 'input';
15
- submit_url: string;
16
- action: string | null;
17
- text?: string | null;
18
- name?: string | null;
19
- data?: string | null;
20
- encoding?: string | null;
21
- }
22
- /** Action Form 定义 */
23
- export interface ActionFormType {
24
- layout: LayoutType[];
25
- properties: {
26
- [key: string]: ElementProperty;
27
- };
28
- details: {
29
- [key: string]: string;
30
- };
31
- }
32
- /** POS 指令定义 */
33
- export interface PosInstructions {
34
- auto_actions: any;
35
- action_form: ActionFormType | null;
36
- }
37
- /** MX51 参数定义 */
38
- export interface MX51Params {
39
- id: string;
40
- version: number;
41
- status: string;
42
- message: string;
43
- merchant_receipt: string | null;
44
- customer_receipt: string | null;
45
- result_amounts: any;
46
- result_financial_status: string | null;
47
- pos_instructions: PosInstructions | null;
48
- }
49
- /** 解析后的按钮配置 */
50
- export interface ParsedElement {
51
- /** 元素键 */
52
- key: string;
53
- /** 元素标签 */
54
- label: string;
55
- /** 提交URL */
56
- submitUrl: string;
57
- /** 按钮动作 */
58
- action: string | null;
59
- /** 元素类型 */
60
- type: 'button' | 'text';
61
- /** 文本信息 */
62
- text?: string | null;
63
- /** 小票信息 */
64
- receipt?: string | null;
65
- /** 额外信息 */
66
- _extra?: {
67
- /** 商户收据 */
68
- merchantReceipt?: string | null;
69
- /** 客户收据 */
70
- customerReceipt?: string | null;
71
- /** 支付状态 */
72
- paymentStatus: EPaymentStatus;
73
- /** 接口返回的原始数据 */
74
- response: any;
75
- };
76
- /** 图片信息 */
77
- image?: {
78
- name?: string | null;
79
- data?: string | null;
80
- encoding?: string | null;
81
- };
82
- }
83
- /** 解析后的布局配置 */
84
- export interface ParsedLayout {
85
- /** 布局类型,如 horizontal_layout */
86
- layoutType: string;
87
- /** 该布局中的按钮列表 */
88
- elements: ParsedElement[];
89
- }
90
- /** 解析后的结果 */
91
- export interface ParsedMX51Result {
92
- /** 交易ID */
93
- transactionId: string;
94
- /** 版本号 */
95
- version: number;
96
- /** 状态 */
97
- status: string;
98
- /** 提示信息 */
99
- message: string;
100
- /** 商户收据 */
101
- merchantReceipt: string | null;
102
- /** 客户收据 */
103
- customerReceipt: string | null;
104
- /** 结果金额 */
105
- resultAmounts: any;
106
- /** 结果财务状态 */
107
- resultFinancialStatus: string | null;
108
- /** 布局列表,每个布局包含其类型和按钮 */
109
- layouts: ParsedLayout[];
110
- /** 详情信息 */
111
- details: {
112
- [key: string]: string;
113
- };
114
- /** 详情信息 text */
115
- detailsText: string;
116
- /** 自动操作 */
117
- autoAction: Array<string> | null;
118
- }
119
- export declare enum EButtonKeyType {
120
- /** 取消交易 */
121
- CancelTransaction = "cancel_transaction",
122
- /** 交易完成 */
123
- TransactionComplete = "transaction_complete",
124
- /** 重试交易 */
125
- RetryTransaction = "retry_transaction",
126
- /** 打印商户收据 */
127
- PrintMerchantReceipt = "print_merchant_receipt",
128
- /** 打印客户收据 */
129
- PrintCustomerReceipt = "print_customer_receipt",
130
- /** 批准签名 */
131
- ApproveSignature = "approve_signature",
132
- /** 拒绝签名 */
133
- DeclineSignature = "decline_signature",
134
- /** 提交到API */
135
- SubmitToAPI = "submit_to_api",
136
- /** 测试 */
137
- CallTestFunction = "call_test_function"
138
- }