@dcloudio/uni-app-x 0.7.38 → 0.7.40

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 (130) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +172 -22
  3. package/types/app.d.ts +31 -31
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/DOMRect.d.ts +430 -10
  7. package/types/native/DrawableContext.d.ts +1137 -45
  8. package/types/native/IUniElement.d.ts +1981 -138
  9. package/types/native/UniNativePage.d.ts +94 -0
  10. package/types/native/UniResizeObserver.d.ts +215 -5
  11. package/types/native/UniSafeArea.d.ts +185 -0
  12. package/types/native/UniVideoElement.d.ts +432 -0
  13. package/types/native/global.d.ts +21 -8
  14. package/types/native/index.d.ts +1 -0
  15. package/types/page.d.ts +45 -3
  16. package/types/uni/env/index.d.ts +81 -81
  17. package/types/uni/uni-map-tencent-map.d.ts +19 -15
  18. package/types/uni/uts-plugin-api/global.d.ts +62 -63
  19. package/types/uni/uts-plugin-api/index.d.ts +62 -63
  20. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +10 -12
  21. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +5 -6
  22. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -217
  23. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +74 -73
  25. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  26. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  27. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1297 -333
  28. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +74 -73
  29. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +783 -783
  30. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -153
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  32. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2649 -1987
  33. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  34. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +289 -68
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +158 -90
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +315 -315
  37. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  39. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +62 -62
  40. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2781 -2175
  41. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -490
  42. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2538 -2005
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  45. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +713 -115
  46. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +336 -85
  47. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  48. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +732 -225
  49. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +571 -64
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +874 -830
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -274
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  53. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1013 -969
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1448 -243
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +75 -75
  56. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  57. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  58. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +202 -103
  59. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +264 -87
  60. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +5521 -1939
  63. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +472 -264
  64. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -3618
  65. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1215 -159
  66. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +330 -65
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +890 -639
  70. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +141 -92
  71. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4322 -2391
  72. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  73. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +488 -336
  74. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -77
  75. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  76. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1845 -867
  77. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2501 -513
  78. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  79. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1103 -516
  81. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -1660
  82. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2528 -1752
  83. package/types/uni/uts-plugin-biz/global.d.ts +6 -4
  84. package/types/uni/uts-plugin-biz/index.d.ts +6 -4
  85. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -39
  86. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +4 -0
  87. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +2 -0
  88. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +14 -1
  89. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +80 -28
  90. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  92. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  93. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  94. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -36
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -18
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +514 -216
  97. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  98. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  100. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +313 -313
  101. package/types/uni/uts-plugin-extend/global.d.ts +1 -4
  102. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  105. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  107. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4400 -340
  108. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  109. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  110. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  112. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  113. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  114. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  115. package/types/uni-cloud/interface.d.ts +13 -13
  116. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +0 -21
  117. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +0 -9
  118. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  119. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  120. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  121. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  122. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  123. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  124. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  125. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  126. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  127. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
  128. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  129. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  130. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
@@ -2,7 +2,7 @@ import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierro
2
2
 
3
3
  export type RequestPaymentFailImpl = RequestPaymentFailImplement
4
4
  export interface UniPaymentProvider extends UniProvider {
5
- requestPayment(options : RequestPaymentOptions) : void;
5
+ requestPayment(options: RequestPaymentOptions): void;
6
6
  }
7
7
  export interface Uni {
8
8
  /**
@@ -22,431 +22,432 @@ export interface Uni {
22
22
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
23
23
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
24
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": "x"
40
- * }
41
- * },
42
- * "mp": {
43
- * "weixin": {
44
- * "hostVer": "√",
45
- * "uniVer": "√",
46
- * "unixVer": "4.35"
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
- */
90
- requestPayment(options : RequestPaymentOptions) : void;
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": "x"
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;
91
92
  }
92
93
  /**
93
94
  * 错误码
94
95
  */
95
96
  export type RequestPaymentErrorCode =
