@dcloudio/uni-app-x 0.7.112 → 0.7.113

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 (379) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniNativeView.d.ts +1 -0
  3. package/types/dom2-internal/UniPage.d.ts +16 -0
  4. package/types/native/CSSStyleDeclaration.d.ts +172 -172
  5. package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
  6. package/types/native/DrawableContext.d.ts +1893 -1893
  7. package/types/native/IUniElement.d.ts +7468 -7468
  8. package/types/native/IUniNativeViewElement.d.ts +327 -327
  9. package/types/native/SnapshotOptions.d.ts +337 -62
  10. package/types/native/UniPage.d.ts +1305 -1305
  11. package/types/native/UniResizeObserver.d.ts +749 -749
  12. package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
  13. package/types/native/UniSwiperChangeEvent.d.ts +58 -58
  14. package/types/page.d.ts +3154 -3112
  15. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
  19. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
  20. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
  21. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
  22. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
  23. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
  24. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
  25. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
  27. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
  28. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
  29. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
  30. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
  31. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
  32. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  33. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
  34. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
  35. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
  36. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
  37. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
  38. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
  39. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
  41. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  42. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
  43. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
  44. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
  45. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
  46. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
  47. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
  48. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
  49. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
  50. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
  53. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
  56. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
  57. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
  58. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
  59. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
  60. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  61. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
  62. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
  64. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
  65. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
  66. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
  67. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
  78. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
  79. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
  80. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
  81. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
  83. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
  84. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
  85. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
  86. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
  87. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
  88. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
  89. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
  91. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
  92. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
  93. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
  94. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
  95. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
  96. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
  97. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
  99. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
  100. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
  101. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  102. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
  103. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
  104. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
  105. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
  106. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
  107. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
  108. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
  109. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
  110. package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
  111. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  112. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
  113. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
  114. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
  115. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
  116. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
  117. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
  118. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  119. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
  120. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
  121. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
  122. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
  123. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
  124. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  125. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
  126. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
  127. package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
  128. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
  129. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
  130. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
  131. package/types/uni/uts-plugin-component/global.d.ts +79 -0
  132. package/types/uni/uts-plugin-component/index.d.ts +79 -0
  133. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
  134. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
  135. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
  136. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
  137. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  138. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
  139. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
  140. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
  141. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
  142. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
  143. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
  144. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  145. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
  146. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
  147. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  148. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
  149. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
  150. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
  151. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
  152. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
  153. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
  154. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
  155. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
  156. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
  157. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
  158. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
  159. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
  160. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
  161. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
  162. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
  163. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
  164. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
  165. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
  166. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
  167. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
  168. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
  169. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
  170. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
  171. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
  172. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
  173. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
  174. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
  175. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
  176. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
  177. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
  178. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
  179. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
  180. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
  181. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
  182. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
  183. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
  184. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
  185. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
  186. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
  187. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
  188. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
  189. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
  190. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
  191. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
  192. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
  193. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
  194. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
  195. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
  196. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
  197. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
  198. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
  199. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
  200. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
  201. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
  202. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
  203. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
  204. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
  205. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
  206. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
  207. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
  208. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
  209. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
  210. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
  211. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
  212. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
  213. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
  214. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
  215. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
  216. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
  217. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
  218. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
  219. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
  220. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
  221. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
  222. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
  223. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
  224. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
  225. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
  226. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
  227. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
  228. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
  229. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
  230. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
  231. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
  232. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
  233. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
  234. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
  235. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
  236. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
  237. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
  238. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
  239. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
  240. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
  241. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
  242. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
  243. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
  244. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
  245. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
  246. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
  247. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
  248. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
  249. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
  250. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
  251. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
  252. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
  253. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
  254. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
  255. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
  256. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
  257. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
  258. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
  259. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
  260. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
  261. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
  262. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  263. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
  264. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
  265. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
  266. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
  267. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
  268. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
  269. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
  270. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
  271. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
  272. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
  273. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
  274. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
  275. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
  276. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
  277. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
  278. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
  279. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
  280. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
  281. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
  282. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
  283. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
  284. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  285. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
  286. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
  287. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
  288. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
  289. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
  290. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
  291. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
  292. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
  293. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
  294. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
  295. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
  296. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
  297. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
  298. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
  299. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
  300. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
  301. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
  302. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
  303. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
  304. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
  305. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  306. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
  307. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
  308. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
  309. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
  310. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
  311. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
  312. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
  313. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
  314. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
  315. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
  316. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
  317. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
  318. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
  319. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
  320. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
  321. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
  322. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
  323. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
  324. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
  325. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
  326. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
  327. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
  328. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
  329. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
  330. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
  331. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
  332. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
  333. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
  334. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
  335. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
  336. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
  337. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
  338. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
  339. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  340. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  341. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
  342. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
  343. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
  344. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
  345. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
  346. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
  347. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
  348. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
  349. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
  350. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
  351. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
  352. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
  353. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
  354. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
  355. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
  356. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
  357. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
  358. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
  359. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
  360. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
  361. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
  362. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
  363. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
  364. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
  365. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
  366. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
  367. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
  368. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
  369. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
  370. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
  371. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
  372. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
  373. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
  374. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
  375. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
  376. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
  377. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
  378. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
  379. package/types/vue/LifeCycle.d.ts +865 -854
