@antchain/gesaas_spi 1.1.0
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/dist/client.d.ts +395 -0
- package/dist/client.js +523 -0
- package/dist/client.js.map +1 -0
- package/package.json +31 -0
- package/src/client.ts +799 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import * as $Util from '@alicloud/tea-util';
|
|
2
|
+
import * as $tea from '@alicloud/tea-typescript';
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* Model for initing client
|
|
6
|
+
*/
|
|
7
|
+
export declare class Config extends $tea.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* accesskey id
|
|
11
|
+
*/
|
|
12
|
+
accessKeyId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* accesskey secret
|
|
16
|
+
*/
|
|
17
|
+
accessKeySecret?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* security token
|
|
21
|
+
*/
|
|
22
|
+
securityToken?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* http protocol
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* http
|
|
29
|
+
*/
|
|
30
|
+
protocol?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* read timeout
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* 10
|
|
37
|
+
*/
|
|
38
|
+
readTimeout?: number;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* connect timeout
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 10
|
|
45
|
+
*/
|
|
46
|
+
connectTimeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* http proxy
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* http://localhost
|
|
53
|
+
*/
|
|
54
|
+
httpProxy?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* https proxy
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* https://localhost
|
|
61
|
+
*/
|
|
62
|
+
httpsProxy?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* endpoint
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* cs.aliyuncs.com
|
|
69
|
+
*/
|
|
70
|
+
endpoint?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* proxy white list
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* http://localhost
|
|
77
|
+
*/
|
|
78
|
+
noProxy?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* max idle conns
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* 3
|
|
85
|
+
*/
|
|
86
|
+
maxIdleConns?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* user agent
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* Alibabacloud/1
|
|
93
|
+
*/
|
|
94
|
+
userAgent?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* socks5 proxy
|
|
98
|
+
*/
|
|
99
|
+
socks5Proxy?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @remarks
|
|
102
|
+
* socks5 network
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* TCP
|
|
106
|
+
*/
|
|
107
|
+
socks5NetWork?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @remarks
|
|
110
|
+
* 长链接最大空闲时长
|
|
111
|
+
*/
|
|
112
|
+
maxIdleTimeMillis?: number;
|
|
113
|
+
/**
|
|
114
|
+
* @remarks
|
|
115
|
+
* 长链接最大连接时长
|
|
116
|
+
*/
|
|
117
|
+
keepAliveDurationMillis?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* 最大连接数(长链接最大总数)
|
|
121
|
+
*/
|
|
122
|
+
maxRequests?: number;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* 每个目标主机的最大连接数(分主机域名的长链接最大总数
|
|
126
|
+
*/
|
|
127
|
+
maxRequestsPerHost?: number;
|
|
128
|
+
static names(): {
|
|
129
|
+
[key: string]: string;
|
|
130
|
+
};
|
|
131
|
+
static types(): {
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
};
|
|
134
|
+
constructor(map?: {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
export declare class GrantOrderDetail extends $tea.Model {
|
|
139
|
+
/**
|
|
140
|
+
* @example
|
|
141
|
+
* 1798234932684395
|
|
142
|
+
*/
|
|
143
|
+
voucherCode: string;
|
|
144
|
+
static names(): {
|
|
145
|
+
[key: string]: string;
|
|
146
|
+
};
|
|
147
|
+
static types(): {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
};
|
|
150
|
+
constructor(map?: {
|
|
151
|
+
[key: string]: any;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
export declare class PushRightsprodVoucherRequest extends $tea.Model {
|
|
155
|
+
authToken?: string;
|
|
156
|
+
productInstanceId?: string;
|
|
157
|
+
rightsCode: string;
|
|
158
|
+
voucherCode: string;
|
|
159
|
+
bizType: string;
|
|
160
|
+
status?: string;
|
|
161
|
+
outTradeOrderNo?: string;
|
|
162
|
+
failMsg?: string;
|
|
163
|
+
grantInfo?: string;
|
|
164
|
+
static names(): {
|
|
165
|
+
[key: string]: string;
|
|
166
|
+
};
|
|
167
|
+
static types(): {
|
|
168
|
+
[key: string]: any;
|
|
169
|
+
};
|
|
170
|
+
constructor(map?: {
|
|
171
|
+
[key: string]: any;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
export declare class PushRightsprodVoucherResponse extends $tea.Model {
|
|
175
|
+
reqMsgId?: string;
|
|
176
|
+
resultCode?: string;
|
|
177
|
+
resultMsg?: string;
|
|
178
|
+
result?: string;
|
|
179
|
+
static names(): {
|
|
180
|
+
[key: string]: string;
|
|
181
|
+
};
|
|
182
|
+
static types(): {
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
};
|
|
185
|
+
constructor(map?: {
|
|
186
|
+
[key: string]: any;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
export declare class CallbackRightsprodStatusRequest extends $tea.Model {
|
|
190
|
+
authToken?: string;
|
|
191
|
+
productInstanceId?: string;
|
|
192
|
+
rightsCode: string;
|
|
193
|
+
voucherCode: string;
|
|
194
|
+
status: string;
|
|
195
|
+
static names(): {
|
|
196
|
+
[key: string]: string;
|
|
197
|
+
};
|
|
198
|
+
static types(): {
|
|
199
|
+
[key: string]: any;
|
|
200
|
+
};
|
|
201
|
+
constructor(map?: {
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
export declare class CallbackRightsprodStatusResponse extends $tea.Model {
|
|
206
|
+
reqMsgId?: string;
|
|
207
|
+
resultCode?: string;
|
|
208
|
+
resultMsg?: string;
|
|
209
|
+
result?: string;
|
|
210
|
+
static names(): {
|
|
211
|
+
[key: string]: string;
|
|
212
|
+
};
|
|
213
|
+
static types(): {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
};
|
|
216
|
+
constructor(map?: {
|
|
217
|
+
[key: string]: any;
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
export declare class CallbackRightsprodOperationRequest extends $tea.Model {
|
|
221
|
+
authToken?: string;
|
|
222
|
+
productInstanceId?: string;
|
|
223
|
+
rightsCode: string;
|
|
224
|
+
voucherCode: string;
|
|
225
|
+
notifyId: string;
|
|
226
|
+
bizType: string;
|
|
227
|
+
payOrderNo?: string;
|
|
228
|
+
faceAmount?: string;
|
|
229
|
+
fluxAmount?: string;
|
|
230
|
+
static names(): {
|
|
231
|
+
[key: string]: string;
|
|
232
|
+
};
|
|
233
|
+
static types(): {
|
|
234
|
+
[key: string]: any;
|
|
235
|
+
};
|
|
236
|
+
constructor(map?: {
|
|
237
|
+
[key: string]: any;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
export declare class CallbackRightsprodOperationResponse extends $tea.Model {
|
|
241
|
+
reqMsgId?: string;
|
|
242
|
+
resultCode?: string;
|
|
243
|
+
resultMsg?: string;
|
|
244
|
+
result?: string;
|
|
245
|
+
static names(): {
|
|
246
|
+
[key: string]: string;
|
|
247
|
+
};
|
|
248
|
+
static types(): {
|
|
249
|
+
[key: string]: any;
|
|
250
|
+
};
|
|
251
|
+
constructor(map?: {
|
|
252
|
+
[key: string]: any;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
export declare class PushRightsprodGrantrightsRequest extends $tea.Model {
|
|
256
|
+
authToken?: string;
|
|
257
|
+
productInstanceId?: string;
|
|
258
|
+
userId?: string;
|
|
259
|
+
phoneNumber?: string;
|
|
260
|
+
merchantNo?: string;
|
|
261
|
+
rightsCode: string;
|
|
262
|
+
grantNum?: number;
|
|
263
|
+
outGrantOrderNo: string;
|
|
264
|
+
grantInfo?: string;
|
|
265
|
+
static names(): {
|
|
266
|
+
[key: string]: string;
|
|
267
|
+
};
|
|
268
|
+
static types(): {
|
|
269
|
+
[key: string]: any;
|
|
270
|
+
};
|
|
271
|
+
constructor(map?: {
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
export declare class PushRightsprodGrantrightsResponse extends $tea.Model {
|
|
276
|
+
reqMsgId?: string;
|
|
277
|
+
resultCode?: string;
|
|
278
|
+
resultMsg?: string;
|
|
279
|
+
grantStatus?: string;
|
|
280
|
+
expireTime?: string;
|
|
281
|
+
effectTime?: string;
|
|
282
|
+
orderDetails?: GrantOrderDetail[];
|
|
283
|
+
static names(): {
|
|
284
|
+
[key: string]: string;
|
|
285
|
+
};
|
|
286
|
+
static types(): {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
};
|
|
289
|
+
constructor(map?: {
|
|
290
|
+
[key: string]: any;
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
export default class Client {
|
|
294
|
+
_endpoint: string;
|
|
295
|
+
_regionId: string;
|
|
296
|
+
_accessKeyId: string;
|
|
297
|
+
_accessKeySecret: string;
|
|
298
|
+
_protocol: string;
|
|
299
|
+
_userAgent: string;
|
|
300
|
+
_readTimeout: number;
|
|
301
|
+
_connectTimeout: number;
|
|
302
|
+
_httpProxy: string;
|
|
303
|
+
_httpsProxy: string;
|
|
304
|
+
_socks5Proxy: string;
|
|
305
|
+
_socks5NetWork: string;
|
|
306
|
+
_noProxy: string;
|
|
307
|
+
_maxIdleConns: number;
|
|
308
|
+
_securityToken: string;
|
|
309
|
+
_maxIdleTimeMillis: number;
|
|
310
|
+
_keepAliveDurationMillis: number;
|
|
311
|
+
_maxRequests: number;
|
|
312
|
+
_maxRequestsPerHost: number;
|
|
313
|
+
/**
|
|
314
|
+
* @remarks
|
|
315
|
+
* Init client with Config
|
|
316
|
+
*
|
|
317
|
+
* @param config - config contains the necessary information to create a client
|
|
318
|
+
*/
|
|
319
|
+
constructor(config: Config);
|
|
320
|
+
/**
|
|
321
|
+
* @remarks
|
|
322
|
+
* Encapsulate the request and invoke the network
|
|
323
|
+
*
|
|
324
|
+
* @param action - api name
|
|
325
|
+
* @param protocol - http or https
|
|
326
|
+
* @param method - e.g. GET
|
|
327
|
+
* @param pathname - pathname of every api
|
|
328
|
+
* @param request - which contains request params
|
|
329
|
+
* @param runtime - which controls some details of call api, such as retry times
|
|
330
|
+
* @returns the response
|
|
331
|
+
*/
|
|
332
|
+
doRequest(version: string, action: string, protocol: string, method: string, pathname: string, request: {
|
|
333
|
+
[key: string]: any;
|
|
334
|
+
}, headers: {
|
|
335
|
+
[key: string]: string;
|
|
336
|
+
}, runtime: $Util.RuntimeOptions): Promise<{
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
}>;
|
|
339
|
+
/**
|
|
340
|
+
* @remarks
|
|
341
|
+
* Description: 权益中心权益券状态推送
|
|
342
|
+
* Summary: 券状态推送
|
|
343
|
+
*/
|
|
344
|
+
pushRightsprodVoucher(request: PushRightsprodVoucherRequest): Promise<PushRightsprodVoucherResponse>;
|
|
345
|
+
/**
|
|
346
|
+
* @remarks
|
|
347
|
+
* Description: 权益中心权益券状态推送
|
|
348
|
+
* Summary: 券状态推送
|
|
349
|
+
*/
|
|
350
|
+
pushRightsprodVoucherEx(request: PushRightsprodVoucherRequest, headers: {
|
|
351
|
+
[key: string]: string;
|
|
352
|
+
}, runtime: $Util.RuntimeOptions): Promise<PushRightsprodVoucherResponse>;
|
|
353
|
+
/**
|
|
354
|
+
* @remarks
|
|
355
|
+
* Description: 权益中心券状态变更回调通知
|
|
356
|
+
* Summary: 权益中心券状态变更回调通知
|
|
357
|
+
*/
|
|
358
|
+
callbackRightsprodStatus(request: CallbackRightsprodStatusRequest): Promise<CallbackRightsprodStatusResponse>;
|
|
359
|
+
/**
|
|
360
|
+
* @remarks
|
|
361
|
+
* Description: 权益中心券状态变更回调通知
|
|
362
|
+
* Summary: 权益中心券状态变更回调通知
|
|
363
|
+
*/
|
|
364
|
+
callbackRightsprodStatusEx(request: CallbackRightsprodStatusRequest, headers: {
|
|
365
|
+
[key: string]: string;
|
|
366
|
+
}, runtime: $Util.RuntimeOptions): Promise<CallbackRightsprodStatusResponse>;
|
|
367
|
+
/**
|
|
368
|
+
* @remarks
|
|
369
|
+
* Description: 券操作回调通知
|
|
370
|
+
* Summary: 券操作回调通知
|
|
371
|
+
*/
|
|
372
|
+
callbackRightsprodOperation(request: CallbackRightsprodOperationRequest): Promise<CallbackRightsprodOperationResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* @remarks
|
|
375
|
+
* Description: 券操作回调通知
|
|
376
|
+
* Summary: 券操作回调通知
|
|
377
|
+
*/
|
|
378
|
+
callbackRightsprodOperationEx(request: CallbackRightsprodOperationRequest, headers: {
|
|
379
|
+
[key: string]: string;
|
|
380
|
+
}, runtime: $Util.RuntimeOptions): Promise<CallbackRightsprodOperationResponse>;
|
|
381
|
+
/**
|
|
382
|
+
* @remarks
|
|
383
|
+
* Description: 权益供应商权益发放spi
|
|
384
|
+
* Summary: 权益供应商权益发放spi
|
|
385
|
+
*/
|
|
386
|
+
pushRightsprodGrantrights(request: PushRightsprodGrantrightsRequest): Promise<PushRightsprodGrantrightsResponse>;
|
|
387
|
+
/**
|
|
388
|
+
* @remarks
|
|
389
|
+
* Description: 权益供应商权益发放spi
|
|
390
|
+
* Summary: 权益供应商权益发放spi
|
|
391
|
+
*/
|
|
392
|
+
pushRightsprodGrantrightsEx(request: PushRightsprodGrantrightsRequest, headers: {
|
|
393
|
+
[key: string]: string;
|
|
394
|
+
}, runtime: $Util.RuntimeOptions): Promise<PushRightsprodGrantrightsResponse>;
|
|
395
|
+
}
|