96
- /**
97
- * 正在处理中,支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态
98
- * @uniPlatform {
99
- * "app": {
100
- * "android": {
101
- * "osVer": "5.0",
102
- * "uniVer": "√",
103
- * "unixVer": "4.02"
104
- * },
105
- * "ios": {
106
- * "osVer": "12.0",
107
- * "uniVer": "√",
108
- * "unixVer": "4.18"
109
- * },
110
- * "harmony": {
111
- * "osVer": "3.0",
112
- * "uniVer": "4.27",
113
- * "unixVer": "x"
114
- * }
115
- * },
116
- * "web": {
117
- * "uniVer": "x",
118
- * "unixVer": "x"
119
- * }
120
- * }
121
- */
122
- 700600 |
123
- /**
124
- * 订单支付失败。
125
- * @uniPlatform {
126
- * "app": {
127
- * "android": {
128
- * "osVer": "5.0",
129
- * "uniVer": "√",
130
- * "unixVer": "4.02"
131
- * },
132
- * "ios": {
133
- * "osVer": "12.0",
134
- * "uniVer": "√",
135
- * "unixVer": "4.18"
136
- * },
137
- * "harmony": {
138
- * "osVer": "3.0",
139
- * "uniVer": "4.27",
140
- * "unixVer": "x"
141
- * }
142
- * },
143
- * "web": {
144
- * "uniVer": "x",
145
- * "unixVer": "x"
146
- * }
147
- * }
148
- */
149
- 701100 |
150
- /**
151
- * 重复请求。
152
- * @uniPlatform {
153
- * "app": {
154
- * "android": {
155
- * "osVer": "5.0",
156
- * "uniVer": "√",
157
- * "unixVer": "4.02"
158
- * },
159
- * "ios": {
160
- * "osVer": "12.0",
161
- * "uniVer": "√",
162
- * "unixVer": "4.18"
163
- * },
164
- * "harmony": {
165
- * "osVer": "3.0",
166
- * "uniVer": "4.27",
167
- * "unixVer": "x"
168
- * }
169
- * },
170
- * "web": {
171
- * "uniVer": "x",
172
- * "unixVer": "x"
173
- * }
174
- * }
175
- */
176
- 701110 |
177
- /**
178
- * 用户中途取消。
179
- * @uniPlatform {
180
- * "app": {
181
- * "android": {
182
- * "osVer": "5.0",
183
- * "uniVer": "√",
184
- * "unixVer": "4.02"
185
- * },
186
- * "ios": {
187
- * "osVer": "12.0",
188
- * "uniVer": "√",
189
- * "unixVer": "4.18"
190
- * },
191
- * "harmony": {
192
- * "osVer": "3.0",
193
- * "uniVer": "4.27",
194
- * "unixVer": "x"
195
- * }
196
- * },
197
- * "web": {
198
- * "uniVer": "x",
199
- * "unixVer": "x"
200
- * }
201
- * }
202
- */
203
- 700601 |
204
- /**
205
- * 网络连接出错。
206
- * @uniPlatform {
207
- * "app": {
208
- * "android": {
209
- * "osVer": "5.0",
210
- * "uniVer": "√",
211
- * "unixVer": "4.02"
212
- * },
213
- * "ios": {
214
- * "osVer": "12.0",
215
- * "uniVer": "√",
216
- * "unixVer": "4.18"
217
- * },
218
- * "harmony": {
219
- * "osVer": "3.0",
220
- * "uniVer": "4.27",
221
- * "unixVer": "x"
222
- * }
223
- * },
224
- * "web": {
225
- * "uniVer": "x",
226
- * "unixVer": "x"
227
- * }
228
- * }
229
- */
230
- 700602 |
231
- /**
232
- * 支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态。
233
- * @uniPlatform {
234
- * "app": {
235
- * "android": {
236
- * "osVer": "5.0",
237
- * "uniVer": "√",
238
- * "unixVer": "4.02"
239
- * },
240
- * "ios": {
241
- * "osVer": "12.0",
242
- * "uniVer": "√",
243
- * "unixVer": "4.18"
244
- * },
245
- * "harmony": {
246
- * "osVer": "3.0",
247
- * "uniVer": "4.27",
248
- * "unixVer": "x"
249
- * }
250
- * },
251
- * "web": {
252
- * "uniVer": "x",
253
- * "unixVer": "x"
254
- * }
255
- * }
256
- */
257
- 700603 |
258
- /**
259
- * 其它支付错误。
260
- * @uniPlatform {
261
- * "app": {
262
- * "android": {
263
- * "osVer": "5.0",
264
- * "uniVer": "√",
265
- * "unixVer": "4.02"
266
- * },
267
- * "ios": {
268
- * "osVer": "12.0",
269
- * "uniVer": "√",
270
- * "unixVer": "4.18"
271
- * },
272
- * "harmony": {
273
- * "osVer": "3.0",
274
- * "uniVer": "4.27",
275
- * "unixVer": "x"
276
- * }
277
- * },
278
- * "web": {
279
- * "uniVer": "x",
280
- * "unixVer": "x"
281
- * }
282
- * }
283
- */
284
- 700000 |
285
- /**
286
- * 微信没有安装。
287
- * @uniPlatform {
288
- * "app": {
289
- * "android": {
290
- * "osVer": "5.0",
291
- * "uniVer": "√",
292
- * "unixVer": "4.02"
293
- * },
294
- * "ios": {
295
- * "osVer": "12.0",
296
- * "uniVer": "√",
297
- * "unixVer": "4.18"
298
- * },
299
- * "harmony": {
300
- * "osVer": "3.0",
301
- * "uniVer": "4.27",
302
- * "unixVer": "x"
303
- * }
304
- * },
305
- * "web": {
306
- * "uniVer": "x",
307
- * "unixVer": "x"
308
- * }
309
- * }
310
- */
311
- 700604 |
312
- /**
313
- * 服务供应商获取失败。
314
- * @uniPlatform {
315
- * "app": {
316
- * "android": {
317
- * "osVer": "5.0",
318
- * "uniVer": "√",
319
- * "unixVer": "4.02"
320
- * },
321
- * "ios": {
322
- * "osVer": "12.0",
323
- * "uniVer": "√",
324
- * "unixVer": "4.18"
325
- * },
326
- * "harmony": {
327
- * "osVer": "3.0",
328
- * "uniVer": "4.27",
329
- * "unixVer": "x"
330
- * }
331
- * },
332
- * "web": {
333
- * "uniVer": "x",
334
- * "unixVer": "x"
335
- * }
336
- * }
337
- */
338
- 700605 |
339
- /**
340
- * 支付未完成。
341
- * @uniPlatform {
342
- * "app": {
343
- * "android": {
344
- * "osVer": "5.0",
345
- * "uniVer": "x",
346
- * "unixVer": "4.31"
347
- * },
348
- * "ios": {
349
- * "osVer": "12.0",
350
- * "uniVer": "x",
351
- * "unixVer": "4.31"
352
- * },
353
- * "harmony": {
354
- * "osVer": "3.0",
355
- * "uniVer": "4.31",
356
- * "unixVer": "x"
357
- * }
358
- * },
359
- * "web": {
360
- * "uniVer": "x",
361
- * "unixVer": "x"
362
- * }
363
- * }
364
- */
365
- 700607 |
366
- /**
367
- * 服务商返回参数错误。
368
- * @uniPlatform {
369
- * "app": {
370
- * "android": {
371
- * "osVer": "5.0",
372
- * "uniVer": "x",
373
- * "unixVer": "4.31"
374
- * },
375
- * "ios": {
376
- * "osVer": "12.0",
377
- * "uniVer": "x",
378
- * "unixVer": "4.31"
379
- * },
380
- * "harmony": {
381
- * "osVer": "3.0",
382
- * "uniVer": "4.31",
383
- * "unixVer": "x"
384
- * }
385
- * },
386
- * "web": {
387
- * "uniVer": "x",
388
- * "unixVer": "x"
389
- * }
390
- * }
391
- */
392
- 700608 |
393
- /**
394
- * 没有配置对应的URL Scheme。
395
- * @uniPlatform {
396
- * "app": {
397
- * "android": {
398
- * "osVer": "5.0",
399
- * "uniVer": "√",
400
- * "unixVer": "4.02"
401
- * },
402
- * "ios": {
403
- * "osVer": "12.0",
404
- * "uniVer": "√",
405
- * "unixVer": "4.18"
406
- * },
407
- * "harmony": {
408
- * "osVer": "x",
409
- * "uniVer": "x",
410
- * "unixVer": "x"
411
- * }
412
- * },
413
- * "web": {
414
- * "uniVer": "x",
415
- * "unixVer": "x"
416
- * }
417
- * }
418
- */
419
- 700800 |
420
- /**
421
- * 没有配置对应的Universal Link。
422
- * @uniPlatform {
423
- * "app": {
424
- * "android": {
425
- * "osVer": "5.0",
426
- * "uniVer": "√",
427
- * "unixVer": "4.02"
428
- * },
429
- * "ios": {
430
- * "osVer": "12.0",
431
- * "uniVer": "√",
432
- * "unixVer": "4.18"
433
- * },
434
- * "harmony": {
435
- * "osVer": "x",
436
- * "uniVer": "x",
437
- * "unixVer": "x"
438
- * }
439
- * },
440
- * "web": {
441
- * "uniVer": "x",
442
- * "unixVer": "x"
443
- * }
444
- * }
445
- */
446
- 700801;
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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": "x"
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;
447
448
 