@@ -0,0 +1,1661 @@
1
+ import { RequestVirtualPaymentFailImpl as RequestVirtualPaymentFailImplement } from './unierror.uts'
2
+
3
+ export type RequestVirtualPaymentFailImpl = RequestVirtualPaymentFailImplement
4
+ export interface Uni {
5
+ /**
6
+ * @description 请求支付
7
+ * @param {RequestVirtualPaymentOptions} options
8
+ * @example
9
+ * ```typescript
10
+ * uni.requestVirtualPayment({
11
+ * provider: "alipay",
12
+ * orderInfo: "",
13
+ * success: function (res) {
14
+ * console.log("支付成功"+JSON.stringify(res))
15
+ * }
16
+ * });
17
+ * ```
18
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#requestvirtualpayment
19
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/virtualPayment.html
20
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#requestvirtualpayment
21
+ * @uniPlatform {
22
+ * "app": {
23
+ * "android": {
24
+ * "osVer": "5.0",
25
+ * "uniVer": "x",
26
+ * "unixVer": "x"
27
+ * },
28
+ * "ios": {
29
+ * "osVer": "15.0",
30
+ * "uniVer": "√",
31
+ * "unixVer": "4.25"
32
+ * }
33
+ * },
34
+ * "mp": {
35
+ * "weixin": {
36
+ * "hostVer": "√",
37
+ * "uniVer": "√",
38
+ * "unixVer": "4.41"
39
+ * },
40
+ * "alipay": {
41
+ * "hostVer": "√",
42
+ * "uniVer": "x",
43
+ * "unixVer": "x"
44
+ * },
45
+ * "baidu": {
46
+ * "hostVer": "√",
47
+ * "uniVer": "x",
48
+ * "unixVer": "x"
49
+ * },
50
+ * "toutiao": {
51
+ * "hostVer": "√",
52
+ * "uniVer": "x",
53
+ * "unixVer": "x"
54
+ * },
55
+ * "lark": {
56
+ * "hostVer": "√",
57
+ * "uniVer": "x",
58
+ * "unixVer": "x"
59
+ * },
60
+ * "qq": {
61
+ * "hostVer": "√",
62
+ * "uniVer": "x",
63
+ * "unixVer": "x"
64
+ * },
65
+ * "kuaishou": {
66
+ * "hostVer": "√",
67
+ * "uniVer": "x",
68
+ * "unixVer": "x"
69
+ * },
70
+ * "jd": {
71
+ * "hostVer": "√",
72
+ * "uniVer": "x",
73
+ * "unixVer": "x"
74
+ * }
75
+ * },
76
+ * "web": {
77
+ * "uniVer": "x",
78
+ * "unixVer": "x"
79
+ * }
80
+ * }
81
+ */
82
+ requestVirtualPayment(options: RequestVirtualPaymentOptions): void;
83
+
84
+ /**
85
+ * @description 获取各平台虚拟支付的管理类,用于操作各平台专有的API。
86
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#getvirtualpaymentmanager
87
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#getvirtualpaymentmanager
88
+ * @uniPlatform {
89
+ * "app": {
90
+ * "android": {
91
+ * "osVer": "5.0",
92
+ * "uniVer": "x",
93
+ * "unixVer": "x"
94
+ * },
95
+ * "ios": {
96
+ * "osVer": "15.0",
97
+ * "uniVer": "√",
98
+ * "unixVer": "4.25"
99
+ * },
100
+ * "harmony": {
101
+ * "osVer": "x",
102
+ * "uniVer": "x",
103
+ * "unixVer": "x"
104
+ * }
105
+ * },
106
+ * "web": {
107
+ * "uniVer": "x",
108
+ * "unixVer": "x"
109
+ * }
110
+ * }
111
+ * @return {VirtualPaymentManager} virtual-payment的管理类
112
+ */
113
+ getVirtualPaymentManager(): GetVirtualPaymentManager;
114
+ }
115
+
116
+ export type GetVirtualPaymentManager = () => VirtualPaymentManager;
117
+
118
+ export interface VirtualPaymentManager {
119
+ /**
120
+ * @description 恢复苹果服务器已支付的交易列表
121
+ * @param {AppleIAPRestoreOptions} options
122
+ * @example
123
+ * ```typescript
124
+ * restoreTransactions({
125
+ * success: function (res) {
126
+ * console.log("恢复成功"+JSON.stringify(res))
127
+ * }
128
+ * });
129
+ * ```
130
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#restoretransactions
131
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#restoretransactions
132
+ * @uniPlatform {
133
+ * "app": {
134
+ * "android": {
135
+ * "osVer": "5.0",
136
+ * "uniVer": "x",
137
+ * "unixVer": "x"
138
+ * },
139
+ * "ios": {
140
+ * "osVer": "15.0",
141
+ * "uniVer": "√",
142
+ * "unixVer": "4.25"
143
+ * }
144
+ * },
145
+ * "web": {
146
+ * "uniVer": "x",
147
+ * "unixVer": "x"
148
+ * }
149
+ * }
150
+ */
151
+ restoreTransactions(options: AppleIAPRestoreOptions): void;
152
+
153
+ /**
154
+ * @description 获取苹果服务器已支付且未关闭的交易列表
155
+ * @param {AppleIAPUnfinishedTransactionOptions} options
156
+ * @example
157
+ * ```typescript
158
+ * getUnfinishedTransactions({
159
+ * success: function (res) {
160
+ * console.log("获取成功"+JSON.stringify(res))
161
+ * }
162
+ * });
163
+ * ```
164
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#getunfinishedtransactions
165
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#getunfinishedtransactions
166
+ * @uniPlatform {
167
+ * "app": {
168
+ * "android": {
169
+ * "osVer": "5.0",
170
+ * "uniVer": "x",
171
+ * "unixVer": "x"
172
+ * },
173
+ * "ios": {
174
+ * "osVer": "15.0",
175
+ * "uniVer": "√",
176
+ * "unixVer": "4.25"
177
+ * }
178
+ * },
179
+ * "web": {
180
+ * "uniVer": "x",
181
+ * "unixVer": "x"
182
+ * }
183
+ * }
184
+ */
185
+ getUnfinishedTransactions(options: AppleIAPUnfinishedTransactionOptions): void;
186
+ /**
187
+ * @description 关闭苹果服务器订单
188
+ * @param {AppleIAPFinishTransactionOptions} options
189
+ * @example
190
+ * ```typescript
191
+ * finishTransaction({
192
+ * success: function (res) {
193
+ * console.log("关单成功"+JSON.stringify(res))
194
+ * }
195
+ * });
196
+ * ```
197
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#finishtransaction
198
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#finishtransaction
199
+ * @uniPlatform {
200
+ * "app": {
201
+ * "android": {
202
+ * "osVer": "5.0",
203
+ * "uniVer": "x",
204
+ * "unixVer": "x"
205
+ * },
206
+ * "ios": {
207
+ * "osVer": "15.0",
208
+ * "uniVer": "√",
209
+ * "unixVer": "4.25"
210
+ * }
211
+ * },
212
+ * "web": {
213
+ * "uniVer": "x",
214
+ * "unixVer": "x"
215
+ * }
216
+ * }
217
+ */
218
+ finishTransaction(options: AppleIAPFinishTransactionOptions): void;
219
+ };
220
+
221
+
222
+ /**
223
+ * 错误码
224
+ */
225
+ export type RequestVirtualPaymentErrorCode =
226
+ /**
227
+ * 正在处理中,支付结果未知
228
+ * @uniPlatform {
229
+ * "app": {
230
+ * "android": {
231
+ * "osVer": "5.0",
232
+ * "uniVer": "x",
233
+ * "unixVer": "x"
234
+ * },
235
+ * "ios": {
236
+ * "osVer": "15.0",
237
+ * "uniVer": "√",
238
+ * "unixVer": "4.25"
239
+ * }
240
+ * },
241
+ * "web": {
242
+ * "uniVer": "x",
243
+ * "unixVer": "x"
244
+ * }
245
+ * }
246
+ */
247
+ 700600 |
248
+ /**
249
+ * 用户中途取消。
250
+ * @uniPlatform {
251
+ * "app": {
252
+ * "android": {
253
+ * "osVer": "5.0",
254
+ * "uniVer": "x",
255
+ * "unixVer": "x"
256
+ * },
257
+ * "ios": {
258
+ * "osVer": "15.0",
259
+ * "uniVer": "√",
260
+ * "unixVer": "4.25"
261
+ * }
262
+ * },
263
+ * "web": {
264
+ * "uniVer": "x",
265
+ * "unixVer": "x"
266
+ * }
267
+ * }
268
+ */
269
+ 700601 |
270
+ /**
271
+ * 网络连接出错。
272
+ * @uniPlatform {
273
+ * "app": {
274
+ * "android": {
275
+ * "osVer": "5.0",
276
+ * "uniVer": "x",
277
+ * "unixVer": "x"
278
+ * },
279
+ * "ios": {
280
+ * "osVer": "15.0",
281
+ * "uniVer": "√",
282
+ * "unixVer": "4.25"
283
+ * }
284
+ * },
285
+ * "web": {
286
+ * "uniVer": "x",
287
+ * "unixVer": "x"
288
+ * }
289
+ * }
290
+ */
291
+ 700602 |
292
+ /**
293
+ * 不允许App内购买项目, 请授权应用内购买权限。
294
+ * @uniPlatform {
295
+ * "app": {
296
+ * "android": {
297
+ * "osVer": "5.0",
298
+ * "uniVer": "x",
299
+ * "unixVer": "x"
300
+ * },
301
+ * "ios": {
302
+ * "osVer": "15.0",
303
+ * "uniVer": "√",
304
+ * "unixVer": "4.25"
305
+ * }
306
+ * },
307
+ * "web": {
308
+ * "uniVer": "x",
309
+ * "unixVer": "x"
310
+ * }
311
+ * }
312
+ */
313
+ 700604 |
314
+ /**
315
+ * 产品无效。
316
+ * @uniPlatform {
317
+ * "app": {
318
+ * "android": {
319
+ * "osVer": "5.0",
320
+ * "uniVer": "x",
321
+ * "unixVer": "x"
322
+ * },
323
+ * "ios": {
324
+ * "osVer": "15.0",
325
+ * "uniVer": "√",
326
+ * "unixVer": "4.25"
327
+ * }
328
+ * },
329
+ * "web": {
330
+ * "uniVer": "x",
331
+ * "unixVer": "x"
332
+ * }
333
+ * }
334
+ */
335
+ 700605 |
336
+ /**
337
+ * 促销信息错误。
338
+ * @uniPlatform {
339
+ * "app": {
340
+ * "android": {
341
+ * "osVer": "5.0",
342
+ * "uniVer": "x",
343
+ * "unixVer": "x"
344
+ * },
345
+ * "ios": {
346
+ * "osVer": "15.0",
347
+ * "uniVer": "√",
348
+ * "unixVer": "4.25"
349
+ * }
350
+ * },
351
+ * "web": {
352
+ * "uniVer": "x",
353
+ * "unixVer": "x"
354
+ * }
355
+ * }
356
+ */
357
+ 700606 |
358
+ /**
359
+ * 缺少支付参数。
360
+ * @uniPlatform {
361
+ * "app": {
362
+ * "android": {
363
+ * "osVer": "5.0",
364
+ * "uniVer": "x",
365
+ * "unixVer": "x"
366
+ * },
367
+ * "ios": {
368
+ * "osVer": "15.0",
369
+ * "uniVer": "√",
370
+ * "unixVer": "4.25"
371
+ * }
372
+ * },
373
+ * "web": {
374
+ * "uniVer": "x",
375
+ * "unixVer": "x"
376
+ * }
377
+ * }
378
+ */
379
+ 700607 |
380
+ /**
381
+ * 只支持iOS15以上的版本。
382
+ * @uniPlatform {
383
+ * "app": {
384
+ * "android": {
385
+ * "osVer": "5.0",
386
+ * "uniVer": "x",
387
+ * "unixVer": "x"
388
+ * },
389
+ * "ios": {
390
+ * "osVer": "15.0",
391
+ * "uniVer": "√",
392
+ * "unixVer": "4.25"
393
+ * }
394
+ * },
395
+ * "web": {
396
+ * "uniVer": "x",
397
+ * "unixVer": "x"
398
+ * }
399
+ * }
400
+ */
401
+ 700800 |
402
+ /**
403
+ * 其他未知错误。
404
+ * @uniPlatform {
405
+ * "app": {
406
+ * "android": {
407
+ * "osVer": "5.0",
408
+ * "uniVer": "x",
409
+ * "unixVer": "x"
410
+ * },
411
+ * "ios": {
412
+ * "osVer": "15.0",
413
+ * "uniVer": "√",
414
+ * "unixVer": "4.25"
415
+ * }
416
+ * },
417
+ * "web": {
418
+ * "uniVer": "x",
419
+ * "unixVer": "x"
420
+ * }
421
+ * }
422
+ */
423
+ 700000;
424
+
425
+
426
+ export type RequestVirtualPayment = (options: RequestVirtualPaymentOptions) => void;
427
+
428
+ export type AppleIAPPromotionalOffer = {
429
+ /**
430
+ * 促销id
431
+ * @uniPlatform {
432
+ * "app": {
433
+ * "android": {
434
+ * "osVer": "5.0",
435
+ * "uniVer": "x",
436
+ * "unixVer": "x"
437
+ * },
438
+ * "ios": {
439
+ * "osVer": "15.0",
440
+ * "uniVer": "√",
441
+ * "unixVer": "4.25"
442
+ * }
443
+ * },
444
+ * "web": {
445
+ * "uniVer": "x",
446
+ * "unixVer": "x"
447
+ * }
448
+ * }
449
+ */
450
+ offerIdentifier: string,
451
+ /**
452
+ * 密钥
453
+ * @uniPlatform {
454
+ * "app": {
455
+ * "android": {
456
+ * "osVer": "5.0",
457
+ * "uniVer": "x",
458
+ * "unixVer": "x"
459
+ * },
460
+ * "ios": {
461
+ * "osVer": "15.0",
462
+ * "uniVer": "√",
463
+ * "unixVer": "4.25"
464
+ * }
465
+ * },
466
+ * "web": {
467
+ * "uniVer": "x",
468
+ * "unixVer": "x"
469
+ * }
470
+ * }
471
+ */
472
+ keyIdentifier: string,
473
+ /**
474
+ * 唯一id (必须小写 24小时有效)
475
+ * @uniPlatform {
476
+ * "app": {
477
+ * "android": {
478
+ * "osVer": "5.0",
479
+ * "uniVer": "x",
480
+ * "unixVer": "x"
481
+ * },
482
+ * "ios": {
483
+ * "osVer": "15.0",
484
+ * "uniVer": "√",
485
+ * "unixVer": "4.25"
486
+ * }
487
+ * },
488
+ * "web": {
489
+ * "uniVer": "x",
490
+ * "unixVer": "x"
491
+ * }
492
+ * }
493
+ */
494
+ nonce: string,
495
+ /**
496
+ * 签名
497
+ * @uniPlatform {
498
+ * "app": {
499
+ * "android": {
500
+ * "osVer": "5.0",
501
+ * "uniVer": "x",
502
+ * "unixVer": "x"
503
+ * },
504
+ * "ios": {
505
+ * "osVer": "15.0",
506
+ * "uniVer": "√",
507
+ * "unixVer": "4.25"
508
+ * }
509
+ * },
510
+ * "web": {
511
+ * "uniVer": "x",
512
+ * "unixVer": "x"
513
+ * }
514
+ * }
515
+ */
516
+ signature: string,
517
+ /**
518
+ * 创建证书的时间戳(毫秒 24小时有效)
519
+ * @uniPlatform {
520
+ * "app": {
521
+ * "android": {
522
+ * "osVer": "5.0",
523
+ * "uniVer": "x",
524
+ * "unixVer": "x"
525
+ * },
526
+ * "ios": {
527
+ * "osVer": "15.0",
528
+ * "uniVer": "√",
529
+ * "unixVer": "4.25"
530
+ * }
531
+ * },
532
+ * "web": {
533
+ * "uniVer": "x",
534
+ * "unixVer": "x"
535
+ * }
536
+ * }
537
+ */
538
+ timestamp: number
539
+ }
540
+
541
+ export type AppleIAPTransactionOptions = {
542
+ /**
543
+ * 产品id,和苹果开发者中心配置的一样
544
+ * @uniPlatform {
545
+ * "app": {
546
+ * "android": {
547
+ * "osVer": "5.0",
548
+ * "uniVer": "x",
549
+ * "unixVer": "x"
550
+ * },
551
+ * "ios": {
552
+ * "osVer": "15.0",
553
+ * "uniVer": "√",
554
+ * "unixVer": "4.25"
555
+ * }
556
+ * },
557
+ * "web": {
558
+ * "uniVer": "x",
559
+ * "unixVer": "x"
560
+ * }
561
+ * }
562
+ */
563
+ productId: string,
564
+ /**
565
+ * 透传参数,一般用于标记订单和用户的关系,可以用来验证和关联用户账户和购买记录
566
+ * @uniPlatform {
567
+ * "app": {
568
+ * "android": {
569
+ * "osVer": "5.0",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * },
573
+ * "ios": {
574
+ * "osVer": "15.0",
575
+ * "uniVer": "√",
576
+ * "unixVer": "4.25"
577
+ * }
578
+ * },
579
+ * "web": {
580
+ * "uniVer": "x",
581
+ * "unixVer": "x"
582
+ * }
583
+ * }
584
+ */
585
+ appAccountToken?: string | null,
586
+ /**
587
+ * 购买数量
588
+ * @uniPlatform {
589
+ * "app": {
590
+ * "android": {
591
+ * "osVer": "5.0",
592
+ * "uniVer": "x",
593
+ * "unixVer": "x"
594
+ * },
595
+ * "ios": {
596
+ * "osVer": "15.0",
597
+ * "uniVer": "√",
598
+ * "unixVer": "4.25"
599
+ * }
600
+ * },
601
+ * "web": {
602
+ * "uniVer": "x",
603
+ * "unixVer": "x"
604
+ * }
605
+ * }
606
+ */
607
+ quantity: number,
608
+ /**
609
+ * 交易日期,示例 2022-01-01 08:00:00
610
+ * @uniPlatform {
611
+ * "app": {
612
+ * "android": {
613
+ * "osVer": "5.0",
614
+ * "uniVer": "x",
615
+ * "unixVer": "x"
616
+ * },
617
+ * "ios": {
618
+ * "osVer": "15.0",
619
+ * "uniVer": "√",
620
+ * "unixVer": "4.25"
621
+ * }
622
+ * },
623
+ * "web": {
624
+ * "uniVer": "x",
625
+ * "unixVer": "x"
626
+ * }
627
+ * }
628
+ */
629
+ transactionDate: Date,
630
+ /**
631
+ * 交易唯一标识
632
+ * @uniPlatform {
633
+ * "app": {
634
+ * "android": {
635
+ * "osVer": "5.0",
636
+ * "uniVer": "x",
637
+ * "unixVer": "x"
638
+ * },
639
+ * "ios": {
640
+ * "osVer": "15.0",
641
+ * "uniVer": "√",
642
+ * "unixVer": "4.25"
643
+ * }
644
+ * },
645
+ * "web": {
646
+ * "uniVer": "x",
647
+ * "unixVer": "x"
648
+ * }
649
+ * }
650
+ */
651
+ transactionIdentifier: string,
652
+ /**
653
+ * 原始交易日期,示例 2022-01-01 08:00:00
654
+ * @uniPlatform {
655
+ * "app": {
656
+ * "android": {
657
+ * "osVer": "5.0",
658
+ * "uniVer": "x",
659
+ * "unixVer": "x"
660
+ * },
661
+ * "ios": {
662
+ * "osVer": "15.0",
663
+ * "uniVer": "√",
664
+ * "unixVer": "4.25"
665
+ * }
666
+ * },
667
+ * "web": {
668
+ * "uniVer": "x",
669
+ * "unixVer": "x"
670
+ * }
671
+ * }
672
+ */
673
+ originalTransactionDate: Date,
674
+ /**
675
+ * 原始交易唯一标识
676
+ * @uniPlatform {
677
+ * "app": {
678
+ * "android": {
679
+ * "osVer": "5.0",
680
+ * "uniVer": "x",
681
+ * "unixVer": "x"
682
+ * },
683
+ * "ios": {
684
+ * "osVer": "15.0",
685
+ * "uniVer": "√",
686
+ * "unixVer": "4.25"
687
+ * }
688
+ * },
689
+ * "web": {
690
+ * "uniVer": "x",
691
+ * "unixVer": "x"
692
+ * }
693
+ * }
694
+ */
695
+ originalTransactionIdentifier: string,
696
+ /**
697
+ * 支付票据
698
+ * @uniPlatform {
699
+ * "app": {
700
+ * "android": {
701
+ * "osVer": "5.0",
702
+ * "uniVer": "x",
703
+ * "unixVer": "x"
704
+ * },
705
+ * "ios": {
706
+ * "osVer": "15.0",
707
+ * "uniVer": "√",
708
+ * "unixVer": "4.25"
709
+ * }
710
+ * },
711
+ * "web": {
712
+ * "uniVer": "x",
713
+ * "unixVer": "x"
714
+ * }
715
+ * }
716
+ */
717
+ jsonRepresentation: string,
718
+ }
719
+ export type GoolgeIapSuccessOptions = {
720
+
721
+ }
722
+ export type HuaweiIapSuccessOptions = {
723
+
724
+ }
725
+ export type WeixinIapSuccessOptions = {
726
+
727
+ }
728
+
729
+ export type RequestVirtualPaymentSuccess = {
730
+ /**
731
+ * 支付成功返回结果
732
+ * @uniPlatform {
733
+ * "app": {
734
+ * "android": {
735
+ * "osVer": "5.0",
736
+ * "uniVer": "x",
737
+ * "unixVer": "x"
738
+ * },
739
+ * "ios": {
740
+ * "osVer": "15.0",
741
+ * "uniVer": "√",
742
+ * "unixVer": "4.25"
743
+ * }
744
+ * },
745
+ * "web": {
746
+ * "uniVer": "x",
747
+ * "unixVer": "x"
748
+ * }
749
+ * }
750
+ */
751
+ apple?: AppleIAPTransactionOptions | null,
752
+ // google ?: GoolgeIapSuccessOptions | null,
753
+ // huawei ?: HuaweiIapSuccessOptions | null,
754
+ // weixin ?: WeixinIapSuccessOptions | null,
755
+ };
756
+ export type RequestVirtualPaymentSuccessCallback = (result: RequestVirtualPaymentSuccess) => void;
757
+ export type RequestVirtualPaymentFail = IRequestVirtualPaymentFail;
758
+ export type RequestVirtualPaymentFailCallback = (result: RequestVirtualPaymentFail) => void;
759
+ export interface IRequestVirtualPaymentFail extends IUniError {
760
+ /**
761
+ * 错误码
762
+ * @uniPlatform {
763
+ * "app": {
764
+ * "android": {
765
+ * "osVer": "5.0",
766
+ * "uniVer": "x",
767
+ * "unixVer": "x"
768
+ * },
769
+ * "ios": {
770
+ * "osVer": "15.0",
771
+ * "uniVer": "√",
772
+ * "unixVer": "4.25"
773
+ * }
774
+ * },
775
+ * "web": {
776
+ * "uniVer": "x",
777
+ * "unixVer": "x"
778
+ * }
779
+ * }
780
+ */
781
+ errCode: RequestVirtualPaymentErrorCode
782
+ };
783
+ export type RequestVirtualPaymentComplete = any
784
+ export type RequestVirtualPaymentCompleteCallback = (result: RequestVirtualPaymentComplete) => void;
785
+
786
+ export type AppleIAPOptions = {
787
+ /**
788
+ * 产品id,在苹果开发者中心配置
789
+ * @uniPlatform {
790
+ * "app": {
791
+ * "android": {
792
+ * "osVer": "5.0",
793
+ * "uniVer": "x",
794
+ * "unixVer": "x"
795
+ * },
796
+ * "ios": {
797
+ * "osVer": "15.0",
798
+ * "uniVer": "√",
799
+ * "unixVer": "4.25"
800
+ * }
801
+ * },
802
+ * "web": {
803
+ * "uniVer": "x",
804
+ * "unixVer": "x"
805
+ * }
806
+ * }
807
+ */
808
+ productId: string,
809
+ /**
810
+ * 透传参数,一般用于标记订单和用户的关系,可以用来验证和关联用户账户和购买记录
811
+ * @uniPlatform {
812
+ * "app": {
813
+ * "android": {
814
+ * "osVer": "5.0",
815
+ * "uniVer": "x",
816
+ * "unixVer": "x"
817
+ * },
818
+ * "ios": {
819
+ * "osVer": "15.0",
820
+ * "uniVer": "√",
821
+ * "unixVer": "4.25"
822
+ * }
823
+ * },
824
+ * "web": {
825
+ * "uniVer": "x",
826
+ * "unixVer": "x"
827
+ * }
828
+ * }
829
+ */
830
+ appAccountToken?: string | null,
831
+ /**
832
+ * 购买数量,默认是1,最小值是1,最大值是10
833
+ * @uniPlatform {
834
+ * "app": {
835
+ * "android": {
836
+ * "osVer": "5.0",
837
+ * "uniVer": "x",
838
+ * "unixVer": "x"
839
+ * },
840
+ * "ios": {
841
+ * "osVer": "15.0",
842
+ * "uniVer": "√",
843
+ * "unixVer": "4.25"
844
+ * }
845
+ * },
846
+ * "web": {
847
+ * "uniVer": "x",
848
+ * "unixVer": "x"
849
+ * }
850
+ * }
851
+ */
852
+ quantity: number,
853
+ /**
854
+ * 促销优惠参数说明
855
+ * @uniPlatform {
856
+ * "app": {
857
+ * "android": {
858
+ * "osVer": "5.0",
859
+ * "uniVer": "x",
860
+ * "unixVer": "x"
861
+ * },
862
+ * "ios": {
863
+ * "osVer": "15.0",
864
+ * "uniVer": "√",
865
+ * "unixVer": "4.25"
866
+ * }
867
+ * },
868
+ * "web": {
869
+ * "uniVer": "x",
870
+ * "unixVer": "x"
871
+ * }
872
+ * }
873
+ */
874
+ promotionalOffer?: AppleIAPPromotionalOffer | null
875
+ };
876
+ export type GoogleIapOptions = {
877
+
878
+ };
879
+ export type HuaweiIapOptions = {
880
+
881
+ };
882
+ export type WeixinIapOptions = {
883
+
884
+ };
885
+ export type RequestVirtualPaymentOptions = {
886
+ /**
887
+ * 苹果IAP的参数
888
+ * @uniPlatform {
889
+ * "app": {
890
+ * "android": {
891
+ * "osVer": "5.0",
892
+ * "uniVer": "x",
893
+ * "unixVer": "x"
894
+ * },
895
+ * "ios": {
896
+ * "osVer": "15.0",
897
+ * "uniVer": "√",
898
+ * "unixVer": "4.25"
899
+ * }
900
+ * },
901
+ * "web": {
902
+ * "uniVer": "x",
903
+ * "unixVer": "x"
904
+ * }
905
+ * }
906
+ */
907
+ apple?: AppleIAPOptions | null,
908
+ // /**
909
+ // * Google IAP的参数
910
+ // */
911
+ // google ?: GoogleIapOptions | null,
912
+ // /**
913
+ // * 华为 IAP的参数
914
+ // */
915
+ // huawei ?: HuaweiIapOptions | null,
916
+ // /**
917
+ // * 微信虚拟支付的参数
918
+ // */
919
+ // weixin ?: WeixinIapOptions | null,
920
+ /**
921
+ * 接口调用成功的回调函数
922
+ * @uniPlatform {
923
+ * "app": {
924
+ * "android": {
925
+ * "osVer": "5.0",
926
+ * "uniVer": "x",
927
+ * "unixVer": "x"
928
+ * },
929
+ * "ios": {
930
+ * "osVer": "15.0",
931
+ * "uniVer": "√",
932
+ * "unixVer": "4.25"
933
+ * }
934
+ * },
935
+ * "mp": {
936
+ * "weixin": {
937
+ * "hostVer": "√",
938
+ * "uniVer": "√",
939
+ * "unixVer": "4.41"
940
+ * },
941
+ * "alipay": {
942
+ * "hostVer": "√",
943
+ * "uniVer": "x",
944
+ * "unixVer": "x"
945
+ * },
946
+ * "baidu": {
947
+ * "hostVer": "√",
948
+ * "uniVer": "x",
949
+ * "unixVer": "x"
950
+ * },
951
+ * "toutiao": {
952
+ * "hostVer": "√",
953
+ * "uniVer": "x",
954
+ * "unixVer": "x"
955
+ * },
956
+ * "lark": {
957
+ * "hostVer": "√",
958
+ * "uniVer": "x",
959
+ * "unixVer": "x"
960
+ * },
961
+ * "qq": {
962
+ * "hostVer": "√",
963
+ * "uniVer": "x",
964
+ * "unixVer": "x"
965
+ * },
966
+ * "kuaishou": {
967
+ * "hostVer": "√",
968
+ * "uniVer": "x",
969
+ * "unixVer": "x"
970
+ * },
971
+ * "jd": {
972
+ * "hostVer": "√",
973
+ * "uniVer": "x",
974
+ * "unixVer": "x"
975
+ * }
976
+ * },
977
+ * "web": {
978
+ * "uniVer": "x",
979
+ * "unixVer": "x"
980
+ * }
981
+ * }
982
+ */
983
+ success?: RequestVirtualPaymentSuccessCallback | null,
984
+ /**
985
+ * 接口调用失败的回调函数
986
+ * @uniPlatform {
987
+ * "app": {
988
+ * "android": {
989
+ * "osVer": "5.0",
990
+ * "uniVer": "x",
991
+ * "unixVer": "x"
992
+ * },
993
+ * "ios": {
994
+ * "osVer": "15.0",
995
+ * "uniVer": "√",
996
+ * "unixVer": "4.25"
997
+ * }
998
+ * },
999
+ * "mp": {
1000
+ * "weixin": {
1001
+ * "hostVer": "√",
1002
+ * "uniVer": "√",
1003
+ * "unixVer": "4.41"
1004
+ * },
1005
+ * "alipay": {
1006
+ * "hostVer": "√",
1007
+ * "uniVer": "x",
1008
+ * "unixVer": "x"
1009
+ * },
1010
+ * "baidu": {
1011
+ * "hostVer": "√",
1012
+ * "uniVer": "x",
1013
+ * "unixVer": "x"
1014
+ * },
1015
+ * "toutiao": {
1016
+ * "hostVer": "√",
1017
+ * "uniVer": "x",
1018
+ * "unixVer": "x"
1019
+ * },
1020
+ * "lark": {
1021
+ * "hostVer": "√",
1022
+ * "uniVer": "x",
1023
+ * "unixVer": "x"
1024
+ * },
1025
+ * "qq": {
1026
+ * "hostVer": "√",
1027
+ * "uniVer": "x",
1028
+ * "unixVer": "x"
1029
+ * },
1030
+ * "kuaishou": {
1031
+ * "hostVer": "√",
1032
+ * "uniVer": "x",
1033
+ * "unixVer": "x"
1034
+ * },
1035
+ * "jd": {
1036
+ * "hostVer": "√",
1037
+ * "uniVer": "x",
1038
+ * "unixVer": "x"
1039
+ * }
1040
+ * },
1041
+ * "web": {
1042
+ * "uniVer": "x",
1043
+ * "unixVer": "x"
1044
+ * }
1045
+ * }
1046
+ */
1047
+ fail?: RequestVirtualPaymentFailCallback | null,
1048
+ /**
1049
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1050
+ * @uniPlatform {
1051
+ * "app": {
1052
+ * "android": {
1053
+ * "osVer": "5.0",
1054
+ * "uniVer": "x",
1055
+ * "unixVer": "x"
1056
+ * },
1057
+ * "ios": {
1058
+ * "osVer": "15.0",
1059
+ * "uniVer": "√",
1060
+ * "unixVer": "4.25"
1061
+ * }
1062
+ * },
1063
+ * "mp": {
1064
+ * "weixin": {
1065
+ * "hostVer": "√",
1066
+ * "uniVer": "√",
1067
+ * "unixVer": "4.41"
1068
+ * },
1069
+ * "alipay": {
1070
+ * "hostVer": "√",
1071
+ * "uniVer": "x",
1072
+ * "unixVer": "x"
1073
+ * },
1074
+ * "baidu": {
1075
+ * "hostVer": "√",
1076
+ * "uniVer": "x",
1077
+ * "unixVer": "x"
1078
+ * },
1079
+ * "toutiao": {
1080
+ * "hostVer": "√",
1081
+ * "uniVer": "x",
1082
+ * "unixVer": "x"
1083
+ * },
1084
+ * "lark": {
1085
+ * "hostVer": "√",
1086
+ * "uniVer": "x",
1087
+ * "unixVer": "x"
1088
+ * },
1089
+ * "qq": {
1090
+ * "hostVer": "√",
1091
+ * "uniVer": "x",
1092
+ * "unixVer": "x"
1093
+ * },
1094
+ * "kuaishou": {
1095
+ * "hostVer": "√",
1096
+ * "uniVer": "x",
1097
+ * "unixVer": "x"
1098
+ * },
1099
+ * "jd": {
1100
+ * "hostVer": "√",
1101
+ * "uniVer": "x",
1102
+ * "unixVer": "x"
1103
+ * }
1104
+ * },
1105
+ * "web": {
1106
+ * "uniVer": "x",
1107
+ * "unixVer": "x"
1108
+ * }
1109
+ * }
1110
+ */
1111
+ complete?: RequestVirtualPaymentCompleteCallback | null
1112
+ };
1113
+
1114
+
1115
+ //restoreTransactions
1116
+ export type RestoreTransactions = (options: AppleIAPRestoreOptions) => void;
1117
+ export type AppleIAPRestoreSuccess = {
1118
+ /**
1119
+ * 返回的交易列表
1120
+ * @uniPlatform {
1121
+ * "app": {
1122
+ * "android": {
1123
+ * "osVer": "5.0",
1124
+ * "uniVer": "x",
1125
+ * "unixVer": "x"
1126
+ * },
1127
+ * "ios": {
1128
+ * "osVer": "15.0",
1129
+ * "uniVer": "√",
1130
+ * "unixVer": "4.25"
1131
+ * }
1132
+ * },
1133
+ * "web": {
1134
+ * "uniVer": "x",
1135
+ * "unixVer": "x"
1136
+ * }
1137
+ * }
1138
+ */
1139
+ transactions?: AppleIAPTransactionOptions[] | null
1140
+ };
1141
+ export type AppleIAPRestoreSuccessCallback = (result: AppleIAPRestoreSuccess) => void;
1142
+ export type AppleIAPRestoreFail = IAppleIAPRestoreFail;
1143
+ export type AppleIAPRestoreFailCallback = (result: AppleIAPRestoreFail) => void;
1144
+ export interface IAppleIAPRestoreFail extends IUniError {
1145
+ /**
1146
+ * 错误码
1147
+ * @uniPlatform {
1148
+ * "app": {
1149
+ * "android": {
1150
+ * "osVer": "5.0",
1151
+ * "uniVer": "x",
1152
+ * "unixVer": "x"
1153
+ * },
1154
+ * "ios": {
1155
+ * "osVer": "15.0",
1156
+ * "uniVer": "√",
1157
+ * "unixVer": "4.25"
1158
+ * }
1159
+ * },
1160
+ * "web": {
1161
+ * "uniVer": "x",
1162
+ * "unixVer": "x"
1163
+ * }
1164
+ * }
1165
+ */
1166
+ errCode: AppleIAPRestoreErrorCode
1167
+ };
1168
+ export type AppleIAPRestoreComplete = any
1169
+ export type AppleIAPRestoreCompleteCallback = (result: AppleIAPRestoreComplete) => void;
1170
+ /**
1171
+ * 错误码
1172
+ */
1173
+ export type AppleIAPRestoreErrorCode =
1174
+ /**
1175
+ * apple restore 请求失败。
1176
+ * @uniPlatform {
1177
+ * "app": {
1178
+ * "android": {
1179
+ * "osVer": "5.0",
1180
+ * "uniVer": "x",
1181
+ * "unixVer": "x"
1182
+ * },
1183
+ * "ios": {
1184
+ * "osVer": "15.0",
1185
+ * "uniVer": "√",
1186
+ * "unixVer": "4.25"
1187
+ * }
1188
+ * },
1189
+ * "web": {
1190
+ * "uniVer": "x",
1191
+ * "unixVer": "x"
1192
+ * }
1193
+ * }
1194
+ */
1195
+ 700600 |
1196
+ /**
1197
+ * 用户中途取消。
1198
+ * @uniPlatform {
1199
+ * "app": {
1200
+ * "android": {
1201
+ * "osVer": "5.0",
1202
+ * "uniVer": "x",
1203
+ * "unixVer": "x"
1204
+ * },
1205
+ * "ios": {
1206
+ * "osVer": "15.0",
1207
+ * "uniVer": "√",
1208
+ * "unixVer": "4.25"
1209
+ * }
1210
+ * },
1211
+ * "web": {
1212
+ * "uniVer": "x",
1213
+ * "unixVer": "x"
1214
+ * }
1215
+ * }
1216
+ */
1217
+ 700601 |
1218
+ /**
1219
+ * 网络连接出错。
1220
+ * @uniPlatform {
1221
+ * "app": {
1222
+ * "android": {
1223
+ * "osVer": "5.0",
1224
+ * "uniVer": "x",
1225
+ * "unixVer": "x"
1226
+ * },
1227
+ * "ios": {
1228
+ * "osVer": "15.0",
1229
+ * "uniVer": "√",
1230
+ * "unixVer": "4.25"
1231
+ * }
1232
+ * },
1233
+ * "web": {
1234
+ * "uniVer": "x",
1235
+ * "unixVer": "x"
1236
+ * }
1237
+ * }
1238
+ */
1239
+ 700602 |
1240
+ /**
1241
+ * 只支持iOS15以上的版本。
1242
+ * @uniPlatform {
1243
+ * "app": {
1244
+ * "android": {
1245
+ * "osVer": "5.0",
1246
+ * "uniVer": "x",
1247
+ * "unixVer": "x"
1248
+ * },
1249
+ * "ios": {
1250
+ * "osVer": "15.0",
1251
+ * "uniVer": "√",
1252
+ * "unixVer": "4.25"
1253
+ * }
1254
+ * },
1255
+ * "web": {
1256
+ * "uniVer": "x",
1257
+ * "unixVer": "x"
1258
+ * }
1259
+ * }
1260
+ */
1261
+ 700800;
1262
+
1263
+
1264
+ export type AppleIAPRestoreOptions = {
1265
+ /**
1266
+ * 接口调用成功的回调函数
1267
+ * @uniPlatform {
1268
+ * "app": {
1269
+ * "android": {
1270
+ * "osVer": "5.0",
1271
+ * "uniVer": "x",
1272
+ * "unixVer": "x"
1273
+ * },
1274
+ * "ios": {
1275
+ * "osVer": "15.0",
1276
+ * "uniVer": "√",
1277
+ * "unixVer": "4.25"
1278
+ * }
1279
+ * },
1280
+ * "web": {
1281
+ * "uniVer": "x",
1282
+ * "unixVer": "x"
1283
+ * }
1284
+ * }
1285
+ */
1286
+ success?: AppleIAPRestoreSuccessCallback | null,
1287
+ /**
1288
+ * 接口调用失败的回调函数
1289
+ * @uniPlatform {
1290
+ * "app": {
1291
+ * "android": {
1292
+ * "osVer": "5.0",
1293
+ * "uniVer": "x",
1294
+ * "unixVer": "x"
1295
+ * },
1296
+ * "ios": {
1297
+ * "osVer": "15.0",
1298
+ * "uniVer": "√",
1299
+ * "unixVer": "4.25"
1300
+ * }
1301
+ * },
1302
+ * "web": {
1303
+ * "uniVer": "x",
1304
+ * "unixVer": "x"
1305
+ * }
1306
+ * }
1307
+ */
1308
+ fail?: AppleIAPRestoreFailCallback | null,
1309
+ /**
1310
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1311
+ * @uniPlatform {
1312
+ * "app": {
1313
+ * "android": {
1314
+ * "osVer": "5.0",
1315
+ * "uniVer": "x",
1316
+ * "unixVer": "x"
1317
+ * },
1318
+ * "ios": {
1319
+ * "osVer": "15.0",
1320
+ * "uniVer": "√",
1321
+ * "unixVer": "4.25"
1322
+ * }
1323
+ * },
1324
+ * "web": {
1325
+ * "uniVer": "x",
1326
+ * "unixVer": "x"
1327
+ * }
1328
+ * }
1329
+ */
1330
+ complete?: AppleIAPRestoreCompleteCallback | null
1331
+ };
1332
+
1333
+
1334
+
1335
+ //getUnfinishedTransactions
1336
+ export type GetUnfinishedTransactions = (options: AppleIAPUnfinishedTransactionOptions) => void;
1337
+ export type AppleIAPUnfinishedTransactionSuccess = {
1338
+ /**
1339
+ * 返回的交易列表
1340
+ * @uniPlatform {
1341
+ * "app": {
1342
+ * "android": {
1343
+ * "osVer": "5.0",
1344
+ * "uniVer": "x",
1345
+ * "unixVer": "x"
1346
+ * },
1347
+ * "ios": {
1348
+ * "osVer": "15.0",
1349
+ * "uniVer": "√",
1350
+ * "unixVer": "4.25"
1351
+ * }
1352
+ * },
1353
+ * "web": {
1354
+ * "uniVer": "x",
1355
+ * "unixVer": "x"
1356
+ * }
1357
+ * }
1358
+ */
1359
+ transactions?: AppleIAPTransactionOptions[] | null
1360
+ };
1361
+ export type AppleIAPUnfinishedTransactionSuccessCallback = (result: AppleIAPUnfinishedTransactionSuccess) => void;
1362
+ export type AppleIAPUnfinishedTransactionFail = IAppleIAPUnfinishedTransactionFail;
1363
+ export type AppleIAPUnfinishedTransactionFailCallback = (result: AppleIAPUnfinishedTransactionFail) => void;
1364
+ export interface IAppleIAPUnfinishedTransactionFail extends IUniError {
1365
+ /**
1366
+ * 错误码
1367
+ * @uniPlatform {
1368
+ * "app": {
1369
+ * "android": {
1370
+ * "osVer": "5.0",
1371
+ * "uniVer": "x",
1372
+ * "unixVer": "x"
1373
+ * },
1374
+ * "ios": {
1375
+ * "osVer": "15.0",
1376
+ * "uniVer": "√",
1377
+ * "unixVer": "4.25"
1378
+ * }
1379
+ * },
1380
+ * "web": {
1381
+ * "uniVer": "x",
1382
+ * "unixVer": "x"
1383
+ * }
1384
+ * }
1385
+ */
1386
+ errCode: AppleIAPUnfinishedTransactionErrorCode
1387
+ };
1388
+ export type AppleIAPUnfinishedTransactionComplete = any
1389
+ export type AppleIAPUnfinishedTransactionCompleteCallback = (result: AppleIAPUnfinishedTransactionComplete) => void;
1390
+ /**
1391
+ * 错误码
1392
+ * - 700800 只支持iOS15以上的版本。
1393
+ */
1394
+ export type AppleIAPUnfinishedTransactionErrorCode = 700800;
1395
+
1396
+ export type AppleIAPUnfinishedTransactionOptions = {
1397
+ /**
1398
+ * 接口调用成功的回调函数
1399
+ * @uniPlatform {
1400
+ * "app": {
1401
+ * "android": {
1402
+ * "osVer": "5.0",
1403
+ * "uniVer": "x",
1404
+ * "unixVer": "x"
1405
+ * },
1406
+ * "ios": {
1407
+ * "osVer": "15.0",
1408
+ * "uniVer": "√",
1409
+ * "unixVer": "4.25"
1410
+ * }
1411
+ * },
1412
+ * "web": {
1413
+ * "uniVer": "x",
1414
+ * "unixVer": "x"
1415
+ * }
1416
+ * }
1417
+ */
1418
+ success?: AppleIAPUnfinishedTransactionSuccessCallback | null,
1419
+ /**
1420
+ * 接口调用失败的回调函数
1421
+ * @uniPlatform {
1422
+ * "app": {
1423
+ * "android": {
1424
+ * "osVer": "5.0",
1425
+ * "uniVer": "x",
1426
+ * "unixVer": "x"
1427
+ * },
1428
+ * "ios": {
1429
+ * "osVer": "15.0",
1430
+ * "uniVer": "√",
1431
+ * "unixVer": "4.25"
1432
+ * }
1433
+ * },
1434
+ * "web": {
1435
+ * "uniVer": "x",
1436
+ * "unixVer": "x"
1437
+ * }
1438
+ * }
1439
+ */
1440
+ fail?: AppleIAPUnfinishedTransactionFailCallback | null,
1441
+ /**
1442
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1443
+ * @uniPlatform {
1444
+ * "app": {
1445
+ * "android": {
1446
+ * "osVer": "5.0",
1447
+ * "uniVer": "x",
1448
+ * "unixVer": "x"
1449
+ * },
1450
+ * "ios": {
1451
+ * "osVer": "15.0",
1452
+ * "uniVer": "√",
1453
+ * "unixVer": "4.25"
1454
+ * }
1455
+ * },
1456
+ * "web": {
1457
+ * "uniVer": "x",
1458
+ * "unixVer": "x"
1459
+ * }
1460
+ * }
1461
+ */
1462
+ complete?: AppleIAPUnfinishedTransactionCompleteCallback | null
1463
+ };
1464
+
1465
+
1466
+
1467
+ //finishTransaction 相关定义
1468
+ export type FinishTransaction = (options: AppleIAPFinishTransactionOptions) => void;
1469
+ export type AppleIAPFinishTransactionSuccess = {
1470
+ /**
1471
+ * 关单状态
1472
+ * @uniPlatform {
1473
+ * "app": {
1474
+ * "android": {
1475
+ * "osVer": "5.0",
1476
+ * "uniVer": "x",
1477
+ * "unixVer": "x"
1478
+ * },
1479
+ * "ios": {
1480
+ * "osVer": "15.0",
1481
+ * "uniVer": "√",
1482
+ * "unixVer": "4.25"
1483
+ * }
1484
+ * },
1485
+ * "web": {
1486
+ * "uniVer": "x",
1487
+ * "unixVer": "x"
1488
+ * }
1489
+ * }
1490
+ */
1491
+ state?: boolean | null
1492
+ };
1493
+ export type AppleIAPFinishTransactionSuccessCallback = (result: AppleIAPFinishTransactionSuccess) => void;
1494
+ export type AppleIAPFinishTransactionFail = IAppleIAPFinishTransactionFail;
1495
+ export type AppleIAPFinishTransactionFailCallback = (result: AppleIAPFinishTransactionFail) => void;
1496
+ export interface IAppleIAPFinishTransactionFail extends IUniError {
1497
+ /**
1498
+ * 错误码
1499
+ * @uniPlatform {
1500
+ * "app": {
1501
+ * "android": {
1502
+ * "osVer": "5.0",
1503
+ * "uniVer": "x",
1504
+ * "unixVer": "x"
1505
+ * },
1506
+ * "ios": {
1507
+ * "osVer": "15.0",
1508
+ * "uniVer": "√",
1509
+ * "unixVer": "4.25"
1510
+ * }
1511
+ * },
1512
+ * "web": {
1513
+ * "uniVer": "x",
1514
+ * "unixVer": "x"
1515
+ * }
1516
+ * }
1517
+ */
1518
+ errCode: AppleIAPFinishTransactionFailErrorCode
1519
+ };
1520
+ export type AppleIAPFinishTransactionComplete = any
1521
+ export type AppleIAPFinishTransactionCompleteCallback = (result: AppleIAPFinishTransactionComplete) => void;
1522
+ /**
1523
+ * 错误码
1524
+ */
1525
+ export type AppleIAPFinishTransactionFailErrorCode =
1526
+ /**
1527
+ * 没有该交易。
1528
+ * @uniPlatform {
1529
+ * "app": {
1530
+ * "android": {
1531
+ * "osVer": "5.0",
1532
+ * "uniVer": "x",
1533
+ * "unixVer": "x"
1534
+ * },
1535
+ * "ios": {
1536
+ * "osVer": "15.0",
1537
+ * "uniVer": "√",
1538
+ * "unixVer": "4.25"
1539
+ * }
1540
+ * },
1541
+ * "web": {
1542
+ * "uniVer": "x",
1543
+ * "unixVer": "x"
1544
+ * }
1545
+ * }
1546
+ */
1547
+ 700600 |
1548
+ /**
1549
+ * 只支持iOS15以上的版本。
1550
+ * @uniPlatform {
1551
+ * "app": {
1552
+ * "android": {
1553
+ * "osVer": "5.0",
1554
+ * "uniVer": "x",
1555
+ * "unixVer": "x"
1556
+ * },
1557
+ * "ios": {
1558
+ * "osVer": "15.0",
1559
+ * "uniVer": "√",
1560
+ * "unixVer": "4.25"
1561
+ * }
1562
+ * },
1563
+ * "web": {
1564
+ * "uniVer": "x",
1565
+ * "unixVer": "x"
1566
+ * }
1567
+ * }
1568
+ */
1569
+ 700800;
1570
+
1571
+
1572
+ export type AppleIAPFinishTransactionOptions = {
1573
+ /**
1574
+ * 交易对象
1575
+ * @uniPlatform {
1576
+ * "app": {
1577
+ * "android": {
1578
+ * "osVer": "5.0",
1579
+ * "uniVer": "x",
1580
+ * "unixVer": "x"
1581
+ * },
1582
+ * "ios": {
1583
+ * "osVer": "15.0",
1584
+ * "uniVer": "√",
1585
+ * "unixVer": "4.25"
1586
+ * }
1587
+ * },
1588
+ * "web": {
1589
+ * "uniVer": "x",
1590
+ * "unixVer": "x"
1591
+ * }
1592
+ * }
1593
+ */
1594
+ transaction: AppleIAPTransactionOptions
1595
+ /**
1596
+ * 接口调用成功的回调函数
1597
+ * @uniPlatform {
1598
+ * "app": {
1599
+ * "android": {
1600
+ * "osVer": "5.0",
1601
+ * "uniVer": "x",
1602
+ * "unixVer": "x"
1603
+ * },
1604
+ * "ios": {
1605
+ * "osVer": "15.0",
1606
+ * "uniVer": "√",
1607
+ * "unixVer": "4.25"
1608
+ * }
1609
+ * },
1610
+ * "web": {
1611
+ * "uniVer": "x",
1612
+ * "unixVer": "x"
1613
+ * }
1614
+ * }
1615
+ */
1616
+ success?: AppleIAPFinishTransactionSuccessCallback | null,
1617
+ /**
1618
+ * 接口调用失败的回调函数
1619
+ * @uniPlatform {
1620
+ * "app": {
1621
+ * "android": {
1622
+ * "osVer": "5.0",
1623
+ * "uniVer": "x",
1624
+ * "unixVer": "x"
1625
+ * },
1626
+ * "ios": {
1627
+ * "osVer": "15.0",
1628
+ * "uniVer": "√",
1629
+ * "unixVer": "4.25"
1630
+ * }
1631
+ * },
1632
+ * "web": {
1633
+ * "uniVer": "x",
1634
+ * "unixVer": "x"
1635
+ * }
1636
+ * }
1637
+ */
1638
+ fail?: AppleIAPFinishTransactionFailCallback | null,
1639
+ /**
1640
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1641
+ * @uniPlatform {
1642
+ * "app": {
1643
+ * "android": {
1644
+ * "osVer": "5.0",
1645
+ * "uniVer": "x",
1646
+ * "unixVer": "x"
1647
+ * },
1648
+ * "ios": {
1649
+ * "osVer": "15.0",
1650
+ * "uniVer": "√",
1651
+ * "unixVer": "4.25"
1652
+ * }
1653
+ * },
1654
+ * "web": {
1655
+ * "uniVer": "x",
1656
+ * "unixVer": "x"
1657
+ * }
1658
+ * }
1659
+ */
1660
+ complete?: AppleIAPFinishTransactionCompleteCallback | null
1661
+ };