@dcloudio/uni-app-x 0.7.50 → 0.7.52

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 (388) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +30 -30
  6. package/types/app.d.ts +1383 -1383
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +8 -8
  9. package/types/native/CSSStyleDeclaration.d.ts +144 -144
  10. package/types/native/CanvasRenderingContext2D.d.ts +3748 -3748
  11. package/types/native/DOMRect.d.ts +656 -656
  12. package/types/native/DrawableContext.d.ts +1722 -1722
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +6221 -6103
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.d.ts +132 -132
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +269 -269
  22. package/types/native/SnapshotOptions.d.ts +62 -62
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniAnimation.d.ts +583 -583
  27. package/types/native/UniAnimationPlaybackEvent.d.ts +12 -12
  28. package/types/native/UniCallbackWrapper.d.ts +7 -7
  29. package/types/native/UniCanvasElement.d.ts +9 -9
  30. package/types/native/UniCustomEvent.d.ts +24 -24
  31. package/types/native/UniDocument.d.ts +83 -83
  32. package/types/native/UniElement.d.ts +85 -85
  33. package/types/native/UniError.d.ts +70 -70
  34. package/types/native/UniEvent.d.ts +121 -121
  35. package/types/native/UniFormControl.d.ts +8 -8
  36. package/types/native/UniFormControlElement.d.ts +15 -15
  37. package/types/native/UniImageErrorEvent.d.ts +33 -33
  38. package/types/native/UniImageLoadEvent.d.ts +37 -37
  39. package/types/native/UniInputBlurEvent.d.ts +36 -36
  40. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  41. package/types/native/UniInputEvent.d.ts +38 -38
  42. package/types/native/UniInputFocusEvent.d.ts +53 -53
  43. package/types/native/UniNativeApp.d.ts +205 -205
  44. package/types/native/UniNativePage.d.ts +328 -328
  45. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  46. package/types/native/UniPage.d.ts +773 -639
  47. package/types/native/UniPageBody.d.ts +109 -109
  48. package/types/native/UniPageEvent.d.ts +10 -10
  49. package/types/native/UniPageManager.d.ts +27 -27
  50. package/types/native/UniPageScrollEvent.d.ts +13 -13
  51. package/types/native/UniPointerEvent.d.ts +74 -74
  52. package/types/native/UniProvider.d.ts +32 -32
  53. package/types/native/UniRefresherEvent.d.ts +18 -18
  54. package/types/native/UniResizeEvent.d.ts +34 -34
  55. package/types/native/UniResizeObserver.d.ts +394 -394
  56. package/types/native/UniRichTextItemClickEvent.d.ts +37 -37
  57. package/types/native/UniSafeAreaInsets.d.ts +73 -73
  58. package/types/native/UniScrollEvent.d.ts +42 -42
  59. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  60. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  61. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  62. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  63. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  64. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  65. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  66. package/types/native/UniTabTapEvent.d.ts +18 -18
  67. package/types/native/UniTabsElement.d.ts +59 -59
  68. package/types/native/UniTextElement.d.ts +35 -35
  69. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  70. package/types/native/UniTouchEvent.d.ts +64 -64
  71. package/types/native/UniVideoElement.d.ts +515 -515
  72. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  73. package/types/native/UniWebViewElement.d.ts +10 -10
  74. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  75. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  76. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  77. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  78. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  79. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  80. package/types/native/WebViewStyles.d.ts +20 -20
  81. package/types/native/global.d.ts +684 -662
  82. package/types/native/index.d.ts +76 -76
  83. package/types/native-global/index.d.ts +1 -1
  84. package/types/page.d.ts +1731 -1731
  85. package/types/process.d.ts +5 -5
  86. package/types/uni/base/index.d.ts +3 -3
  87. package/types/uni/env/index.d.ts +117 -117
  88. package/types/uni/global.d.ts +8 -7
  89. package/types/uni/index.d.ts +6 -5
  90. package/types/uni/uni-camera-global.d.ts +19 -0
  91. package/types/uni/uni-camera.d.ts +23 -0
  92. package/types/uni/uni-map-tencent-global.d.ts +37 -37
  93. package/types/uni/uni-map-tencent-map.d.ts +62 -62
  94. package/types/uni/uts-plugin-api/global.d.ts +70 -71
  95. package/types/uni/uts-plugin-api/index.d.ts +70 -71
  96. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -22
  97. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -10
  98. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +554 -554
  99. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +24 -24
  100. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +11 -11
  101. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1765 -1765
  102. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  103. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  104. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +78 -78
  105. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +58 -58
  106. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +28 -28
  107. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1336 -1336
  108. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  109. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  110. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +78 -78
  111. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  112. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  113. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +972 -972
  114. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -20
  115. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  116. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -411
  117. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -32
  118. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -15
  119. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +28 -1
  120. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  121. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  122. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +601 -601
  123. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -16
  124. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +7 -7
  125. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2879 -2664
  126. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  127. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  128. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +512 -512
  129. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  130. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  131. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  132. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  133. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  134. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +769 -769
  135. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  136. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  137. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  138. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  139. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  140. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -10
  141. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -4
  142. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -76
  143. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  144. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  145. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  146. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  147. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  148. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +102 -102
  149. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  150. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  151. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +384 -384
  152. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +152 -152
  153. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -75
  154. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +12 -10
  155. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  156. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  157. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  158. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  159. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +616 -616
  160. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  161. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  162. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2557 -2557
  163. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +16 -16
  164. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +7 -7
  165. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1049 -1049
  166. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  167. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  168. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2006 -2006
  169. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  170. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  171. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +82 -82
  172. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  173. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  174. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +802 -802
  175. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  176. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  177. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +806 -806
  178. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  179. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  180. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1808 -1808
  181. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  182. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  183. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  184. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  185. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  186. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +20 -20
  187. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -10
  188. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -736
  189. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  190. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  191. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -692
  192. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  193. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  194. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +419 -419
  195. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  196. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  197. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -634
  198. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  199. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  200. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1181 -1024
  201. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +32 -32
  202. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +15 -15
  203. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +6755 -6755
  204. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  205. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  206. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +501 -501
  207. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  208. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  209. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  210. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  211. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  212. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  213. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  214. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +367 -367
  215. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +28 -28
  216. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +13 -13
  217. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +679 -679
  218. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  219. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  220. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +277 -277
  221. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +190 -190
  222. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +94 -94
  223. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +142 -2
  224. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -18
  225. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -8
  226. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +762 -762
  227. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  228. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  229. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1210 -1210
  230. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +90 -90
  231. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +44 -44
  232. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -5752
  233. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -66
  234. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -32
  235. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2648 -2648
  236. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -8
  237. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -4
  238. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -1
  239. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  240. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  241. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +296 -296
  242. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  243. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  244. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +516 -516
  245. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  246. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  247. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +418 -418
  248. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  249. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  250. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1084 -1084
  251. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  252. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  253. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -8
  254. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -4
  255. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -1
  256. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  257. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  258. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -46
  259. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -22
  260. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +882 -878
  261. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -30
  262. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -14
  263. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +609 -609
  264. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  265. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  266. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4323 -4323
  267. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  268. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  269. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +323 -323
  270. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -20
  271. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -9
  272. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  273. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  274. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2847 -2847
  275. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  276. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  277. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +80 -80
  278. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  279. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  280. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +629 -629
  281. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +26 -26
  282. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +12 -12
  283. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +719 -719
  284. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -18
  285. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -8
  286. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +308 -308
  287. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  288. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  289. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1998 -1998
  290. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  291. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  292. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +3136 -3136
  293. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +54 -54
  294. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +26 -26
  295. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1105 -1105
  296. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  297. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  298. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -2306
  299. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  300. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  301. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2719 -2717
  302. package/types/uni/uts-plugin-biz/global.d.ts +7 -7
  303. package/types/uni/uts-plugin-biz/index.d.ts +7 -7
  304. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -44
  305. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -21
  306. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1008 -1008
  307. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -34
  308. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -16
  309. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +24 -24
  310. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +11 -11
  311. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  312. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  313. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +212 -212
  314. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +66 -66
  315. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +32 -32
  316. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  317. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  318. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +960 -960
  319. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -24
  320. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -11
  321. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +52 -52
  322. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +25 -25
  323. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +20 -20
  324. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -64
  325. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -31
  326. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -900
  327. package/types/uni/uts-plugin-component/global.d.ts +3 -2
  328. package/types/uni/uts-plugin-component/index.d.ts +3 -2
  329. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -34
  330. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -16
  331. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +679 -27
  332. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/global.d.ts +22 -0
  333. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/index.d.ts +10 -0
  334. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +972 -0
  335. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +68 -68
  336. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +33 -33
  337. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +935 -935
  338. package/types/uni/uts-plugin-extend/global.d.ts +11 -11
  339. package/types/uni/uts-plugin-extend/index.d.ts +10 -10
  340. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -7
  341. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -3
  342. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  343. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  344. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +917 -917
  345. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  346. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  347. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4770 -4770
  348. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  349. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  350. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1095 -1095
  351. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  352. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  353. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  354. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  355. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  356. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  357. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  358. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  359. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1670 -1670
  360. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  361. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  362. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +253 -253
  363. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  364. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  365. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +999 -999
  366. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  367. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  368. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  369. package/types/uni-cloud/index.d.ts +67 -67
  370. package/types/uni-cloud/interface.d.ts +1078 -1078
  371. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  372. package/types/uni-global/index.d.ts +1 -1
  373. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  374. package/types/vue/LifeCycle.d.ts +55 -55
  375. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  376. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  377. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  378. package/types/vue/SliderChangeEvent.d.ts +35 -35
  379. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  380. package/types/vue/UniCanvasElement.d.ts +275 -275
  381. package/types/vue/UniCloudDBElement.d.ts +217 -217
  382. package/types/vue/UniFormElement.d.ts +54 -54
  383. package/types/vue/UniNavigatorElement.d.ts +11 -11
  384. package/types/vue/global.d.ts +191 -191
  385. package/types/vue/index.d.ts +10 -10
  386. package/types/vue-global/index.d.ts +1 -1
  387. package/uts-plugin.d.ts +35 -33
  388. package/types/uni/uts-plugin-extend/README.md +0 -3