448
449
 
449
- export type RequestPayment = (options : RequestPaymentOptions) => void;
450
+ export type RequestPayment = (options: RequestPaymentOptions) => void;
450
451
  export type RequestPaymentSuccess = {
451
452
  /**
452
453
  * 返回数据
@@ -468,64 +469,64 @@ export type RequestPaymentSuccess = {
468
469
  * "unixVer": "x"
469
470
  * }
470
471
  * },
471
- * "mp": {
472
- * "weixin": {
473
- * "hostVer": "√",
474
- * "uniVer": "√",
475
- * "unixVer": "4.35"
476
- * },
477
- * "alipay": {
478
- * "hostVer": "√",
479
- * "uniVer": "√",
480
- * "unixVer": "x"
481
- * },
482
- * "baidu": {
483
- * "hostVer": "√",
484
- * "uniVer": "√",
485
- * "unixVer": "x"
486
- * },
487
- * "toutiao": {
488
- * "hostVer": "√",
489
- * "uniVer": "√",
490
- * "unixVer": "x"
491
- * },
492
- * "lark": {
493
- * "hostVer": "√",
494
- * "uniVer": "√",
495
- * "unixVer": "x"
496
- * },
497
- * "qq": {
498
- * "hostVer": "√",
499
- * "uniVer": "√",
500
- * "unixVer": "x"
501
- * },
502
- * "kuaishou": {
503
- * "hostVer": "√",
504
- * "uniVer": "√",
505
- * "unixVer": "x"
506
- * },
507
- * "jd": {
508
- * "hostVer": "√",
509
- * "uniVer": "√",
510
- * "unixVer": "x"
511
- * }
512
- * },
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
+ * },
513
514
  * "web": {
514
515
  * "uniVer": "x",
515
516
  * "unixVer": "x"
516
517
  * }
517
518
  * }
518
519
  */
519
- data : object | null
520
+ data: object | null
520
521
  };
