@dcloudio/uni-app-x 0.7.39 → 0.7.41
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.
- package/package.json +9 -7
- package/types/UniPage.d.ts +168 -22
- package/types/app.d.ts +178 -174
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1875 -93
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +7 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-map.d.ts +12 -8
- package/types/uni/uts-plugin-api/global.d.ts +62 -61
- package/types/uni/uts-plugin-api/index.d.ts +62 -61
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
- package/types/uni/uts-plugin-biz/global.d.ts +6 -5
- package/types/uni/uts-plugin-biz/index.d.ts +6 -5
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
- package/types/uni/uts-plugin-extend/global.d.ts +0 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
|
@@ -18,65 +18,66 @@ export interface Uni {
|
|
|
18
18
|
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#requestvirtualpayment
|
|
19
19
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#requestvirtualpayment
|
|
20
20
|
* @uniPlatform {
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
21
|
+
* "app": {
|
|
22
|
+
* "android": {
|
|
23
|
+
* "osVer": "5.0",
|
|
24
|
+
* "uniVer": "x",
|
|
25
|
+
* "unixVer": "x"
|
|
26
|
+
* },
|
|
27
|
+
* "ios": {
|
|
28
|
+
* "osVer": "15.0",
|
|
29
|
+
* "uniVer": "√",
|
|
30
|
+
* "unixVer": "4.25"
|
|
31
|
+
* }
|
|
32
|
+
* },
|
|
33
|
+
* "mp": {
|
|
34
|
+
* "weixin": {
|
|
35
|
+
* "hostVer": "2.19.2",
|
|
36
|
+
* "uniVer": "√",
|
|
37
|
+
* "unixVer": "4.41"
|
|
38
|
+
* },
|
|
39
|
+
* "alipay": {
|
|
40
|
+
* "hostVer": "√",
|
|
41
|
+
* "uniVer": "x",
|
|
42
|
+
* "unixVer": "x"
|
|
43
|
+
* },
|
|
44
|
+
* "baidu": {
|
|
45
|
+
* "hostVer": "√",
|
|
46
|
+
* "uniVer": "x",
|
|
47
|
+
* "unixVer": "x"
|
|
48
|
+
* },
|
|
49
|
+
* "toutiao": {
|
|
50
|
+
* "hostVer": "√",
|
|
51
|
+
* "uniVer": "x",
|
|
52
|
+
* "unixVer": "x"
|
|
53
|
+
* },
|
|
54
|
+
* "lark": {
|
|
55
|
+
* "hostVer": "√",
|
|
56
|
+
* "uniVer": "x",
|
|
57
|
+
* "unixVer": "x"
|
|
58
|
+
* },
|
|
59
|
+
* "qq": {
|
|
60
|
+
* "hostVer": "√",
|
|
61
|
+
* "uniVer": "x",
|
|
62
|
+
* "unixVer": "x"
|
|
63
|
+
* },
|
|
64
|
+
* "kuaishou": {
|
|
65
|
+
* "hostVer": "√",
|
|
66
|
+
* "uniVer": "x",
|
|
67
|
+
* "unixVer": "x"
|
|
68
|
+
* },
|
|
69
|
+
* "jd": {
|
|
70
|
+
* "hostVer": "√",
|
|
71
|
+
* "uniVer": "x",
|
|
72
|
+
* "unixVer": "x"
|
|
73
|
+
* }
|
|
74
|
+
* },
|
|
75
|
+
* "web": {
|
|
76
|
+
* "uniVer": "x",
|
|
77
|
+
* "unixVer": "x"
|
|
78
|
+
* }
|
|
79
79
|
* }
|
|
80
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestVirtualPayment.html
|
|
80
81
|
*/
|
|
81
82
|
requestVirtualPayment(options: RequestVirtualPaymentOptions): void;
|
|
82
83
|
|
|
@@ -1108,6 +1109,206 @@ export type RequestVirtualPaymentOptions = {
|
|
|
1108
1109
|
* }
|
|
1109
1110
|
*/
|
|
1110
1111
|
complete?: RequestVirtualPaymentCompleteCallback | null
|
|
1112
|
+
/**
|
|
1113
|
+
* 支付的类型, 不同的支付类型有各自额外要传的附加参数
|
|
1114
|
+
*
|
|
1115
|
+
* 可选值:
|
|
1116
|
+
* - 'short_series_goods': 道具直购;
|
|
1117
|
+
* - 'short_series_coin': 代币充值;
|
|
1118
|
+
*
|
|
1119
|
+
* @uniPlatform {
|
|
1120
|
+
* "mp": {
|
|
1121
|
+
* "weixin": {
|
|
1122
|
+
* "hostVer": "√",
|
|
1123
|
+
* "uniVer": "√",
|
|
1124
|
+
* "unixVer": "4.41"
|
|
1125
|
+
* },
|
|
1126
|
+
* "alipay": {
|
|
1127
|
+
* "hostVer": "-",
|
|
1128
|
+
* "uniVer": "-",
|
|
1129
|
+
* "unixVer": "-"
|
|
1130
|
+
* },
|
|
1131
|
+
* "baidu": {
|
|
1132
|
+
* "hostVer": "-",
|
|
1133
|
+
* "uniVer": "-",
|
|
1134
|
+
* "unixVer": "-"
|
|
1135
|
+
* },
|
|
1136
|
+
* "toutiao": {
|
|
1137
|
+
* "hostVer": "-",
|
|
1138
|
+
* "uniVer": "-",
|
|
1139
|
+
* "unixVer": "-"
|
|
1140
|
+
* },
|
|
1141
|
+
* "lark": {
|
|
1142
|
+
* "hostVer": "-",
|
|
1143
|
+
* "uniVer": "-",
|
|
1144
|
+
* "unixVer": "-"
|
|
1145
|
+
* },
|
|
1146
|
+
* "qq": {
|
|
1147
|
+
* "hostVer": "-",
|
|
1148
|
+
* "uniVer": "-",
|
|
1149
|
+
* "unixVer": "-"
|
|
1150
|
+
* },
|
|
1151
|
+
* "kuaishou": {
|
|
1152
|
+
* "hostVer": "-",
|
|
1153
|
+
* "uniVer": "-",
|
|
1154
|
+
* "unixVer": "-"
|
|
1155
|
+
* },
|
|
1156
|
+
* "jd": {
|
|
1157
|
+
* "hostVer": "-",
|
|
1158
|
+
* "uniVer": "-",
|
|
1159
|
+
* "unixVer": "-"
|
|
1160
|
+
* }
|
|
1161
|
+
* }
|
|
1162
|
+
* }
|
|
1163
|
+
*/
|
|
1164
|
+
mode?: "short_series_goods" | "short_series_coin" | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/virtual-payment.html
|
|
1167
|
+
*
|
|
1168
|
+
* @uniPlatform {
|
|
1169
|
+
* "mp": {
|
|
1170
|
+
* "weixin": {
|
|
1171
|
+
* "hostVer": "√",
|
|
1172
|
+
* "uniVer": "√",
|
|
1173
|
+
* "unixVer": "4.41"
|
|
1174
|
+
* },
|
|
1175
|
+
* "alipay": {
|
|
1176
|
+
* "hostVer": "-",
|
|
1177
|
+
* "uniVer": "-",
|
|
1178
|
+
* "unixVer": "-"
|
|
1179
|
+
* },
|
|
1180
|
+
* "baidu": {
|
|
1181
|
+
* "hostVer": "-",
|
|
1182
|
+
* "uniVer": "-",
|
|
1183
|
+
* "unixVer": "-"
|
|
1184
|
+
* },
|
|
1185
|
+
* "toutiao": {
|
|
1186
|
+
* "hostVer": "-",
|
|
1187
|
+
* "uniVer": "-",
|
|
1188
|
+
* "unixVer": "-"
|
|
1189
|
+
* },
|
|
1190
|
+
* "lark": {
|
|
1191
|
+
* "hostVer": "-",
|
|
1192
|
+
* "uniVer": "-",
|
|
1193
|
+
* "unixVer": "-"
|
|
1194
|
+
* },
|
|
1195
|
+
* "qq": {
|
|
1196
|
+
* "hostVer": "-",
|
|
1197
|
+
* "uniVer": "-",
|
|
1198
|
+
* "unixVer": "-"
|
|
1199
|
+
* },
|
|
1200
|
+
* "kuaishou": {
|
|
1201
|
+
* "hostVer": "-",
|
|
1202
|
+
* "uniVer": "-",
|
|
1203
|
+
* "unixVer": "-"
|
|
1204
|
+
* },
|
|
1205
|
+
* "jd": {
|
|
1206
|
+
* "hostVer": "-",
|
|
1207
|
+
* "uniVer": "-",
|
|
1208
|
+
* "unixVer": "-"
|
|
1209
|
+
* }
|
|
1210
|
+
* }
|
|
1211
|
+
* }
|
|
1212
|
+
*/
|
|
1213
|
+
paySig?: string | null;
|
|
1214
|
+
/**
|
|
1215
|
+
* 具体支付参数见signData, 该参数需以string形式传递, 例如signData: '{"offerId":"123","buyQuantity":1,"env":0,"currencyType":"CNY","productId":"testproductId","goodsPrice":10,"outTradeNo":"xxxxxx","attach":"testdata"}'
|
|
1216
|
+
*
|
|
1217
|
+
* @uniPlatform {
|
|
1218
|
+
* "mp": {
|
|
1219
|
+
* "weixin": {
|
|
1220
|
+
* "hostVer": "√",
|
|
1221
|
+
* "uniVer": "√",
|
|
1222
|
+
* "unixVer": "4.41"
|
|
1223
|
+
* },
|
|
1224
|
+
* "alipay": {
|
|
1225
|
+
* "hostVer": "-",
|
|
1226
|
+
* "uniVer": "-",
|
|
1227
|
+
* "unixVer": "-"
|
|
1228
|
+
* },
|
|
1229
|
+
* "baidu": {
|
|
1230
|
+
* "hostVer": "-",
|
|
1231
|
+
* "uniVer": "-",
|
|
1232
|
+
* "unixVer": "-"
|
|
1233
|
+
* },
|
|
1234
|
+
* "toutiao": {
|
|
1235
|
+
* "hostVer": "-",
|
|
1236
|
+
* "uniVer": "-",
|
|
1237
|
+
* "unixVer": "-"
|
|
1238
|
+
* },
|
|
1239
|
+
* "lark": {
|
|
1240
|
+
* "hostVer": "-",
|
|
1241
|
+
* "uniVer": "-",
|
|
1242
|
+
* "unixVer": "-"
|
|
1243
|
+
* },
|
|
1244
|
+
* "qq": {
|
|
1245
|
+
* "hostVer": "-",
|
|
1246
|
+
* "uniVer": "-",
|
|
1247
|
+
* "unixVer": "-"
|
|
1248
|
+
* },
|
|
1249
|
+
* "kuaishou": {
|
|
1250
|
+
* "hostVer": "-",
|
|
1251
|
+
* "uniVer": "-",
|
|
1252
|
+
* "unixVer": "-"
|
|
1253
|
+
* },
|
|
1254
|
+
* "jd": {
|
|
1255
|
+
* "hostVer": "-",
|
|
1256
|
+
* "uniVer": "-",
|
|
1257
|
+
* "unixVer": "-"
|
|
1258
|
+
* }
|
|
1259
|
+
* }
|
|
1260
|
+
* }
|
|
1261
|
+
*/
|
|
1262
|
+
signData?: RequestVirtualPaymentOptionsSignData | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/virtual-payment.html
|
|
1265
|
+
*
|
|
1266
|
+
* @uniPlatform {
|
|
1267
|
+
* "mp": {
|
|
1268
|
+
* "weixin": {
|
|
1269
|
+
* "hostVer": "√",
|
|
1270
|
+
* "uniVer": "√",
|
|
1271
|
+
* "unixVer": "4.41"
|
|
1272
|
+
* },
|
|
1273
|
+
* "alipay": {
|
|
1274
|
+
* "hostVer": "-",
|
|
1275
|
+
* "uniVer": "-",
|
|
1276
|
+
* "unixVer": "-"
|
|
1277
|
+
* },
|
|
1278
|
+
* "baidu": {
|
|
1279
|
+
* "hostVer": "-",
|
|
1280
|
+
* "uniVer": "-",
|
|
1281
|
+
* "unixVer": "-"
|
|
1282
|
+
* },
|
|
1283
|
+
* "toutiao": {
|
|
1284
|
+
* "hostVer": "-",
|
|
1285
|
+
* "uniVer": "-",
|
|
1286
|
+
* "unixVer": "-"
|
|
1287
|
+
* },
|
|
1288
|
+
* "lark": {
|
|
1289
|
+
* "hostVer": "-",
|
|
1290
|
+
* "uniVer": "-",
|
|
1291
|
+
* "unixVer": "-"
|
|
1292
|
+
* },
|
|
1293
|
+
* "qq": {
|
|
1294
|
+
* "hostVer": "-",
|
|
1295
|
+
* "uniVer": "-",
|
|
1296
|
+
* "unixVer": "-"
|
|
1297
|
+
* },
|
|
1298
|
+
* "kuaishou": {
|
|
1299
|
+
* "hostVer": "-",
|
|
1300
|
+
* "uniVer": "-",
|
|
1301
|
+
* "unixVer": "-"
|
|
1302
|
+
* },
|
|
1303
|
+
* "jd": {
|
|
1304
|
+
* "hostVer": "-",
|
|
1305
|
+
* "uniVer": "-",
|
|
1306
|
+
* "unixVer": "-"
|
|
1307
|
+
* }
|
|
1308
|
+
* }
|
|
1309
|
+
* }
|
|
1310
|
+
*/
|
|
1311
|
+
signature?: string | null;
|
|
1111
1312
|
};
|
|
1112
1313
|
|
|
1113
1314
|
|
|
@@ -1658,3 +1859,448 @@ export type AppleIAPFinishTransactionOptions = {
|
|
|
1658
1859
|
*/
|
|
1659
1860
|
complete?: AppleIAPFinishTransactionCompleteCallback | null
|
|
1660
1861
|
};
|
|
1862
|
+
/**
|
|
1863
|
+
* 具体支付参数见signData, 该参数需以string形式传递, 例如signData: '{"offerId":"123","buyQuantity":1,"env":0,"currencyType":"CNY","productId":"testproductId","goodsPrice":10,"outTradeNo":"xxxxxx","attach":"testdata"}'
|
|
1864
|
+
*
|
|
1865
|
+
* @uniPlatform {
|
|
1866
|
+
* "mp": {
|
|
1867
|
+
* "weixin": {
|
|
1868
|
+
* "hostVer": "√",
|
|
1869
|
+
* "uniVer": "√",
|
|
1870
|
+
* "unixVer": "4.41"
|
|
1871
|
+
* },
|
|
1872
|
+
* "alipay": {
|
|
1873
|
+
* "hostVer": "-",
|
|
1874
|
+
* "uniVer": "-",
|
|
1875
|
+
* "unixVer": "-"
|
|
1876
|
+
* },
|
|
1877
|
+
* "baidu": {
|
|
1878
|
+
* "hostVer": "-",
|
|
1879
|
+
* "uniVer": "-",
|
|
1880
|
+
* "unixVer": "-"
|
|
1881
|
+
* },
|
|
1882
|
+
* "toutiao": {
|
|
1883
|
+
* "hostVer": "-",
|
|
1884
|
+
* "uniVer": "-",
|
|
1885
|
+
* "unixVer": "-"
|
|
1886
|
+
* },
|
|
1887
|
+
* "lark": {
|
|
1888
|
+
* "hostVer": "-",
|
|
1889
|
+
* "uniVer": "-",
|
|
1890
|
+
* "unixVer": "-"
|
|
1891
|
+
* },
|
|
1892
|
+
* "qq": {
|
|
1893
|
+
* "hostVer": "-",
|
|
1894
|
+
* "uniVer": "-",
|
|
1895
|
+
* "unixVer": "-"
|
|
1896
|
+
* },
|
|
1897
|
+
* "kuaishou": {
|
|
1898
|
+
* "hostVer": "-",
|
|
1899
|
+
* "uniVer": "-",
|
|
1900
|
+
* "unixVer": "-"
|
|
1901
|
+
* },
|
|
1902
|
+
* "jd": {
|
|
1903
|
+
* "hostVer": "-",
|
|
1904
|
+
* "uniVer": "-",
|
|
1905
|
+
* "unixVer": "-"
|
|
1906
|
+
* }
|
|
1907
|
+
* }
|
|
1908
|
+
* }
|
|
1909
|
+
*/
|
|
1910
|
+
export type RequestVirtualPaymentOptionsSignData = {
|
|
1911
|
+
/**
|
|
1912
|
+
* 透传数据, 发货通知时会透传给开发者
|
|
1913
|
+
*
|
|
1914
|
+
* @uniPlatform {
|
|
1915
|
+
* "mp": {
|
|
1916
|
+
* "weixin": {
|
|
1917
|
+
* "hostVer": "√",
|
|
1918
|
+
* "uniVer": "√",
|
|
1919
|
+
* "unixVer": "4.41"
|
|
1920
|
+
* },
|
|
1921
|
+
* "alipay": {
|
|
1922
|
+
* "hostVer": "-",
|
|
1923
|
+
* "uniVer": "-",
|
|
1924
|
+
* "unixVer": "-"
|
|
1925
|
+
* },
|
|
1926
|
+
* "baidu": {
|
|
1927
|
+
* "hostVer": "-",
|
|
1928
|
+
* "uniVer": "-",
|
|
1929
|
+
* "unixVer": "-"
|
|
1930
|
+
* },
|
|
1931
|
+
* "toutiao": {
|
|
1932
|
+
* "hostVer": "-",
|
|
1933
|
+
* "uniVer": "-",
|
|
1934
|
+
* "unixVer": "-"
|
|
1935
|
+
* },
|
|
1936
|
+
* "lark": {
|
|
1937
|
+
* "hostVer": "-",
|
|
1938
|
+
* "uniVer": "-",
|
|
1939
|
+
* "unixVer": "-"
|
|
1940
|
+
* },
|
|
1941
|
+
* "qq": {
|
|
1942
|
+
* "hostVer": "-",
|
|
1943
|
+
* "uniVer": "-",
|
|
1944
|
+
* "unixVer": "-"
|
|
1945
|
+
* },
|
|
1946
|
+
* "kuaishou": {
|
|
1947
|
+
* "hostVer": "-",
|
|
1948
|
+
* "uniVer": "-",
|
|
1949
|
+
* "unixVer": "-"
|
|
1950
|
+
* },
|
|
1951
|
+
* "jd": {
|
|
1952
|
+
* "hostVer": "-",
|
|
1953
|
+
* "uniVer": "-",
|
|
1954
|
+
* "unixVer": "-"
|
|
1955
|
+
* }
|
|
1956
|
+
* }
|
|
1957
|
+
* }
|
|
1958
|
+
*/
|
|
1959
|
+
attach?: string | null;
|
|
1960
|
+
/**
|
|
1961
|
+
* 购买数量
|
|
1962
|
+
*
|
|
1963
|
+
* @uniPlatform {
|
|
1964
|
+
* "mp": {
|
|
1965
|
+
* "weixin": {
|
|
1966
|
+
* "hostVer": "√",
|
|
1967
|
+
* "uniVer": "√",
|
|
1968
|
+
* "unixVer": "4.41"
|
|
1969
|
+
* },
|
|
1970
|
+
* "alipay": {
|
|
1971
|
+
* "hostVer": "-",
|
|
1972
|
+
* "uniVer": "-",
|
|
1973
|
+
* "unixVer": "-"
|
|
1974
|
+
* },
|
|
1975
|
+
* "baidu": {
|
|
1976
|
+
* "hostVer": "-",
|
|
1977
|
+
* "uniVer": "-",
|
|
1978
|
+
* "unixVer": "-"
|
|
1979
|
+
* },
|
|
1980
|
+
* "toutiao": {
|
|
1981
|
+
* "hostVer": "-",
|
|
1982
|
+
* "uniVer": "-",
|
|
1983
|
+
* "unixVer": "-"
|
|
1984
|
+
* },
|
|
1985
|
+
* "lark": {
|
|
1986
|
+
* "hostVer": "-",
|
|
1987
|
+
* "uniVer": "-",
|
|
1988
|
+
* "unixVer": "-"
|
|
1989
|
+
* },
|
|
1990
|
+
* "qq": {
|
|
1991
|
+
* "hostVer": "-",
|
|
1992
|
+
* "uniVer": "-",
|
|
1993
|
+
* "unixVer": "-"
|
|
1994
|
+
* },
|
|
1995
|
+
* "kuaishou": {
|
|
1996
|
+
* "hostVer": "-",
|
|
1997
|
+
* "uniVer": "-",
|
|
1998
|
+
* "unixVer": "-"
|
|
1999
|
+
* },
|
|
2000
|
+
* "jd": {
|
|
2001
|
+
* "hostVer": "-",
|
|
2002
|
+
* "uniVer": "-",
|
|
2003
|
+
* "unixVer": "-"
|
|
2004
|
+
* }
|
|
2005
|
+
* }
|
|
2006
|
+
* }
|
|
2007
|
+
*/
|
|
2008
|
+
buyQuantity?: number | null;
|
|
2009
|
+
/**
|
|
2010
|
+
* 币种
|
|
2011
|
+
*
|
|
2012
|
+
* 可选值:
|
|
2013
|
+
* - 'CNY': 人民币;
|
|
2014
|
+
*
|
|
2015
|
+
* @uniPlatform {
|
|
2016
|
+
* "mp": {
|
|
2017
|
+
* "weixin": {
|
|
2018
|
+
* "hostVer": "√",
|
|
2019
|
+
* "uniVer": "√",
|
|
2020
|
+
* "unixVer": "4.41"
|
|
2021
|
+
* },
|
|
2022
|
+
* "alipay": {
|
|
2023
|
+
* "hostVer": "-",
|
|
2024
|
+
* "uniVer": "-",
|
|
2025
|
+
* "unixVer": "-"
|
|
2026
|
+
* },
|
|
2027
|
+
* "baidu": {
|
|
2028
|
+
* "hostVer": "-",
|
|
2029
|
+
* "uniVer": "-",
|
|
2030
|
+
* "unixVer": "-"
|
|
2031
|
+
* },
|
|
2032
|
+
* "toutiao": {
|
|
2033
|
+
* "hostVer": "-",
|
|
2034
|
+
* "uniVer": "-",
|
|
2035
|
+
* "unixVer": "-"
|
|
2036
|
+
* },
|
|
2037
|
+
* "lark": {
|
|
2038
|
+
* "hostVer": "-",
|
|
2039
|
+
* "uniVer": "-",
|
|
2040
|
+
* "unixVer": "-"
|
|
2041
|
+
* },
|
|
2042
|
+
* "qq": {
|
|
2043
|
+
* "hostVer": "-",
|
|
2044
|
+
* "uniVer": "-",
|
|
2045
|
+
* "unixVer": "-"
|
|
2046
|
+
* },
|
|
2047
|
+
* "kuaishou": {
|
|
2048
|
+
* "hostVer": "-",
|
|
2049
|
+
* "uniVer": "-",
|
|
2050
|
+
* "unixVer": "-"
|
|
2051
|
+
* },
|
|
2052
|
+
* "jd": {
|
|
2053
|
+
* "hostVer": "-",
|
|
2054
|
+
* "uniVer": "-",
|
|
2055
|
+
* "unixVer": "-"
|
|
2056
|
+
* }
|
|
2057
|
+
* }
|
|
2058
|
+
* }
|
|
2059
|
+
*/
|
|
2060
|
+
currencyType?: "CNY" | null;
|
|
2061
|
+
/**
|
|
2062
|
+
* 在米大师侧申请的应用 id, mp-支付基础配置中的offerid
|
|
2063
|
+
*
|
|
2064
|
+
* @uniPlatform {
|
|
2065
|
+
* "mp": {
|
|
2066
|
+
* "weixin": {
|
|
2067
|
+
* "hostVer": "√",
|
|
2068
|
+
* "uniVer": "√",
|
|
2069
|
+
* "unixVer": "4.41"
|
|
2070
|
+
* },
|
|
2071
|
+
* "alipay": {
|
|
2072
|
+
* "hostVer": "-",
|
|
2073
|
+
* "uniVer": "-",
|
|
2074
|
+
* "unixVer": "-"
|
|
2075
|
+
* },
|
|
2076
|
+
* "baidu": {
|
|
2077
|
+
* "hostVer": "-",
|
|
2078
|
+
* "uniVer": "-",
|
|
2079
|
+
* "unixVer": "-"
|
|
2080
|
+
* },
|
|
2081
|
+
* "toutiao": {
|
|
2082
|
+
* "hostVer": "-",
|
|
2083
|
+
* "uniVer": "-",
|
|
2084
|
+
* "unixVer": "-"
|
|
2085
|
+
* },
|
|
2086
|
+
* "lark": {
|
|
2087
|
+
* "hostVer": "-",
|
|
2088
|
+
* "uniVer": "-",
|
|
2089
|
+
* "unixVer": "-"
|
|
2090
|
+
* },
|
|
2091
|
+
* "qq": {
|
|
2092
|
+
* "hostVer": "-",
|
|
2093
|
+
* "uniVer": "-",
|
|
2094
|
+
* "unixVer": "-"
|
|
2095
|
+
* },
|
|
2096
|
+
* "kuaishou": {
|
|
2097
|
+
* "hostVer": "-",
|
|
2098
|
+
* "uniVer": "-",
|
|
2099
|
+
* "unixVer": "-"
|
|
2100
|
+
* },
|
|
2101
|
+
* "jd": {
|
|
2102
|
+
* "hostVer": "-",
|
|
2103
|
+
* "uniVer": "-",
|
|
2104
|
+
* "unixVer": "-"
|
|
2105
|
+
* }
|
|
2106
|
+
* }
|
|
2107
|
+
* }
|
|
2108
|
+
*/
|
|
2109
|
+
offerId?: string | null;
|
|
2110
|
+
/**
|
|
2111
|
+
* 业务订单号, 每个订单号只能使用一次, 重复使用会失败(极端情况不保证唯一, 不建议业务强依赖唯一性). 要求8-32个字符内, 只能是数字、大小写字母、符号 _-|*@组成, 不能以下划线(_)开头
|
|
2112
|
+
*
|
|
2113
|
+
* @uniPlatform {
|
|
2114
|
+
* "mp": {
|
|
2115
|
+
* "weixin": {
|
|
2116
|
+
* "hostVer": "√",
|
|
2117
|
+
* "uniVer": "√",
|
|
2118
|
+
* "unixVer": "4.41"
|
|
2119
|
+
* },
|
|
2120
|
+
* "alipay": {
|
|
2121
|
+
* "hostVer": "-",
|
|
2122
|
+
* "uniVer": "-",
|
|
2123
|
+
* "unixVer": "-"
|
|
2124
|
+
* },
|
|
2125
|
+
* "baidu": {
|
|
2126
|
+
* "hostVer": "-",
|
|
2127
|
+
* "uniVer": "-",
|
|
2128
|
+
* "unixVer": "-"
|
|
2129
|
+
* },
|
|
2130
|
+
* "toutiao": {
|
|
2131
|
+
* "hostVer": "-",
|
|
2132
|
+
* "uniVer": "-",
|
|
2133
|
+
* "unixVer": "-"
|
|
2134
|
+
* },
|
|
2135
|
+
* "lark": {
|
|
2136
|
+
* "hostVer": "-",
|
|
2137
|
+
* "uniVer": "-",
|
|
2138
|
+
* "unixVer": "-"
|
|
2139
|
+
* },
|
|
2140
|
+
* "qq": {
|
|
2141
|
+
* "hostVer": "-",
|
|
2142
|
+
* "uniVer": "-",
|
|
2143
|
+
* "unixVer": "-"
|
|
2144
|
+
* },
|
|
2145
|
+
* "kuaishou": {
|
|
2146
|
+
* "hostVer": "-",
|
|
2147
|
+
* "uniVer": "-",
|
|
2148
|
+
* "unixVer": "-"
|
|
2149
|
+
* },
|
|
2150
|
+
* "jd": {
|
|
2151
|
+
* "hostVer": "-",
|
|
2152
|
+
* "uniVer": "-",
|
|
2153
|
+
* "unixVer": "-"
|
|
2154
|
+
* }
|
|
2155
|
+
* }
|
|
2156
|
+
* }
|
|
2157
|
+
*/
|
|
2158
|
+
outTradeNo?: string | null;
|
|
2159
|
+
/**
|
|
2160
|
+
* 环境配置, 0 米大师正式环境, 1 米大师沙箱环境, 默认为 0
|
|
2161
|
+
*
|
|
2162
|
+
* @uniPlatform {
|
|
2163
|
+
* "mp": {
|
|
2164
|
+
* "weixin": {
|
|
2165
|
+
* "hostVer": "√",
|
|
2166
|
+
* "uniVer": "√",
|
|
2167
|
+
* "unixVer": "4.41"
|
|
2168
|
+
* },
|
|
2169
|
+
* "alipay": {
|
|
2170
|
+
* "hostVer": "-",
|
|
2171
|
+
* "uniVer": "-",
|
|
2172
|
+
* "unixVer": "-"
|
|
2173
|
+
* },
|
|
2174
|
+
* "baidu": {
|
|
2175
|
+
* "hostVer": "-",
|
|
2176
|
+
* "uniVer": "-",
|
|
2177
|
+
* "unixVer": "-"
|
|
2178
|
+
* },
|
|
2179
|
+
* "toutiao": {
|
|
2180
|
+
* "hostVer": "-",
|
|
2181
|
+
* "uniVer": "-",
|
|
2182
|
+
* "unixVer": "-"
|
|
2183
|
+
* },
|
|
2184
|
+
* "lark": {
|
|
2185
|
+
* "hostVer": "-",
|
|
2186
|
+
* "uniVer": "-",
|
|
2187
|
+
* "unixVer": "-"
|
|
2188
|
+
* },
|
|
2189
|
+
* "qq": {
|
|
2190
|
+
* "hostVer": "-",
|
|
2191
|
+
* "uniVer": "-",
|
|
2192
|
+
* "unixVer": "-"
|
|
2193
|
+
* },
|
|
2194
|
+
* "kuaishou": {
|
|
2195
|
+
* "hostVer": "-",
|
|
2196
|
+
* "uniVer": "-",
|
|
2197
|
+
* "unixVer": "-"
|
|
2198
|
+
* },
|
|
2199
|
+
* "jd": {
|
|
2200
|
+
* "hostVer": "-",
|
|
2201
|
+
* "uniVer": "-",
|
|
2202
|
+
* "unixVer": "-"
|
|
2203
|
+
* }
|
|
2204
|
+
* }
|
|
2205
|
+
* }
|
|
2206
|
+
*/
|
|
2207
|
+
env?: number | null;
|
|
2208
|
+
/**
|
|
2209
|
+
* 道具单价(分), **该字段仅mode=short_series_goods时需要必填**, 用来校验价格与后台道具价格是否一致, 避免用户在业务商城页看到的价格与实际价格不一致导致投诉
|
|
2210
|
+
*
|
|
2211
|
+
* @uniPlatform {
|
|
2212
|
+
* "mp": {
|
|
2213
|
+
* "weixin": {
|
|
2214
|
+
* "hostVer": "√",
|
|
2215
|
+
* "uniVer": "√",
|
|
2216
|
+
* "unixVer": "4.41"
|
|
2217
|
+
* },
|
|
2218
|
+
* "alipay": {
|
|
2219
|
+
* "hostVer": "-",
|
|
2220
|
+
* "uniVer": "-",
|
|
2221
|
+
* "unixVer": "-"
|
|
2222
|
+
* },
|
|
2223
|
+
* "baidu": {
|
|
2224
|
+
* "hostVer": "-",
|
|
2225
|
+
* "uniVer": "-",
|
|
2226
|
+
* "unixVer": "-"
|
|
2227
|
+
* },
|
|
2228
|
+
* "toutiao": {
|
|
2229
|
+
* "hostVer": "-",
|
|
2230
|
+
* "uniVer": "-",
|
|
2231
|
+
* "unixVer": "-"
|
|
2232
|
+
* },
|
|
2233
|
+
* "lark": {
|
|
2234
|
+
* "hostVer": "-",
|
|
2235
|
+
* "uniVer": "-",
|
|
2236
|
+
* "unixVer": "-"
|
|
2237
|
+
* },
|
|
2238
|
+
* "qq": {
|
|
2239
|
+
* "hostVer": "-",
|
|
2240
|
+
* "uniVer": "-",
|
|
2241
|
+
* "unixVer": "-"
|
|
2242
|
+
* },
|
|
2243
|
+
* "kuaishou": {
|
|
2244
|
+
* "hostVer": "-",
|
|
2245
|
+
* "uniVer": "-",
|
|
2246
|
+
* "unixVer": "-"
|
|
2247
|
+
* },
|
|
2248
|
+
* "jd": {
|
|
2249
|
+
* "hostVer": "-",
|
|
2250
|
+
* "uniVer": "-",
|
|
2251
|
+
* "unixVer": "-"
|
|
2252
|
+
* }
|
|
2253
|
+
* }
|
|
2254
|
+
* }
|
|
2255
|
+
*/
|
|
2256
|
+
goodsPrice?: number | null;
|
|
2257
|
+
/**
|
|
2258
|
+
* 道具ID, **该字段仅mode=short_series_goods时需要必填**
|
|
2259
|
+
*
|
|
2260
|
+
* @uniPlatform {
|
|
2261
|
+
* "mp": {
|
|
2262
|
+
* "weixin": {
|
|
2263
|
+
* "hostVer": "√",
|
|
2264
|
+
* "uniVer": "√",
|
|
2265
|
+
* "unixVer": "4.41"
|
|
2266
|
+
* },
|
|
2267
|
+
* "alipay": {
|
|
2268
|
+
* "hostVer": "-",
|
|
2269
|
+
* "uniVer": "-",
|
|
2270
|
+
* "unixVer": "-"
|
|
2271
|
+
* },
|
|
2272
|
+
* "baidu": {
|
|
2273
|
+
* "hostVer": "-",
|
|
2274
|
+
* "uniVer": "-",
|
|
2275
|
+
* "unixVer": "-"
|
|
2276
|
+
* },
|
|
2277
|
+
* "toutiao": {
|
|
2278
|
+
* "hostVer": "-",
|
|
2279
|
+
* "uniVer": "-",
|
|
2280
|
+
* "unixVer": "-"
|
|
2281
|
+
* },
|
|
2282
|
+
* "lark": {
|
|
2283
|
+
* "hostVer": "-",
|
|
2284
|
+
* "uniVer": "-",
|
|
2285
|
+
* "unixVer": "-"
|
|
2286
|
+
* },
|
|
2287
|
+
* "qq": {
|
|
2288
|
+
* "hostVer": "-",
|
|
2289
|
+
* "uniVer": "-",
|
|
2290
|
+
* "unixVer": "-"
|
|
2291
|
+
* },
|
|
2292
|
+
* "kuaishou": {
|
|
2293
|
+
* "hostVer": "-",
|
|
2294
|
+
* "uniVer": "-",
|
|
2295
|
+
* "unixVer": "-"
|
|
2296
|
+
* },
|
|
2297
|
+
* "jd": {
|
|
2298
|
+
* "hostVer": "-",
|
|
2299
|
+
* "uniVer": "-",
|
|
2300
|
+
* "unixVer": "-"
|
|
2301
|
+
* }
|
|
2302
|
+
* }
|
|
2303
|
+
* }
|
|
2304
|
+
*/
|
|
2305
|
+
productId?: string | null
|
|
2306
|
+
};
|