@antchain/riskplus 1.19.13 → 1.19.15
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 +61 -0
- package/dist/client.js +94 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +132 -1
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -2192,6 +2192,51 @@ export class RpcommonResp extends $tea.Model {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
|
+
// 客户信息结果
|
|
2196
|
+
export class CustomInfoResult extends $tea.Model {
|
|
2197
|
+
// 社会信用代码
|
|
2198
|
+
creditCode: string;
|
|
2199
|
+
// 公司名称
|
|
2200
|
+
companyName: string;
|
|
2201
|
+
// 法人姓名
|
|
2202
|
+
legalName: string;
|
|
2203
|
+
// 身份证号
|
|
2204
|
+
idCard: string;
|
|
2205
|
+
// 手机号
|
|
2206
|
+
phoneNumber: string;
|
|
2207
|
+
// 账号
|
|
2208
|
+
account: string;
|
|
2209
|
+
// 密码
|
|
2210
|
+
password: string;
|
|
2211
|
+
static names(): { [key: string]: string } {
|
|
2212
|
+
return {
|
|
2213
|
+
creditCode: 'credit_code',
|
|
2214
|
+
companyName: 'company_name',
|
|
2215
|
+
legalName: 'legal_name',
|
|
2216
|
+
idCard: 'id_card',
|
|
2217
|
+
phoneNumber: 'phone_number',
|
|
2218
|
+
account: 'account',
|
|
2219
|
+
password: 'password',
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
static types(): { [key: string]: any } {
|
|
2224
|
+
return {
|
|
2225
|
+
creditCode: 'string',
|
|
2226
|
+
companyName: 'string',
|
|
2227
|
+
legalName: 'string',
|
|
2228
|
+
idCard: 'string',
|
|
2229
|
+
phoneNumber: 'string',
|
|
2230
|
+
account: 'string',
|
|
2231
|
+
password: 'string',
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
constructor(map?: { [key: string]: any }) {
|
|
2236
|
+
super(map);
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2195
2240
|
// 标签图片
|
|
2196
2241
|
export class RtopTagImage extends $tea.Model {
|
|
2197
2242
|
// 标签图片表主键
|
|
@@ -13384,11 +13429,14 @@ export class GetRbbCustomerInformationResponse extends $tea.Model {
|
|
|
13384
13429
|
resultCode?: string;
|
|
13385
13430
|
// 异常信息的文本描述
|
|
13386
13431
|
resultMsg?: string;
|
|
13432
|
+
// 客户信息结果数据
|
|
13433
|
+
resultData?: string;
|
|
13387
13434
|
static names(): { [key: string]: string } {
|
|
13388
13435
|
return {
|
|
13389
13436
|
reqMsgId: 'req_msg_id',
|
|
13390
13437
|
resultCode: 'result_code',
|
|
13391
13438
|
resultMsg: 'result_msg',
|
|
13439
|
+
resultData: 'result_data',
|
|
13392
13440
|
};
|
|
13393
13441
|
}
|
|
13394
13442
|
|
|
@@ -13397,6 +13445,70 @@ export class GetRbbCustomerInformationResponse extends $tea.Model {
|
|
|
13397
13445
|
reqMsgId: 'string',
|
|
13398
13446
|
resultCode: 'string',
|
|
13399
13447
|
resultMsg: 'string',
|
|
13448
|
+
resultData: 'string',
|
|
13449
|
+
};
|
|
13450
|
+
}
|
|
13451
|
+
|
|
13452
|
+
constructor(map?: { [key: string]: any }) {
|
|
13453
|
+
super(map);
|
|
13454
|
+
}
|
|
13455
|
+
}
|
|
13456
|
+
|
|
13457
|
+
export class GetRbbTaxinvoiceDataRequest extends $tea.Model {
|
|
13458
|
+
// OAuth模式下的授权token
|
|
13459
|
+
authToken?: string;
|
|
13460
|
+
productInstanceId?: string;
|
|
13461
|
+
// 流水号
|
|
13462
|
+
serialNumber: string;
|
|
13463
|
+
// 社会新信用代码
|
|
13464
|
+
taxpayerId: string;
|
|
13465
|
+
static names(): { [key: string]: string } {
|
|
13466
|
+
return {
|
|
13467
|
+
authToken: 'auth_token',
|
|
13468
|
+
productInstanceId: 'product_instance_id',
|
|
13469
|
+
serialNumber: 'serial_number',
|
|
13470
|
+
taxpayerId: 'taxpayer_id',
|
|
13471
|
+
};
|
|
13472
|
+
}
|
|
13473
|
+
|
|
13474
|
+
static types(): { [key: string]: any } {
|
|
13475
|
+
return {
|
|
13476
|
+
authToken: 'string',
|
|
13477
|
+
productInstanceId: 'string',
|
|
13478
|
+
serialNumber: 'string',
|
|
13479
|
+
taxpayerId: 'string',
|
|
13480
|
+
};
|
|
13481
|
+
}
|
|
13482
|
+
|
|
13483
|
+
constructor(map?: { [key: string]: any }) {
|
|
13484
|
+
super(map);
|
|
13485
|
+
}
|
|
13486
|
+
}
|
|
13487
|
+
|
|
13488
|
+
export class GetRbbTaxinvoiceDataResponse extends $tea.Model {
|
|
13489
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
13490
|
+
reqMsgId?: string;
|
|
13491
|
+
// 结果码,一般OK表示调用成功
|
|
13492
|
+
resultCode?: string;
|
|
13493
|
+
// 异常信息的文本描述
|
|
13494
|
+
resultMsg?: string;
|
|
13495
|
+
// 税票授权数据结果
|
|
13496
|
+
resultData?: string;
|
|
13497
|
+
static names(): { [key: string]: string } {
|
|
13498
|
+
return {
|
|
13499
|
+
reqMsgId: 'req_msg_id',
|
|
13500
|
+
resultCode: 'result_code',
|
|
13501
|
+
resultMsg: 'result_msg',
|
|
13502
|
+
resultData: 'result_data',
|
|
13503
|
+
};
|
|
13504
|
+
}
|
|
13505
|
+
|
|
13506
|
+
static types(): { [key: string]: any } {
|
|
13507
|
+
return {
|
|
13508
|
+
reqMsgId: 'string',
|
|
13509
|
+
resultCode: 'string',
|
|
13510
|
+
resultMsg: 'string',
|
|
13511
|
+
resultData: 'string',
|
|
13400
13512
|
};
|
|
13401
13513
|
}
|
|
13402
13514
|
|
|
@@ -19633,7 +19745,7 @@ export default class Client {
|
|
|
19633
19745
|
req_msg_id: AntchainUtil.getNonce(),
|
|
19634
19746
|
access_key: this._accessKeyId,
|
|
19635
19747
|
base_sdk_version: "TeaSDK-2.0",
|
|
19636
|
-
sdk_version: "1.19.
|
|
19748
|
+
sdk_version: "1.19.15",
|
|
19637
19749
|
_prod_code: "RISKPLUS",
|
|
19638
19750
|
_prod_channel: "undefined",
|
|
19639
19751
|
};
|
|
@@ -21874,6 +21986,25 @@ export default class Client {
|
|
|
21874
21986
|
return $tea.cast<GetRbbCustomerInformationResponse>(await this.doRequest("1.0", "riskplus.rbb.customer.information.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetRbbCustomerInformationResponse({}));
|
|
21875
21987
|
}
|
|
21876
21988
|
|
|
21989
|
+
/**
|
|
21990
|
+
* Description: 获取税票授权数据
|
|
21991
|
+
* Summary: 获取税票授权数据
|
|
21992
|
+
*/
|
|
21993
|
+
async getRbbTaxinvoiceData(request: GetRbbTaxinvoiceDataRequest): Promise<GetRbbTaxinvoiceDataResponse> {
|
|
21994
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
21995
|
+
let headers : {[key: string ]: string} = { };
|
|
21996
|
+
return await this.getRbbTaxinvoiceDataEx(request, headers, runtime);
|
|
21997
|
+
}
|
|
21998
|
+
|
|
21999
|
+
/**
|
|
22000
|
+
* Description: 获取税票授权数据
|
|
22001
|
+
* Summary: 获取税票授权数据
|
|
22002
|
+
*/
|
|
22003
|
+
async getRbbTaxinvoiceDataEx(request: GetRbbTaxinvoiceDataRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetRbbTaxinvoiceDataResponse> {
|
|
22004
|
+
Util.validateModel(request);
|
|
22005
|
+
return $tea.cast<GetRbbTaxinvoiceDataResponse>(await this.doRequest("1.0", "riskplus.rbb.taxinvoice.data.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetRbbTaxinvoiceDataResponse({}));
|
|
22006
|
+
}
|
|
22007
|
+
|
|
21877
22008
|
/**
|
|
21878
22009
|
* Description: 报告结果推送,算法调用
|
|
21879
22010
|
* Summary: 报告结果推送
|