521
- export type RequestPaymentSuccessCallback = (result : RequestPaymentSuccess) => void;
522
+ export type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void;
522
523
  export type RequestPaymentFail = IRequestPaymentFail;
523
- export type RequestPaymentFailCallback = (result : RequestPaymentFail) => void;
524
+ export type RequestPaymentFailCallback = (result: RequestPaymentFail) => void;
524
525
  export type RequestPaymentComplete = any
525
526
  export interface IRequestPaymentFail extends IUniError {
526
- errCode : RequestPaymentErrorCode
527
+ errCode: RequestPaymentErrorCode
527
528
  };
528
- export type RequestPaymentCompleteCallback = (result : RequestPaymentComplete) => void;
529
+ export type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void;
529
530
  export type RequestPaymentOptions = {
530
531
  /**
531
532
  * 支付服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持支付宝支付(alipay),微信支付(wxpay)
@@ -553,7 +554,7 @@ export type RequestPaymentOptions = {
553
554
  * }
554
555
  * }
555
556
  */
556
- provider : string,
557
+ provider: string,
557
558
  /**
558
559
  * 订单数据
559
560
  * @uniPlatform {
@@ -574,55 +575,55 @@ export type RequestPaymentOptions = {
574
575
  * "unixVer": "x"
575
576
  * }
576
577
  * },
577
- * "mp": {
578
- * "weixin": {
579
- * "hostVer": "√",
580
- * "uniVer": "√",
581
- * "unixVer": "4.35"
582
- * },
583
- * "alipay": {
584
- * "hostVer": "√",
585
- * "uniVer": "√",
586
- * "unixVer": "x"
587
- * },
588
- * "baidu": {
589
- * "hostVer": "√",
590
- * "uniVer": "√",
591
- * "unixVer": "x"
592
- * },
593
- * "toutiao": {
594
- * "hostVer": "√",
595
- * "uniVer": "√",
596
- * "unixVer": "x"
597
- * },
598
- * "lark": {
599
- * "hostVer": "√",
600
- * "uniVer": "√",
601
- * "unixVer": "x"
602
- * },
603
- * "qq": {
604
- * "hostVer": "√",
605
- * "uniVer": "√",
606
- * "unixVer": "x"
607
- * },
608
- * "kuaishou": {
609
- * "hostVer": "√",
610
- * "uniVer": "√",
611
- * "unixVer": "x"
612
- * },
613
- * "jd": {
614
- * "hostVer": "√",
615
- * "uniVer": "√",
616
- * "unixVer": "x"
617
- * }
618
- * },
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
+ * },
619
620
  * "web": {
620
621
  * "uniVer": "x",
621
622
  * "unixVer": "x"
622
623
  * }
623
624
  * }
624
625
  */
625
- orderInfo : string,
626
+ orderInfo: string,
626
627
  /**
627
628
  * 接口调用成功的回调函数
628
629
  * @uniPlatform {
@@ -643,55 +644,55 @@ export type RequestPaymentOptions = {
643
644
  * "unixVer": "x"
644
645
  * }
645
646
  * },
646
- * "mp": {
647
- * "weixin": {
648
- * "hostVer": "√",
649
- * "uniVer": "√",
650
- * "unixVer": "4.35"
651
- * },
652
- * "alipay": {
653
- * "hostVer": "√",
654
- * "uniVer": "√",
655
- * "unixVer": "x"
656
- * },
657
- * "baidu": {
658
- * "hostVer": "√",
659
- * "uniVer": "√",
660
- * "unixVer": "x"
661
- * },
662
- * "toutiao": {
663
- * "hostVer": "√",
664
- * "uniVer": "√",
665
- * "unixVer": "x"
666
- * },
667
- * "lark": {
668
- * "hostVer": "√",
669
- * "uniVer": "√",
670
- * "unixVer": "x"
671
- * },
672
- * "qq": {
673
- * "hostVer": "√",
674
- * "uniVer": "√",
675
- * "unixVer": "x"
676
- * },
677
- * "kuaishou": {
678
- * "hostVer": "√",
679
- * "uniVer": "√",
680
- * "unixVer": "x"
681
- * },
682
- * "jd": {
683
- * "hostVer": "√",
684
- * "uniVer": "√",
685
- * "unixVer": "x"
686
- * }
687
- * },
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
+ * },
688
689
  * "web": {
689
690
  * "uniVer": "x",
690
691
  * "unixVer": "x"
691
692
  * }
692
693
  * }
693
694
  */
694
- success : RequestPaymentSuccessCallback | null,
695
+ success: RequestPaymentSuccessCallback | null,
695
696
  /**
696
697
  * 接口调用失败的回调函数
697
698
  * @uniPlatform {
@@ -712,55 +713,55 @@ export type RequestPaymentOptions = {
712
713
  * "unixVer": "x"
713
714
  * }
714
715
  * },
715
- * "mp": {
716
- * "weixin": {
717
- * "hostVer": "√",
718
- * "uniVer": "√",
719
- * "unixVer": "4.35"
720
- * },
721
- * "alipay": {
722
- * "hostVer": "√",
723
- * "uniVer": "√",
724
- * "unixVer": "x"
725
- * },
726
- * "baidu": {
727
- * "hostVer": "√",
728
- * "uniVer": "√",
729
- * "unixVer": "x"
730
- * },
731
- * "toutiao": {
732
- * "hostVer": "√",
733
- * "uniVer": "√",
734
- * "unixVer": "x"
735
- * },
736
- * "lark": {
737
- * "hostVer": "√",
738
- * "uniVer": "√",
739
- * "unixVer": "x"
740
- * },
741
- * "qq": {
742
- * "hostVer": "√",
743
- * "uniVer": "√",
744
- * "unixVer": "x"
745
- * },
746
- * "kuaishou": {
747
- * "hostVer": "√",
748
- * "uniVer": "√",
749
- * "unixVer": "x"
750
- * },
751
- * "jd": {
752
- * "hostVer": "√",
753
- * "uniVer": "√",
754
- * "unixVer": "x"
755
- * }
756
- * },
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
+ * },
757
758
  * "web": {
758
759
  * "uniVer": "x",
759
760
  * "unixVer": "x"
760
761
  * }
761
762
  * }
762
763
  */
763
- fail : RequestPaymentFailCallback | null,
764
+ fail: RequestPaymentFailCallback | null,
764
765
  /**
765
766
  * 接口调用结束的回调函数(调用成功、失败都会执行)
766
767
  * @uniPlatform {
@@ -781,53 +782,303 @@ export type RequestPaymentOptions = {
781
782
  * "unixVer": "x"
782
783
  * }
783
784
  * },
784
- * "mp": {
785
- * "weixin": {
786
- * "hostVer": "√",
787
- * "uniVer": "√",
788
- * "unixVer": "4.35"
789
- * },
790
- * "alipay": {
791
- * "hostVer": "√",
792
- * "uniVer": "√",
793
- * "unixVer": "x"
794
- * },
795
- * "baidu": {
796
- * "hostVer": "√",
797
- * "uniVer": "√",
798
- * "unixVer": "x"
799
- * },
800
- * "toutiao": {
801
- * "hostVer": "√",
802
- * "uniVer": "√",
803
- * "unixVer": "x"
804
- * },
805
- * "lark": {
806
- * "hostVer": "√",
807
- * "uniVer": "√",
808
- * "unixVer": "x"
809
- * },
810
- * "qq": {
811
- * "hostVer": "√",
812
- * "uniVer": "√",
813
- * "unixVer": "x"
814
- * },
815
- * "kuaishou": {
816
- * "hostVer": "√",
817
- * "uniVer": "√",
818
- * "unixVer": "x"
819
- * },
820
- * "jd": {
821
- * "hostVer": "√",
822
- * "uniVer": "√",
823
- * "unixVer": "x"
824
- * }
825
- * },
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
+ * },
826
827
  * "web": {
827
828
  * "uniVer": "x",
828
829
  * "unixVer": "x"
829
830
  * }
830
831
  * }
831
832
  */
832
- complete ?: RequestPaymentCompleteCallback | null
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;
833
1084
  };