@@ -1,1084 +1,1084 @@
1
- import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierror.uts'
2
-
3
- export type RequestPaymentFailImpl = RequestPaymentFailImplement
4
- export interface UniPaymentProvider extends UniProvider {
5
- requestPayment(options: RequestPaymentOptions): void;
6
- }
7
- export interface Uni {
8
- /**
9
- * @description 请求支付
10
- * @param {RequestPaymentOptions} options
11
- * @example
12
- * ```typescript
13
- * uni.requestPayment({
14
- * provider: "alipay",
15
- * orderInfo: "",
16
- * success: function (res) {
17
- * console.log("支付成功"+JSON.stringify(res))
18
- * }
19
- * });
20
- * ```
21
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/payment.html#requestpayment
22
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
23
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
24
- * @uniPlatform {
25
- * "app": {
26
- * "android": {
27
- * "osVer": "5.0",
28
- * "uniVer": "√",
29
- * "unixVer": "4.02"
30
- * },
31
- * "ios": {
32
- * "osVer": "12.0",
33
- * "uniVer": "√",
34
- * "unixVer": "4.18"
35
- * },
36
- * "harmony": {
37
- * "osVer": "3.0",
38
- * "uniVer": "4.26",
39
- * "unixVer": "4.61"
40
- * }
41
- * },
42
- * "mp": {
43
- * "weixin": {
44
- * "hostVer": "√",
45
- * "uniVer": "√",
46
- * "unixVer": "4.41"
47
- * },
48
- * "alipay": {
49
- * "hostVer": "√",
50
- * "uniVer": "√",
51
- * "unixVer": "x"
52
- * },
53
- * "baidu": {
54
- * "hostVer": "√",
55
- * "uniVer": "√",
56
- * "unixVer": "x"
57
- * },
58
- * "toutiao": {
59
- * "hostVer": "√",
60
- * "uniVer": "√",
61
- * "unixVer": "x"
62
- * },
63
- * "lark": {
64
- * "hostVer": "√",
65
- * "uniVer": "√",
66
- * "unixVer": "x"
67
- * },
68
- * "qq": {
69
- * "hostVer": "√",
70
- * "uniVer": "√",
71
- * "unixVer": "x"
72
- * },
73
- * "kuaishou": {
74
- * "hostVer": "√",
75
- * "uniVer": "√",
76
- * "unixVer": "x"
77
- * },
78
- * "jd": {
79
- * "hostVer": "√",
80
- * "uniVer": "√",
81
- * "unixVer": "x"
82
- * }
83
- * },
84
- * "web": {
85
- * "uniVer": "x",
86
- * "unixVer": "x"
87
- * }
88
- * }
89
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestPayment.html
90
- */
91
- requestPayment(options: RequestPaymentOptions): void;
92
- }
93
- /**
94
- * 错误码
95
- */
96
- export type RequestPaymentErrorCode =
97
- /**
98
- * 正在处理中,支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态
99
- * @uniPlatform {
100
- * "app": {
101
- * "android": {
102
- * "osVer": "5.0",
103
- * "uniVer": "√",
104
- * "unixVer": "4.02"
105
- * },
106
- * "ios": {
107
- * "osVer": "12.0",
108
- * "uniVer": "√",
109
- * "unixVer": "4.18"
110
- * },
111
- * "harmony": {
112
- * "osVer": "3.0",
113
- * "uniVer": "4.27",
114
- * "unixVer": "4.61"
115
- * }
116
- * },
117
- * "web": {
118
- * "uniVer": "x",
119
- * "unixVer": "x"
120
- * }
121
- * }
122
- */
123
- 700600 |
124
- /**
125
- * 订单支付失败。
126
- * @uniPlatform {
127
- * "app": {
128
- * "android": {
129
- * "osVer": "5.0",
130
- * "uniVer": "√",
131
- * "unixVer": "4.02"
132
- * },
133
- * "ios": {
134
- * "osVer": "12.0",
135
- * "uniVer": "√",
136
- * "unixVer": "4.18"
137
- * },
138
- * "harmony": {
139
- * "osVer": "3.0",
140
- * "uniVer": "4.27",
141
- * "unixVer": "4.61"
142
- * }
143
- * },
144
- * "web": {
145
- * "uniVer": "x",
146
- * "unixVer": "x"
147
- * }
148
- * }
149
- */
150
- 701100 |
151
- /**
152
- * 重复请求。
153
- * @uniPlatform {
154
- * "app": {
155
- * "android": {
156
- * "osVer": "5.0",
157
- * "uniVer": "√",
158
- * "unixVer": "4.02"
159
- * },
160
- * "ios": {
161
- * "osVer": "12.0",
162
- * "uniVer": "√",
163
- * "unixVer": "4.18"
164
- * },
165
- * "harmony": {
166
- * "osVer": "3.0",
167
- * "uniVer": "4.27",
168
- * "unixVer": "4.61"
169
- * }
170
- * },
171
- * "web": {
172
- * "uniVer": "x",
173
- * "unixVer": "x"
174
- * }
175
- * }
176
- */
177
- 701110 |
178
- /**
179
- * 用户中途取消。
180
- * @uniPlatform {
181
- * "app": {
182
- * "android": {
183
- * "osVer": "5.0",
184
- * "uniVer": "√",
185
- * "unixVer": "4.02"
186
- * },
187
- * "ios": {
188
- * "osVer": "12.0",
189
- * "uniVer": "√",
190
- * "unixVer": "4.18"
191
- * },
192
- * "harmony": {
193
- * "osVer": "3.0",
194
- * "uniVer": "4.27",
195
- * "unixVer": "4.61"
196
- * }
197
- * },
198
- * "web": {
199
- * "uniVer": "x",
200
- * "unixVer": "x"
201
- * }
202
- * }
203
- */
204
- 700601 |
205
- /**
206
- * 网络连接出错。
207
- * @uniPlatform {
208
- * "app": {
209
- * "android": {
210
- * "osVer": "5.0",
211
- * "uniVer": "√",
212
- * "unixVer": "4.02"
213
- * },
214
- * "ios": {
215
- * "osVer": "12.0",
216
- * "uniVer": "√",
217
- * "unixVer": "4.18"
218
- * },
219
- * "harmony": {
220
- * "osVer": "3.0",
221
- * "uniVer": "4.27",
222
- * "unixVer": "4.61"
223
- * }
224
- * },
225
- * "web": {
226
- * "uniVer": "x",
227
- * "unixVer": "x"
228
- * }
229
- * }
230
- */
231
- 700602 |
232
- /**
233
- * 支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态。
234
- * @uniPlatform {
235
- * "app": {
236
- * "android": {
237
- * "osVer": "5.0",
238
- * "uniVer": "√",
239
- * "unixVer": "4.02"
240
- * },
241
- * "ios": {
242
- * "osVer": "12.0",
243
- * "uniVer": "√",
244
- * "unixVer": "4.18"
245
- * },
246
- * "harmony": {
247
- * "osVer": "3.0",
248
- * "uniVer": "4.27",
249
- * "unixVer": "4.61"
250
- * }
251
- * },
252
- * "web": {
253
- * "uniVer": "x",
254
- * "unixVer": "x"
255
- * }
256
- * }
257
- */
258
- 700603 |
259
- /**
260
- * 其它支付错误。
261
- * @uniPlatform {
262
- * "app": {
263
- * "android": {
264
- * "osVer": "5.0",
265
- * "uniVer": "√",
266
- * "unixVer": "4.02"
267
- * },
268
- * "ios": {
269
- * "osVer": "12.0",
270
- * "uniVer": "√",
271
- * "unixVer": "4.18"
272
- * },
273
- * "harmony": {
274
- * "osVer": "3.0",
275
- * "uniVer": "4.27",
276
- * "unixVer": "4.61"
277
- * }
278
- * },
279
- * "web": {
280
- * "uniVer": "x",
281
- * "unixVer": "x"
282
- * }
283
- * }
284
- */
285
- 700000 |
286
- /**
287
- * 微信没有安装。
288
- * @uniPlatform {
289
- * "app": {
290
- * "android": {
291
- * "osVer": "5.0",
292
- * "uniVer": "√",
293
- * "unixVer": "4.02"
294
- * },
295
- * "ios": {
296
- * "osVer": "12.0",
297
- * "uniVer": "√",
298
- * "unixVer": "4.18"
299
- * },
300
- * "harmony": {
301
- * "osVer": "3.0",
302
- * "uniVer": "4.27",
303
- * "unixVer": "4.61"
304
- * }
305
- * },
306
- * "web": {
307
- * "uniVer": "x",
308
- * "unixVer": "x"
309
- * }
310
- * }
311
- */
312
- 700604 |
313
- /**
314
- * 服务供应商获取失败。
315
- * @uniPlatform {
316
- * "app": {
317
- * "android": {
318
- * "osVer": "5.0",
319
- * "uniVer": "√",
320
- * "unixVer": "4.02"
321
- * },
322
- * "ios": {
323
- * "osVer": "12.0",
324
- * "uniVer": "√",
325
- * "unixVer": "4.18"
326
- * },
327
- * "harmony": {
328
- * "osVer": "3.0",
329
- * "uniVer": "4.27",
330
- * "unixVer": "4.61"
331
- * }
332
- * },
333
- * "web": {
334
- * "uniVer": "x",
335
- * "unixVer": "x"
336
- * }
337
- * }
338
- */
339
- 700605 |
340
- /**
341
- * 支付未完成。
342
- * @uniPlatform {
343
- * "app": {
344
- * "android": {
345
- * "osVer": "5.0",
346
- * "uniVer": "x",
347
- * "unixVer": "4.31"
348
- * },
349
- * "ios": {
350
- * "osVer": "12.0",
351
- * "uniVer": "x",
352
- * "unixVer": "4.31"
353
- * },
354
- * "harmony": {
355
- * "osVer": "3.0",
356
- * "uniVer": "4.31",
357
- * "unixVer": "4.61"
358
- * }
359
- * },
360
- * "web": {
361
- * "uniVer": "x",
362
- * "unixVer": "x"
363
- * }
364
- * }
365
- */
366
- 700607 |
367
- /**
368
- * 服务商返回参数错误。
369
- * @uniPlatform {
370
- * "app": {
371
- * "android": {
372
- * "osVer": "5.0",
373
- * "uniVer": "x",
374
- * "unixVer": "4.31"
375
- * },
376
- * "ios": {
377
- * "osVer": "12.0",
378
- * "uniVer": "x",
379
- * "unixVer": "4.31"
380
- * },
381
- * "harmony": {
382
- * "osVer": "3.0",
383
- * "uniVer": "4.31",
384
- * "unixVer": "4.61"
385
- * }
386
- * },
387
- * "web": {
388
- * "uniVer": "x",
389
- * "unixVer": "x"
390
- * }
391
- * }
392
- */
393
- 700608 |
394
- /**
395
- * 没有配置对应的URL Scheme。
396
- * @uniPlatform {
397
- * "app": {
398
- * "android": {
399
- * "osVer": "5.0",
400
- * "uniVer": "√",
401
- * "unixVer": "4.02"
402
- * },
403
- * "ios": {
404
- * "osVer": "12.0",
405
- * "uniVer": "√",
406
- * "unixVer": "4.18"
407
- * },
408
- * "harmony": {
409
- * "osVer": "x",
410
- * "uniVer": "x",
411
- * "unixVer": "x"
412
- * }
413
- * },
414
- * "web": {
415
- * "uniVer": "x",
416
- * "unixVer": "x"
417
- * }
418
- * }
419
- */
420
- 700800 |
421
- /**
422
- * 没有配置对应的Universal Link。
423
- * @uniPlatform {
424
- * "app": {
425
- * "android": {
426
- * "osVer": "5.0",
427
- * "uniVer": "√",
428
- * "unixVer": "4.02"
429
- * },
430
- * "ios": {
431
- * "osVer": "12.0",
432
- * "uniVer": "√",
433
- * "unixVer": "4.18"
434
- * },
435
- * "harmony": {
436
- * "osVer": "x",
437
- * "uniVer": "x",
438
- * "unixVer": "x"
439
- * }
440
- * },
441
- * "web": {
442
- * "uniVer": "x",
443
- * "unixVer": "x"
444
- * }
445
- * }
446
- */
447
- 700801;
448
-
449
-
450
- export type RequestPayment = (options: RequestPaymentOptions) => void;
451
- export type RequestPaymentSuccess = {
452
- /**
453
- * 返回数据
454
- * @uniPlatform {
455
- * "app": {
456
- * "android": {
457
- * "osVer": "5.0",
458
- * "uniVer": "√",
459
- * "unixVer": "4.02"
460
- * },
461
- * "ios": {
462
- * "osVer": "12.0",
463
- * "uniVer": "√",
464
- * "unixVer": "4.18"
465
- * },
466
- * "harmony": {
467
- * "osVer": "3.0",
468
- * "uniVer": "4.25",
469
- * "unixVer": "4.61"
470
- * }
471
- * },
472
- * "mp": {
473
- * "weixin": {
474
- * "hostVer": "√",
475
- * "uniVer": "√",
476
- * "unixVer": "4.41"
477
- * },
478
- * "alipay": {
479
- * "hostVer": "√",
480
- * "uniVer": "√",
481
- * "unixVer": "x"
482
- * },
483
- * "baidu": {
484
- * "hostVer": "√",
485
- * "uniVer": "√",
486
- * "unixVer": "x"
487
- * },
488
- * "toutiao": {
489
- * "hostVer": "√",
490
- * "uniVer": "√",
491
- * "unixVer": "x"
492
- * },
493
- * "lark": {
494
- * "hostVer": "√",
495
- * "uniVer": "√",
496
- * "unixVer": "x"
497
- * },
498
- * "qq": {
499
- * "hostVer": "√",
500
- * "uniVer": "√",
501
- * "unixVer": "x"
502
- * },
503
- * "kuaishou": {
504
- * "hostVer": "√",
505
- * "uniVer": "√",
506
- * "unixVer": "x"
507
- * },
508
- * "jd": {
509
- * "hostVer": "√",
510
- * "uniVer": "√",
511
- * "unixVer": "x"
512
- * }
513
- * },
514
- * "web": {
515
- * "uniVer": "x",
516
- * "unixVer": "x"
517
- * }
518
- * }
519
- */
520
- data: object | null
521
- };
522
- export type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void;
523
- export type RequestPaymentFail = IRequestPaymentFail;
524
- export type RequestPaymentFailCallback = (result: RequestPaymentFail) => void;
525
- export type RequestPaymentComplete = any
526
- export interface IRequestPaymentFail extends IUniError {
527
- errCode: RequestPaymentErrorCode
528
- };
529
- export type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void;
530
- export type RequestPaymentOptions = {
531
- /**
532
- * 支付服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持支付宝支付(alipay),微信支付(wxpay)
533
- * @uniPlatform {
534
- * "app": {
535
- * "android": {
536
- * "osVer": "5.0",
537
- * "uniVer": "√",
538
- * "unixVer": "4.02"
539
- * },
540
- * "ios": {
541
- * "osVer": "12.0",
542
- * "uniVer": "√",
543
- * "unixVer": "4.18"
544
- * },
545
- * "harmony": {
546
- * "osVer": "3,0",
547
- * "uniVer": "4.25",
548
- * "unixVer": "4.61"
549
- * }
550
- * },
551
- * "web": {
552
- * "uniVer": "x",
553
- * "unixVer": "x"
554
- * }
555
- * }
556
- */
557
- provider: string,
558
- /**
559
- * 订单数据
560
- * @uniPlatform {
561
- * "app": {
562
- * "android": {
563
- * "osVer": "5.0",
564
- * "uniVer": "√",
565
- * "unixVer": "4.02"
566
- * },
567
- * "ios": {
568
- * "osVer": "12.0",
569
- * "uniVer": "√",
570
- * "unixVer": "4.18"
571
- * },
572
- * "harmony": {
573
- * "osVer": "3.0",
574
- * "uniVer": "4.25",
575
- * "unixVer": "4.61"
576
- * }
577
- * },
578
- * "mp": {
579
- * "weixin": {
580
- * "hostVer": "√",
581
- * "uniVer": "√",
582
- * "unixVer": "x"
583
- * },
584
- * "alipay": {
585
- * "hostVer": "√",
586
- * "uniVer": "√",
587
- * "unixVer": "x"
588
- * },
589
- * "baidu": {
590
- * "hostVer": "√",
591
- * "uniVer": "√",
592
- * "unixVer": "x"
593
- * },
594
- * "toutiao": {
595
- * "hostVer": "√",
596
- * "uniVer": "√",
597
- * "unixVer": "x"
598
- * },
599
- * "lark": {
600
- * "hostVer": "√",
601
- * "uniVer": "√",
602
- * "unixVer": "x"
603
- * },
604
- * "qq": {
605
- * "hostVer": "√",
606
- * "uniVer": "√",
607
- * "unixVer": "x"
608
- * },
609
- * "kuaishou": {
610
- * "hostVer": "√",
611
- * "uniVer": "√",
612
- * "unixVer": "x"
613
- * },
614
- * "jd": {
615
- * "hostVer": "√",
616
- * "uniVer": "√",
617
- * "unixVer": "x"
618
- * }
619
- * },
620
- * "web": {
621
- * "uniVer": "x",
622
- * "unixVer": "x"
623
- * }
624
- * }
625
- */
626
- orderInfo: string,
627
- /**
628
- * 接口调用成功的回调函数
629
- * @uniPlatform {
630
- * "app": {
631
- * "android": {
632
- * "osVer": "5.0",
633
- * "uniVer": "√",
634
- * "unixVer": "4.02"
635
- * },
636
- * "ios": {
637
- * "osVer": "12.0",
638
- * "uniVer": "√",
639
- * "unixVer": "4.18"
640
- * },
641
- * "harmony": {
642
- * "osVer": "3,0",
643
- * "uniVer": "4.25",
644
- * "unixVer": "4.61"
645
- * }
646
- * },
647
- * "mp": {
648
- * "weixin": {
649
- * "hostVer": "√",
650
- * "uniVer": "√",
651
- * "unixVer": "4.41"
652
- * },
653
- * "alipay": {
654
- * "hostVer": "√",
655
- * "uniVer": "√",
656
- * "unixVer": "x"
657
- * },
658
- * "baidu": {
659
- * "hostVer": "√",
660
- * "uniVer": "√",
661
- * "unixVer": "x"
662
- * },
663
- * "toutiao": {
664
- * "hostVer": "√",
665
- * "uniVer": "√",
666
- * "unixVer": "x"
667
- * },
668
- * "lark": {
669
- * "hostVer": "√",
670
- * "uniVer": "√",
671
- * "unixVer": "x"
672
- * },
673
- * "qq": {
674
- * "hostVer": "√",
675
- * "uniVer": "√",
676
- * "unixVer": "x"
677
- * },
678
- * "kuaishou": {
679
- * "hostVer": "√",
680
- * "uniVer": "√",
681
- * "unixVer": "x"
682
- * },
683
- * "jd": {
684
- * "hostVer": "√",
685
- * "uniVer": "√",
686
- * "unixVer": "x"
687
- * }
688
- * },
689
- * "web": {
690
- * "uniVer": "x",
691
- * "unixVer": "x"
692
- * }
693
- * }
694
- */
695
- success: RequestPaymentSuccessCallback | null,
696
- /**
697
- * 接口调用失败的回调函数
698
- * @uniPlatform {
699
- * "app": {
700
- * "android": {
701
- * "osVer": "5.0",
702
- * "uniVer": "√",
703
- * "unixVer": "4.02"
704
- * },
705
- * "ios": {
706
- * "osVer": "12.0",
707
- * "uniVer": "√",
708
- * "unixVer": "4.18"
709
- * },
710
- * "harmony": {
711
- * "osVer": "3.0",
712
- * "uniVer": "4.25",
713
- * "unixVer": "4.61"
714
- * }
715
- * },
716
- * "mp": {
717
- * "weixin": {
718
- * "hostVer": "√",
719
- * "uniVer": "√",
720
- * "unixVer": "4.41"
721
- * },
722
- * "alipay": {
723
- * "hostVer": "√",
724
- * "uniVer": "√",
725
- * "unixVer": "x"
726
- * },
727
- * "baidu": {
728
- * "hostVer": "√",
729
- * "uniVer": "√",
730
- * "unixVer": "x"
731
- * },
732
- * "toutiao": {
733
- * "hostVer": "√",
734
- * "uniVer": "√",
735
- * "unixVer": "x"
736
- * },
737
- * "lark": {
738
- * "hostVer": "√",
739
- * "uniVer": "√",
740
- * "unixVer": "x"
741
- * },
742
- * "qq": {
743
- * "hostVer": "√",
744
- * "uniVer": "√",
745
- * "unixVer": "x"
746
- * },
747
- * "kuaishou": {
748
- * "hostVer": "√",
749
- * "uniVer": "√",
750
- * "unixVer": "x"
751
- * },
752
- * "jd": {
753
- * "hostVer": "√",
754
- * "uniVer": "√",
755
- * "unixVer": "x"
756
- * }
757
- * },
758
- * "web": {
759
- * "uniVer": "x",
760
- * "unixVer": "x"
761
- * }
762
- * }
763
- */
764
- fail: RequestPaymentFailCallback | null,
765
- /**
766
- * 接口调用结束的回调函数(调用成功、失败都会执行)
767
- * @uniPlatform {
768
- * "app": {
769
- * "android": {
770
- * "osVer": "5.0",
771
- * "uniVer": "√",
772
- * "unixVer": "4.02"
773
- * },
774
- * "ios": {
775
- * "osVer": "12.0",
776
- * "uniVer": "√",
777
- * "unixVer": "4.18"
778
- * },
779
- * "harmony": {
780
- * "osVer": "3.0",
781
- * "uniVer": "4.25",
782
- * "unixVer": "4.61"
783
- * }
784
- * },
785
- * "mp": {
786
- * "weixin": {
787
- * "hostVer": "√",
788
- * "uniVer": "√",
789
- * "unixVer": "4.41"
790
- * },
791
- * "alipay": {
792
- * "hostVer": "√",
793
- * "uniVer": "√",
794
- * "unixVer": "x"
795
- * },
796
- * "baidu": {
797
- * "hostVer": "√",
798
- * "uniVer": "√",
799
- * "unixVer": "x"
800
- * },
801
- * "toutiao": {
802
- * "hostVer": "√",
803
- * "uniVer": "√",
804
- * "unixVer": "x"
805
- * },
806
- * "lark": {
807
- * "hostVer": "√",
808
- * "uniVer": "√",
809
- * "unixVer": "x"
810
- * },
811
- * "qq": {
812
- * "hostVer": "√",
813
- * "uniVer": "√",
814
- * "unixVer": "x"
815
- * },
816
- * "kuaishou": {
817
- * "hostVer": "√",
818
- * "uniVer": "√",
819
- * "unixVer": "x"
820
- * },
821
- * "jd": {
822
- * "hostVer": "√",
823
- * "uniVer": "√",
824
- * "unixVer": "x"
825
- * }
826
- * },
827
- * "web": {
828
- * "uniVer": "x",
829
- * "unixVer": "x"
830
- * }
831
- * }
832
- */
833
- complete?: RequestPaymentCompleteCallback | null
834
- /**
835
- * 随机字符串,长度为32个字符以下
836
- *
837
- * @uniPlatform {
838
- * "mp": {
839
- * "weixin": {
840
- * "hostVer": "√",
841
- * "uniVer": "√",
842
- * "unixVer": "4.41"
843
- * },
844
- * "alipay": {
845
- * "hostVer": "-",
846
- * "uniVer": "-",
847
- * "unixVer": "-"
848
- * },
849
- * "baidu": {
850
- * "hostVer": "-",
851
- * "uniVer": "-",
852
- * "unixVer": "-"
853
- * },
854
- * "toutiao": {
855
- * "hostVer": "-",
856
- * "uniVer": "-",
857
- * "unixVer": "-"
858
- * },
859
- * "lark": {
860
- * "hostVer": "-",
861
- * "uniVer": "-",
862
- * "unixVer": "-"
863
- * },
864
- * "qq": {
865
- * "hostVer": "-",
866
- * "uniVer": "-",
867
- * "unixVer": "-"
868
- * },
869
- * "kuaishou": {
870
- * "hostVer": "-",
871
- * "uniVer": "-",
872
- * "unixVer": "-"
873
- * },
874
- * "jd": {
875
- * "hostVer": "-",
876
- * "uniVer": "-",
877
- * "unixVer": "-"
878
- * }
879
- * }
880
- * }
881
- */
882
- nonceStr?: string | null;
883
- /**
884
- * 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=***
885
- *
886
- * @uniPlatform {
887
- * "mp": {
888
- * "weixin": {
889
- * "hostVer": "√",
890
- * "uniVer": "√",
891
- * "unixVer": "4.41"
892
- * },
893
- * "alipay": {
894
- * "hostVer": "-",
895
- * "uniVer": "-",
896
- * "unixVer": "-"
897
- * },
898
- * "baidu": {
899
- * "hostVer": "-",
900
- * "uniVer": "-",
901
- * "unixVer": "-"
902
- * },
903
- * "toutiao": {
904
- * "hostVer": "-",
905
- * "uniVer": "-",
906
- * "unixVer": "-"
907
- * },
908
- * "lark": {
909
- * "hostVer": "-",
910
- * "uniVer": "-",
911
- * "unixVer": "-"
912
- * },
913
- * "qq": {
914
- * "hostVer": "-",
915
- * "uniVer": "-",
916
- * "unixVer": "-"
917
- * },
918
- * "kuaishou": {
919
- * "hostVer": "-",
920
- * "uniVer": "-",
921
- * "unixVer": "-"
922
- * },
923
- * "jd": {
924
- * "hostVer": "-",
925
- * "uniVer": "-",
926
- * "unixVer": "-"
927
- * }
928
- * }
929
- * }
930
- */
931
- package?: string | null;
932
- /**
933
- * 签名,具体见微信支付文档
934
- *
935
- * @uniPlatform {
936
- * "mp": {
937
- * "weixin": {
938
- * "hostVer": "√",
939
- * "uniVer": "√",
940
- * "unixVer": "4.41"
941
- * },
942
- * "alipay": {
943
- * "hostVer": "-",
944
- * "uniVer": "-",
945
- * "unixVer": "-"
946
- * },
947
- * "baidu": {
948
- * "hostVer": "-",
949
- * "uniVer": "-",
950
- * "unixVer": "-"
951
- * },
952
- * "toutiao": {
953
- * "hostVer": "-",
954
- * "uniVer": "-",
955
- * "unixVer": "-"
956
- * },
957
- * "lark": {
958
- * "hostVer": "-",
959
- * "uniVer": "-",
960
- * "unixVer": "-"
961
- * },
962
- * "qq": {
963
- * "hostVer": "-",
964
- * "uniVer": "-",
965
- * "unixVer": "-"
966
- * },
967
- * "kuaishou": {
968
- * "hostVer": "-",
969
- * "uniVer": "-",
970
- * "unixVer": "-"
971
- * },
972
- * "jd": {
973
- * "hostVer": "-",
974
- * "uniVer": "-",
975
- * "unixVer": "-"
976
- * }
977
- * }
978
- * }
979
- */
980
- paySign?: string | null;
981
- /**
982
- * 时间戳,从 1970 年 1 月 1 日 00:00:00 至今的秒数,即当前的时间
983
- *
984
- * @uniPlatform {
985
- * "mp": {
986
- * "weixin": {
987
- * "hostVer": "√",
988
- * "uniVer": "√",
989
- * "unixVer": "4.41"
990
- * },
991
- * "alipay": {
992
- * "hostVer": "-",
993
- * "uniVer": "-",
994
- * "unixVer": "-"
995
- * },
996
- * "baidu": {
997
- * "hostVer": "-",
998
- * "uniVer": "-",
999
- * "unixVer": "-"
1000
- * },
1001
- * "toutiao": {
1002
- * "hostVer": "-",
1003
- * "uniVer": "-",
1004
- * "unixVer": "-"
1005
- * },
1006
- * "lark": {
1007
- * "hostVer": "-",
1008
- * "uniVer": "-",
1009
- * "unixVer": "-"
1010
- * },
1011
- * "qq": {
1012
- * "hostVer": "-",
1013
- * "uniVer": "-",
1014
- * "unixVer": "-"
1015
- * },
1016
- * "kuaishou": {
1017
- * "hostVer": "-",
1018
- * "uniVer": "-",
1019
- * "unixVer": "-"
1020
- * },
1021
- * "jd": {
1022
- * "hostVer": "-",
1023
- * "uniVer": "-",
1024
- * "unixVer": "-"
1025
- * }
1026
- * }
1027
- * }
1028
- */
1029
- timeStamp?: string | null;
1030
- /**
1031
- * 签名算法,应与后台下单时的值一致
1032
- *
1033
- * 可选值:
1034
- * - 'MD5': 仅在 v2 版本接口适用;
1035
- * - 'HMAC-SHA256': 仅在 v2 版本接口适用;
1036
- * - 'RSA': 仅在 v3 版本接口适用;
1037
- *
1038
- * @uniPlatform {
1039
- * "mp": {
1040
- * "weixin": {
1041
- * "hostVer": "√",
1042
- * "uniVer": "√",
1043
- * "unixVer": "4.41"
1044
- * },
1045
- * "alipay": {
1046
- * "hostVer": "-",
1047
- * "uniVer": "-",
1048
- * "unixVer": "-"
1049
- * },
1050
- * "baidu": {
1051
- * "hostVer": "-",
1052
- * "uniVer": "-",
1053
- * "unixVer": "-"
1054
- * },
1055
- * "toutiao": {
1056
- * "hostVer": "-",
1057
- * "uniVer": "-",
1058
- * "unixVer": "-"
1059
- * },
1060
- * "lark": {
1061
- * "hostVer": "-",
1062
- * "uniVer": "-",
1063
- * "unixVer": "-"
1064
- * },
1065
- * "qq": {
1066
- * "hostVer": "-",
1067
- * "uniVer": "-",
1068
- * "unixVer": "-"
1069
- * },
1070
- * "kuaishou": {
1071
- * "hostVer": "-",
1072
- * "uniVer": "-",
1073
- * "unixVer": "-"
1074
- * },
1075
- * "jd": {
1076
- * "hostVer": "-",
1077
- * "uniVer": "-",
1078
- * "unixVer": "-"
1079
- * }
1080
- * }
1081
- * }
1082
- */
1083
- signType?: "MD5" | "HMAC-SHA256" | "RSA" | null;
1084
- };
1
+ import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierror.uts'
2
+
3
+ export type RequestPaymentFailImpl = RequestPaymentFailImplement
4
+ export interface UniPaymentProvider extends UniProvider {
5
+ requestPayment(options: RequestPaymentOptions): void;
6
+ }
7
+ export interface Uni {
8
+ /**
9
+ * @description 请求支付
10
+ * @param {RequestPaymentOptions} options
11
+ * @example
12
+ * ```typescript
13
+ * uni.requestPayment({
14
+ * provider: "alipay",
15
+ * orderInfo: "",
16
+ * success: function (res) {
17
+ * console.log("支付成功"+JSON.stringify(res))
18
+ * }
19
+ * });
20
+ * ```
21
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/payment.html#requestpayment
22
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
23
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
24
+ * @uniPlatform {
25
+ * "app": {
26
+ * "android": {
27
+ * "osVer": "5.0",
28
+ * "uniVer": "√",
29
+ * "unixVer": "4.02"
30
+ * },
31
+ * "ios": {
32
+ * "osVer": "12.0",
33
+ * "uniVer": "√",
34
+ * "unixVer": "4.18"
35
+ * },
36
+ * "harmony": {
37
+ * "osVer": "3.0",
38
+ * "uniVer": "4.26",
39
+ * "unixVer": "4.61"
40
+ * }
41
+ * },
42
+ * "mp": {
43
+ * "weixin": {
44
+ * "hostVer": "√",
45
+ * "uniVer": "√",
46
+ * "unixVer": "4.41"
47
+ * },
48
+ * "alipay": {
49
+ * "hostVer": "√",
50
+ * "uniVer": "√",
51
+ * "unixVer": "x"
52
+ * },
53
+ * "baidu": {
54
+ * "hostVer": "√",
55
+ * "uniVer": "√",
56
+ * "unixVer": "x"
57
+ * },
58
+ * "toutiao": {
59
+ * "hostVer": "√",
60
+ * "uniVer": "√",
61
+ * "unixVer": "x"
62
+ * },
63
+ * "lark": {
64
+ * "hostVer": "√",
65
+ * "uniVer": "√",
66
+ * "unixVer": "x"
67
+ * },
68
+ * "qq": {
69
+ * "hostVer": "√",
70
+ * "uniVer": "√",
71
+ * "unixVer": "x"
72
+ * },
73
+ * "kuaishou": {
74
+ * "hostVer": "√",
75
+ * "uniVer": "√",
76
+ * "unixVer": "x"
77
+ * },
78
+ * "jd": {
79
+ * "hostVer": "√",
80
+ * "uniVer": "√",
81
+ * "unixVer": "x"
82
+ * }
83
+ * },
84
+ * "web": {
85
+ * "uniVer": "x",
86
+ * "unixVer": "x"
87
+ * }
88
+ * }
89
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestPayment.html
90
+ */
91
+ requestPayment(options: RequestPaymentOptions): void;
92
+ }
93
+ /**
94
+ * 错误码
95
+ */
96
+ export type RequestPaymentErrorCode =
97
+ /**
98
+ * 正在处理中,支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态
99
+ * @uniPlatform {
100
+ * "app": {
101
+ * "android": {
102
+ * "osVer": "5.0",
103
+ * "uniVer": "√",
104
+ * "unixVer": "4.02"
105
+ * },
106
+ * "ios": {
107
+ * "osVer": "12.0",
108
+ * "uniVer": "√",
109
+ * "unixVer": "4.18"
110
+ * },
111
+ * "harmony": {
112
+ * "osVer": "3.0",
113
+ * "uniVer": "4.27",
114
+ * "unixVer": "4.61"
115
+ * }
116
+ * },
117
+ * "web": {
118
+ * "uniVer": "x",
119
+ * "unixVer": "x"
120
+ * }
121
+ * }
122
+ */
123
+ 700600 |
124
+ /**
125
+ * 订单支付失败。
126
+ * @uniPlatform {
127
+ * "app": {
128
+ * "android": {
129
+ * "osVer": "5.0",
130
+ * "uniVer": "√",
131
+ * "unixVer": "4.02"
132
+ * },
133
+ * "ios": {
134
+ * "osVer": "12.0",
135
+ * "uniVer": "√",
136
+ * "unixVer": "4.18"
137
+ * },
138
+ * "harmony": {
139
+ * "osVer": "3.0",
140
+ * "uniVer": "4.27",
141
+ * "unixVer": "4.61"
142
+ * }
143
+ * },
144
+ * "web": {
145
+ * "uniVer": "x",
146
+ * "unixVer": "x"
147
+ * }
148
+ * }
149
+ */
150
+ 701100 |
151
+ /**
152
+ * 重复请求。
153
+ * @uniPlatform {
154
+ * "app": {
155
+ * "android": {
156
+ * "osVer": "5.0",
157
+ * "uniVer": "√",
158
+ * "unixVer": "4.02"
159
+ * },
160
+ * "ios": {
161
+ * "osVer": "12.0",
162
+ * "uniVer": "√",
163
+ * "unixVer": "4.18"
164
+ * },
165
+ * "harmony": {
166
+ * "osVer": "3.0",
167
+ * "uniVer": "4.27",
168
+ * "unixVer": "4.61"
169
+ * }
170
+ * },
171
+ * "web": {
172
+ * "uniVer": "x",
173
+ * "unixVer": "x"
174
+ * }
175
+ * }
176
+ */
177
+ 701110 |
178
+ /**
179
+ * 用户中途取消。
180
+ * @uniPlatform {
181
+ * "app": {
182
+ * "android": {
183
+ * "osVer": "5.0",
184
+ * "uniVer": "√",
185
+ * "unixVer": "4.02"
186
+ * },
187
+ * "ios": {
188
+ * "osVer": "12.0",
189
+ * "uniVer": "√",
190
+ * "unixVer": "4.18"
191
+ * },
192
+ * "harmony": {
193
+ * "osVer": "3.0",
194
+ * "uniVer": "4.27",
195
+ * "unixVer": "4.61"
196
+ * }
197
+ * },
198
+ * "web": {
199
+ * "uniVer": "x",
200
+ * "unixVer": "x"
201
+ * }
202
+ * }
203
+ */
204
+ 700601 |
205
+ /**
206
+ * 网络连接出错。
207
+ * @uniPlatform {
208
+ * "app": {
209
+ * "android": {
210
+ * "osVer": "5.0",
211
+ * "uniVer": "√",
212
+ * "unixVer": "4.02"
213
+ * },
214
+ * "ios": {
215
+ * "osVer": "12.0",
216
+ * "uniVer": "√",
217
+ * "unixVer": "4.18"
218
+ * },
219
+ * "harmony": {
220
+ * "osVer": "3.0",
221
+ * "uniVer": "4.27",
222
+ * "unixVer": "4.61"
223
+ * }
224
+ * },
225
+ * "web": {
226
+ * "uniVer": "x",
227
+ * "unixVer": "x"
228
+ * }
229
+ * }
230
+ */
231
+ 700602 |
232
+ /**
233
+ * 支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态。
234
+ * @uniPlatform {
235
+ * "app": {
236
+ * "android": {
237
+ * "osVer": "5.0",
238
+ * "uniVer": "√",
239
+ * "unixVer": "4.02"
240
+ * },
241
+ * "ios": {
242
+ * "osVer": "12.0",
243
+ * "uniVer": "√",
244
+ * "unixVer": "4.18"
245
+ * },
246
+ * "harmony": {
247
+ * "osVer": "3.0",
248
+ * "uniVer": "4.27",
249
+ * "unixVer": "4.61"
250
+ * }
251
+ * },
252
+ * "web": {
253
+ * "uniVer": "x",
254
+ * "unixVer": "x"
255
+ * }
256
+ * }
257
+ */
258
+ 700603 |
259
+ /**
260
+ * 其它支付错误。
261
+ * @uniPlatform {
262
+ * "app": {
263
+ * "android": {
264
+ * "osVer": "5.0",
265
+ * "uniVer": "√",
266
+ * "unixVer": "4.02"
267
+ * },
268
+ * "ios": {
269
+ * "osVer": "12.0",
270
+ * "uniVer": "√",
271
+ * "unixVer": "4.18"
272
+ * },
273
+ * "harmony": {
274
+ * "osVer": "3.0",
275
+ * "uniVer": "4.27",
276
+ * "unixVer": "4.61"
277
+ * }
278
+ * },
279
+ * "web": {
280
+ * "uniVer": "x",
281
+ * "unixVer": "x"
282
+ * }
283
+ * }
284
+ */
285
+ 700000 |
286
+ /**
287
+ * 微信没有安装。
288
+ * @uniPlatform {
289
+ * "app": {
290
+ * "android": {
291
+ * "osVer": "5.0",
292
+ * "uniVer": "√",
293
+ * "unixVer": "4.02"
294
+ * },
295
+ * "ios": {
296
+ * "osVer": "12.0",
297
+ * "uniVer": "√",
298
+ * "unixVer": "4.18"
299
+ * },
300
+ * "harmony": {
301
+ * "osVer": "3.0",
302
+ * "uniVer": "4.27",
303
+ * "unixVer": "4.61"
304
+ * }
305
+ * },
306
+ * "web": {
307
+ * "uniVer": "x",
308
+ * "unixVer": "x"
309
+ * }
310
+ * }
311
+ */
312
+ 700604 |
313
+ /**
314
+ * 服务供应商获取失败。
315
+ * @uniPlatform {
316
+ * "app": {
317
+ * "android": {
318
+ * "osVer": "5.0",
319
+ * "uniVer": "√",
320
+ * "unixVer": "4.02"
321
+ * },
322
+ * "ios": {
323
+ * "osVer": "12.0",
324
+ * "uniVer": "√",
325
+ * "unixVer": "4.18"
326
+ * },
327
+ * "harmony": {
328
+ * "osVer": "3.0",
329
+ * "uniVer": "4.27",
330
+ * "unixVer": "4.61"
331
+ * }
332
+ * },
333
+ * "web": {
334
+ * "uniVer": "x",
335
+ * "unixVer": "x"
336
+ * }
337
+ * }
338
+ */
339
+ 700605 |
340
+ /**
341
+ * 支付未完成。
342
+ * @uniPlatform {
343
+ * "app": {
344
+ * "android": {
345
+ * "osVer": "5.0",
346
+ * "uniVer": "x",
347
+ * "unixVer": "4.31"
348
+ * },
349
+ * "ios": {
350
+ * "osVer": "12.0",
351
+ * "uniVer": "x",
352
+ * "unixVer": "4.31"
353
+ * },
354
+ * "harmony": {
355
+ * "osVer": "3.0",
356
+ * "uniVer": "4.31",
357
+ * "unixVer": "4.61"
358
+ * }
359
+ * },
360
+ * "web": {
361
+ * "uniVer": "x",
362
+ * "unixVer": "x"
363
+ * }
364
+ * }
365
+ */
366
+ 700607 |
367
+ /**
368
+ * 服务商返回参数错误。
369
+ * @uniPlatform {
370
+ * "app": {
371
+ * "android": {
372
+ * "osVer": "5.0",
373
+ * "uniVer": "x",
374
+ * "unixVer": "4.31"
375
+ * },
376
+ * "ios": {
377
+ * "osVer": "12.0",
378
+ * "uniVer": "x",
379
+ * "unixVer": "4.31"
380
+ * },
381
+ * "harmony": {
382
+ * "osVer": "3.0",
383
+ * "uniVer": "4.31",
384
+ * "unixVer": "4.61"
385
+ * }
386
+ * },
387
+ * "web": {
388
+ * "uniVer": "x",
389
+ * "unixVer": "x"
390
+ * }
391
+ * }
392
+ */
393
+ 700608 |
394
+ /**
395
+ * 没有配置对应的URL Scheme。
396
+ * @uniPlatform {
397
+ * "app": {
398
+ * "android": {
399
+ * "osVer": "5.0",
400
+ * "uniVer": "√",
401
+ * "unixVer": "4.02"
402
+ * },
403
+ * "ios": {
404
+ * "osVer": "12.0",
405
+ * "uniVer": "√",
406
+ * "unixVer": "4.18"
407
+ * },
408
+ * "harmony": {
409
+ * "osVer": "x",
410
+ * "uniVer": "x",
411
+ * "unixVer": "x"
412
+ * }
413
+ * },
414
+ * "web": {
415
+ * "uniVer": "x",
416
+ * "unixVer": "x"
417
+ * }
418
+ * }
419
+ */
420
+ 700800 |
421
+ /**
422
+ * 没有配置对应的Universal Link。
423
+ * @uniPlatform {
424
+ * "app": {
425
+ * "android": {
426
+ * "osVer": "5.0",
427
+ * "uniVer": "√",
428
+ * "unixVer": "4.02"
429
+ * },
430
+ * "ios": {
431
+ * "osVer": "12.0",
432
+ * "uniVer": "√",
433
+ * "unixVer": "4.18"
434
+ * },
435
+ * "harmony": {
436
+ * "osVer": "x",
437
+ * "uniVer": "x",
438
+ * "unixVer": "x"
439
+ * }
440
+ * },
441
+ * "web": {
442
+ * "uniVer": "x",
443
+ * "unixVer": "x"
444
+ * }
445
+ * }
446
+ */
447
+ 700801;
448
+
449
+
450
+ export type RequestPayment = (options: RequestPaymentOptions) => void;
451
+ export type RequestPaymentSuccess = {
452
+ /**
453
+ * 返回数据
454
+ * @uniPlatform {
455
+ * "app": {
456
+ * "android": {
457
+ * "osVer": "5.0",
458
+ * "uniVer": "√",
459
+ * "unixVer": "4.02"
460
+ * },
461
+ * "ios": {
462
+ * "osVer": "12.0",
463
+ * "uniVer": "√",
464
+ * "unixVer": "4.18"
465
+ * },
466
+ * "harmony": {
467
+ * "osVer": "3.0",
468
+ * "uniVer": "4.25",
469
+ * "unixVer": "4.61"
470
+ * }
471
+ * },
472
+ * "mp": {
473
+ * "weixin": {
474
+ * "hostVer": "√",
475
+ * "uniVer": "√",
476
+ * "unixVer": "4.41"
477
+ * },
478
+ * "alipay": {
479
+ * "hostVer": "√",
480
+ * "uniVer": "√",
481
+ * "unixVer": "x"
482
+ * },
483
+ * "baidu": {
484
+ * "hostVer": "√",
485
+ * "uniVer": "√",
486
+ * "unixVer": "x"
487
+ * },
488
+ * "toutiao": {
489
+ * "hostVer": "√",
490
+ * "uniVer": "√",
491
+ * "unixVer": "x"
492
+ * },
493
+ * "lark": {
494
+ * "hostVer": "√",
495
+ * "uniVer": "√",
496
+ * "unixVer": "x"
497
+ * },
498
+ * "qq": {
499
+ * "hostVer": "√",
500
+ * "uniVer": "√",
501
+ * "unixVer": "x"
502
+ * },
503
+ * "kuaishou": {
504
+ * "hostVer": "√",
505
+ * "uniVer": "√",
506
+ * "unixVer": "x"
507
+ * },
508
+ * "jd": {
509
+ * "hostVer": "√",
510
+ * "uniVer": "√",
511
+ * "unixVer": "x"
512
+ * }
513
+ * },
514
+ * "web": {
515
+ * "uniVer": "x",
516
+ * "unixVer": "x"
517
+ * }
518
+ * }
519
+ */
520
+ data: object | null
521
+ };
522
+ export type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void;
523
+ export type RequestPaymentFail = IRequestPaymentFail;
524
+ export type RequestPaymentFailCallback = (result: RequestPaymentFail) => void;
525
+ export type RequestPaymentComplete = any
526
+ export interface IRequestPaymentFail extends IUniError {
527
+ errCode: RequestPaymentErrorCode
528
+ };
529
+ export type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void;
530
+ export type RequestPaymentOptions = {
531
+ /**
532
+ * 支付服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持支付宝支付(alipay),微信支付(wxpay)
533
+ * @uniPlatform {
534
+ * "app": {
535
+ * "android": {
536
+ * "osVer": "5.0",
537
+ * "uniVer": "√",
538
+ * "unixVer": "4.02"
539
+ * },
540
+ * "ios": {
541
+ * "osVer": "12.0",
542
+ * "uniVer": "√",
543
+ * "unixVer": "4.18"
544
+ * },
545
+ * "harmony": {
546
+ * "osVer": "3,0",
547
+ * "uniVer": "4.25",
548
+ * "unixVer": "4.61"
549
+ * }
550
+ * },
551
+ * "web": {
552
+ * "uniVer": "x",
553
+ * "unixVer": "x"
554
+ * }
555
+ * }
556
+ */
557
+ provider: string,
558
+ /**
559
+ * 订单数据
560
+ * @uniPlatform {
561
+ * "app": {
562
+ * "android": {
563
+ * "osVer": "5.0",
564
+ * "uniVer": "√",
565
+ * "unixVer": "4.02"
566
+ * },
567
+ * "ios": {
568
+ * "osVer": "12.0",
569
+ * "uniVer": "√",
570
+ * "unixVer": "4.18"
571
+ * },
572
+ * "harmony": {
573
+ * "osVer": "3.0",
574
+ * "uniVer": "4.25",
575
+ * "unixVer": "4.61"
576
+ * }
577
+ * },
578
+ * "mp": {
579
+ * "weixin": {
580
+ * "hostVer": "√",
581
+ * "uniVer": "√",
582
+ * "unixVer": "x"
583
+ * },
584
+ * "alipay": {
585
+ * "hostVer": "√",
586
+ * "uniVer": "√",
587
+ * "unixVer": "x"
588
+ * },
589
+ * "baidu": {
590
+ * "hostVer": "√",
591
+ * "uniVer": "√",
592
+ * "unixVer": "x"
593
+ * },
594
+ * "toutiao": {
595
+ * "hostVer": "√",
596
+ * "uniVer": "√",
597
+ * "unixVer": "x"
598
+ * },
599
+ * "lark": {
600
+ * "hostVer": "√",
601
+ * "uniVer": "√",
602
+ * "unixVer": "x"
603
+ * },
604
+ * "qq": {
605
+ * "hostVer": "√",
606
+ * "uniVer": "√",
607
+ * "unixVer": "x"
608
+ * },
609
+ * "kuaishou": {
610
+ * "hostVer": "√",
611
+ * "uniVer": "√",
612
+ * "unixVer": "x"
613
+ * },
614
+ * "jd": {
615
+ * "hostVer": "√",
616
+ * "uniVer": "√",
617
+ * "unixVer": "x"
618
+ * }
619
+ * },
620
+ * "web": {
621
+ * "uniVer": "x",
622
+ * "unixVer": "x"
623
+ * }
624
+ * }
625
+ */
626
+ orderInfo: string,
627
+ /**
628
+ * 接口调用成功的回调函数
629
+ * @uniPlatform {
630
+ * "app": {
631
+ * "android": {
632
+ * "osVer": "5.0",
633
+ * "uniVer": "√",
634
+ * "unixVer": "4.02"
635
+ * },
636
+ * "ios": {
637
+ * "osVer": "12.0",
638
+ * "uniVer": "√",
639
+ * "unixVer": "4.18"
640
+ * },
641
+ * "harmony": {
642
+ * "osVer": "3,0",
643
+ * "uniVer": "4.25",
644
+ * "unixVer": "4.61"
645
+ * }
646
+ * },
647
+ * "mp": {
648
+ * "weixin": {
649
+ * "hostVer": "√",
650
+ * "uniVer": "√",
651
+ * "unixVer": "4.41"
652
+ * },
653
+ * "alipay": {
654
+ * "hostVer": "√",
655
+ * "uniVer": "√",
656
+ * "unixVer": "x"
657
+ * },
658
+ * "baidu": {
659
+ * "hostVer": "√",
660
+ * "uniVer": "√",
661
+ * "unixVer": "x"
662
+ * },
663
+ * "toutiao": {
664
+ * "hostVer": "√",
665
+ * "uniVer": "√",
666
+ * "unixVer": "x"
667
+ * },
668
+ * "lark": {
669
+ * "hostVer": "√",
670
+ * "uniVer": "√",
671
+ * "unixVer": "x"
672
+ * },
673
+ * "qq": {
674
+ * "hostVer": "√",
675
+ * "uniVer": "√",
676
+ * "unixVer": "x"
677
+ * },
678
+ * "kuaishou": {
679
+ * "hostVer": "√",
680
+ * "uniVer": "√",
681
+ * "unixVer": "x"
682
+ * },
683
+ * "jd": {
684
+ * "hostVer": "√",
685
+ * "uniVer": "√",
686
+ * "unixVer": "x"
687
+ * }
688
+ * },
689
+ * "web": {
690
+ * "uniVer": "x",
691
+ * "unixVer": "x"
692
+ * }
693
+ * }
694
+ */
695
+ success: RequestPaymentSuccessCallback | null,
696
+ /**
697
+ * 接口调用失败的回调函数
698
+ * @uniPlatform {
699
+ * "app": {
700
+ * "android": {
701
+ * "osVer": "5.0",
702
+ * "uniVer": "√",
703
+ * "unixVer": "4.02"
704
+ * },
705
+ * "ios": {
706
+ * "osVer": "12.0",
707
+ * "uniVer": "√",
708
+ * "unixVer": "4.18"
709
+ * },
710
+ * "harmony": {
711
+ * "osVer": "3.0",
712
+ * "uniVer": "4.25",
713
+ * "unixVer": "4.61"
714
+ * }
715
+ * },
716
+ * "mp": {
717
+ * "weixin": {
718
+ * "hostVer": "√",
719
+ * "uniVer": "√",
720
+ * "unixVer": "4.41"
721
+ * },
722
+ * "alipay": {
723
+ * "hostVer": "√",
724
+ * "uniVer": "√",
725
+ * "unixVer": "x"
726
+ * },
727
+ * "baidu": {
728
+ * "hostVer": "√",
729
+ * "uniVer": "√",
730
+ * "unixVer": "x"
731
+ * },
732
+ * "toutiao": {
733
+ * "hostVer": "√",
734
+ * "uniVer": "√",
735
+ * "unixVer": "x"
736
+ * },
737
+ * "lark": {
738
+ * "hostVer": "√",
739
+ * "uniVer": "√",
740
+ * "unixVer": "x"
741
+ * },
742
+ * "qq": {
743
+ * "hostVer": "√",
744
+ * "uniVer": "√",
745
+ * "unixVer": "x"
746
+ * },
747
+ * "kuaishou": {
748
+ * "hostVer": "√",
749
+ * "uniVer": "√",
750
+ * "unixVer": "x"
751
+ * },
752
+ * "jd": {
753
+ * "hostVer": "√",
754
+ * "uniVer": "√",
755
+ * "unixVer": "x"
756
+ * }
757
+ * },
758
+ * "web": {
759
+ * "uniVer": "x",
760
+ * "unixVer": "x"
761
+ * }
762
+ * }
763
+ */
764
+ fail: RequestPaymentFailCallback | null,
765
+ /**
766
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
767
+ * @uniPlatform {
768
+ * "app": {
769
+ * "android": {
770
+ * "osVer": "5.0",
771
+ * "uniVer": "√",
772
+ * "unixVer": "4.02"
773
+ * },
774
+ * "ios": {
775
+ * "osVer": "12.0",
776
+ * "uniVer": "√",
777
+ * "unixVer": "4.18"
778
+ * },
779
+ * "harmony": {
780
+ * "osVer": "3.0",
781
+ * "uniVer": "4.25",
782
+ * "unixVer": "4.61"
783
+ * }
784
+ * },
785
+ * "mp": {
786
+ * "weixin": {
787
+ * "hostVer": "√",
788
+ * "uniVer": "√",
789
+ * "unixVer": "4.41"
790
+ * },
791
+ * "alipay": {
792
+ * "hostVer": "√",
793
+ * "uniVer": "√",
794
+ * "unixVer": "x"
795
+ * },
796
+ * "baidu": {
797
+ * "hostVer": "√",
798
+ * "uniVer": "√",
799
+ * "unixVer": "x"
800
+ * },
801
+ * "toutiao": {
802
+ * "hostVer": "√",
803
+ * "uniVer": "√",
804
+ * "unixVer": "x"
805
+ * },
806
+ * "lark": {
807
+ * "hostVer": "√",
808
+ * "uniVer": "√",
809
+ * "unixVer": "x"
810
+ * },
811
+ * "qq": {
812
+ * "hostVer": "√",
813
+ * "uniVer": "√",
814
+ * "unixVer": "x"
815
+ * },
816
+ * "kuaishou": {
817
+ * "hostVer": "√",
818
+ * "uniVer": "√",
819
+ * "unixVer": "x"
820
+ * },
821
+ * "jd": {
822
+ * "hostVer": "√",
823
+ * "uniVer": "√",
824
+ * "unixVer": "x"
825
+ * }
826
+ * },
827
+ * "web": {
828
+ * "uniVer": "x",
829
+ * "unixVer": "x"
830
+ * }
831
+ * }
832
+ */
833
+ complete?: RequestPaymentCompleteCallback | null
834
+ /**
835
+ * 随机字符串,长度为32个字符以下
836
+ *
837
+ * @uniPlatform {
838
+ * "mp": {
839
+ * "weixin": {
840
+ * "hostVer": "√",
841
+ * "uniVer": "√",
842
+ * "unixVer": "4.41"
843
+ * },
844
+ * "alipay": {
845
+ * "hostVer": "-",
846
+ * "uniVer": "-",
847
+ * "unixVer": "-"
848
+ * },
849
+ * "baidu": {
850
+ * "hostVer": "-",
851
+ * "uniVer": "-",
852
+ * "unixVer": "-"
853
+ * },
854
+ * "toutiao": {
855
+ * "hostVer": "-",
856
+ * "uniVer": "-",
857
+ * "unixVer": "-"
858
+ * },
859
+ * "lark": {
860
+ * "hostVer": "-",
861
+ * "uniVer": "-",
862
+ * "unixVer": "-"
863
+ * },
864
+ * "qq": {
865
+ * "hostVer": "-",
866
+ * "uniVer": "-",
867
+ * "unixVer": "-"
868
+ * },
869
+ * "kuaishou": {
870
+ * "hostVer": "-",
871
+ * "uniVer": "-",
872
+ * "unixVer": "-"
873
+ * },
874
+ * "jd": {
875
+ * "hostVer": "-",
876
+ * "uniVer": "-",
877
+ * "unixVer": "-"
878
+ * }
879
+ * }
880
+ * }
881
+ */
882
+ nonceStr?: string | null;
883
+ /**
884
+ * 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=***
885
+ *
886
+ * @uniPlatform {
887
+ * "mp": {
888
+ * "weixin": {
889
+ * "hostVer": "√",
890
+ * "uniVer": "√",
891
+ * "unixVer": "4.41"
892
+ * },
893
+ * "alipay": {
894
+ * "hostVer": "-",
895
+ * "uniVer": "-",
896
+ * "unixVer": "-"
897
+ * },
898
+ * "baidu": {
899
+ * "hostVer": "-",
900
+ * "uniVer": "-",
901
+ * "unixVer": "-"
902
+ * },
903
+ * "toutiao": {
904
+ * "hostVer": "-",
905
+ * "uniVer": "-",
906
+ * "unixVer": "-"
907
+ * },
908
+ * "lark": {
909
+ * "hostVer": "-",
910
+ * "uniVer": "-",
911
+ * "unixVer": "-"
912
+ * },
913
+ * "qq": {
914
+ * "hostVer": "-",
915
+ * "uniVer": "-",
916
+ * "unixVer": "-"
917
+ * },
918
+ * "kuaishou": {
919
+ * "hostVer": "-",
920
+ * "uniVer": "-",
921
+ * "unixVer": "-"
922
+ * },
923
+ * "jd": {
924
+ * "hostVer": "-",
925
+ * "uniVer": "-",
926
+ * "unixVer": "-"
927
+ * }
928
+ * }
929
+ * }
930
+ */
931
+ package?: string | null;
932
+ /**
933
+ * 签名,具体见微信支付文档
934
+ *
935
+ * @uniPlatform {
936
+ * "mp": {
937
+ * "weixin": {
938
+ * "hostVer": "√",
939
+ * "uniVer": "√",
940
+ * "unixVer": "4.41"
941
+ * },
942
+ * "alipay": {
943
+ * "hostVer": "-",
944
+ * "uniVer": "-",
945
+ * "unixVer": "-"
946
+ * },
947
+ * "baidu": {
948
+ * "hostVer": "-",
949
+ * "uniVer": "-",
950
+ * "unixVer": "-"
951
+ * },
952
+ * "toutiao": {
953
+ * "hostVer": "-",
954
+ * "uniVer": "-",
955
+ * "unixVer": "-"
956
+ * },
957
+ * "lark": {
958
+ * "hostVer": "-",
959
+ * "uniVer": "-",
960
+ * "unixVer": "-"
961
+ * },
962
+ * "qq": {
963
+ * "hostVer": "-",
964
+ * "uniVer": "-",
965
+ * "unixVer": "-"
966
+ * },
967
+ * "kuaishou": {
968
+ * "hostVer": "-",
969
+ * "uniVer": "-",
970
+ * "unixVer": "-"
971
+ * },
972
+ * "jd": {
973
+ * "hostVer": "-",
974
+ * "uniVer": "-",
975
+ * "unixVer": "-"
976
+ * }
977
+ * }
978
+ * }
979
+ */
980
+ paySign?: string | null;
981
+ /**
982
+ * 时间戳,从 1970 年 1 月 1 日 00:00:00 至今的秒数,即当前的时间
983
+ *
984
+ * @uniPlatform {
985
+ * "mp": {
986
+ * "weixin": {
987
+ * "hostVer": "√",
988
+ * "uniVer": "√",
989
+ * "unixVer": "4.41"
990
+ * },
991
+ * "alipay": {
992
+ * "hostVer": "-",
993
+ * "uniVer": "-",
994
+ * "unixVer": "-"
995
+ * },
996
+ * "baidu": {
997
+ * "hostVer": "-",
998
+ * "uniVer": "-",
999
+ * "unixVer": "-"
1000
+ * },
1001
+ * "toutiao": {
1002
+ * "hostVer": "-",
1003
+ * "uniVer": "-",
1004
+ * "unixVer": "-"
1005
+ * },
1006
+ * "lark": {
1007
+ * "hostVer": "-",
1008
+ * "uniVer": "-",
1009
+ * "unixVer": "-"
1010
+ * },
1011
+ * "qq": {
1012
+ * "hostVer": "-",
1013
+ * "uniVer": "-",
1014
+ * "unixVer": "-"
1015
+ * },
1016
+ * "kuaishou": {
1017
+ * "hostVer": "-",
1018
+ * "uniVer": "-",
1019
+ * "unixVer": "-"
1020
+ * },
1021
+ * "jd": {
1022
+ * "hostVer": "-",
1023
+ * "uniVer": "-",
1024
+ * "unixVer": "-"
1025
+ * }
1026
+ * }
1027
+ * }
1028
+ */
1029
+ timeStamp?: string | null;
1030
+ /**
1031
+ * 签名算法,应与后台下单时的值一致
1032
+ *
1033
+ * 可选值:
1034
+ * - 'MD5': 仅在 v2 版本接口适用;
1035
+ * - 'HMAC-SHA256': 仅在 v2 版本接口适用;
1036
+ * - 'RSA': 仅在 v3 版本接口适用;
1037
+ *
1038
+ * @uniPlatform {
1039
+ * "mp": {
1040
+ * "weixin": {
1041
+ * "hostVer": "√",
1042
+ * "uniVer": "√",
1043
+ * "unixVer": "4.41"
1044
+ * },
1045
+ * "alipay": {
1046
+ * "hostVer": "-",
1047
+ * "uniVer": "-",
1048
+ * "unixVer": "-"
1049
+ * },
1050
+ * "baidu": {
1051
+ * "hostVer": "-",
1052
+ * "uniVer": "-",
1053
+ * "unixVer": "-"
1054
+ * },
1055
+ * "toutiao": {
1056
+ * "hostVer": "-",
1057
+ * "uniVer": "-",
1058
+ * "unixVer": "-"
1059
+ * },
1060
+ * "lark": {
1061
+ * "hostVer": "-",
1062
+ * "uniVer": "-",
1063
+ * "unixVer": "-"
1064
+ * },
1065
+ * "qq": {
1066
+ * "hostVer": "-",
1067
+ * "uniVer": "-",
1068
+ * "unixVer": "-"
1069
+ * },
1070
+ * "kuaishou": {
1071
+ * "hostVer": "-",
1072
+ * "uniVer": "-",
1073
+ * "unixVer": "-"
1074
+ * },
1075
+ * "jd": {
1076
+ * "hostVer": "-",
1077
+ * "uniVer": "-",
1078
+ * "unixVer": "-"
1079
+ * }
1080
+ * }
1081
+ * }
1082
+ */
1083
+ signType?: "MD5" | "HMAC-SHA256" | "RSA" | null;
1084
+ };