@antchain/riskplus 1.24.0 → 1.24.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antchain/riskplus",
3
- "version": "1.24.0",
3
+ "version": "1.24.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5515,6 +5515,145 @@ export class XNameValuePair extends $tea.Model {
5515
5515
  }
5516
5516
  }
5517
5517
 
5518
+ export class ReceiveBenefithubRiskPayRequest extends $tea.Model {
5519
+ // OAuth模式下的授权token
5520
+ authToken?: string;
5521
+ productInstanceId?: string;
5522
+ // 业务分配的平台code,8位纯大写字母code
5523
+ platformCode: string;
5524
+ // 产品code
5525
+ productCode: string;
5526
+ // 平台code、用户唯一ID 组合出全局唯一id
5527
+ userUniqueId: string;
5528
+ // 类型:订单支付结果类、订单退款类、续费扣款类、签约成功、解约成功、订单超时类型
5529
+ // 具体如下:
5530
+ // ODRDER_PAYMENT-订单支付结果类通知、ORDER_REFUND-订单退款、RENEWAL_DEDUCTION-续费扣款、CONTRACT_SIGNED-签约成功、CONTRACT_TERMINATED-解约成功、
5531
+ // ORDER_TIMEOUT-订单超时类型
5532
+ resultType: string;
5533
+ // 回调结果,json数据
5534
+ // 各个平台返回的支付结果、支付退款、续费结果通知、签约、解约、订单、超时关单
5535
+ callbackResult: string;
5536
+ static names(): { [key: string]: string } {
5537
+ return {
5538
+ authToken: 'auth_token',
5539
+ productInstanceId: 'product_instance_id',
5540
+ platformCode: 'platform_code',
5541
+ productCode: 'product_code',
5542
+ userUniqueId: 'user_unique_id',
5543
+ resultType: 'result_type',
5544
+ callbackResult: 'callback_result',
5545
+ };
5546
+ }
5547
+
5548
+ static types(): { [key: string]: any } {
5549
+ return {
5550
+ authToken: 'string',
5551
+ productInstanceId: 'string',
5552
+ platformCode: 'string',
5553
+ productCode: 'string',
5554
+ userUniqueId: 'string',
5555
+ resultType: 'string',
5556
+ callbackResult: 'string',
5557
+ };
5558
+ }
5559
+
5560
+ constructor(map?: { [key: string]: any }) {
5561
+ super(map);
5562
+ }
5563
+ }
5564
+
5565
+ export class ReceiveBenefithubRiskPayResponse extends $tea.Model {
5566
+ // 请求唯一ID,用于链路跟踪和问题排查
5567
+ reqMsgId?: string;
5568
+ // 结果码,一般OK表示调用成功
5569
+ resultCode?: string;
5570
+ // 异常信息的文本描述
5571
+ resultMsg?: string;
5572
+ static names(): { [key: string]: string } {
5573
+ return {
5574
+ reqMsgId: 'req_msg_id',
5575
+ resultCode: 'result_code',
5576
+ resultMsg: 'result_msg',
5577
+ };
5578
+ }
5579
+
5580
+ static types(): { [key: string]: any } {
5581
+ return {
5582
+ reqMsgId: 'string',
5583
+ resultCode: 'string',
5584
+ resultMsg: 'string',
5585
+ };
5586
+ }
5587
+
5588
+ constructor(map?: { [key: string]: any }) {
5589
+ super(map);
5590
+ }
5591
+ }
5592
+
5593
+ export class NotifyBenefithubRiskLoginRequest extends $tea.Model {
5594
+ // OAuth模式下的授权token
5595
+ authToken?: string;
5596
+ productInstanceId?: string;
5597
+ // 平台码
5598
+ // 注:不同平台的平台码都是固定好的,如果传入的平台码有误会抛出平台码错误的信息
5599
+ platformCode: string;
5600
+ // 用户id
5601
+ userUniqueId: string;
5602
+ // 渠道、平台方推送的手机号
5603
+ mobile: string;
5604
+ static names(): { [key: string]: string } {
5605
+ return {
5606
+ authToken: 'auth_token',
5607
+ productInstanceId: 'product_instance_id',
5608
+ platformCode: 'platform_code',
5609
+ userUniqueId: 'user_unique_id',
5610
+ mobile: 'mobile',
5611
+ };
5612
+ }
5613
+
5614
+ static types(): { [key: string]: any } {
5615
+ return {
5616
+ authToken: 'string',
5617
+ productInstanceId: 'string',
5618
+ platformCode: 'string',
5619
+ userUniqueId: 'string',
5620
+ mobile: 'string',
5621
+ };
5622
+ }
5623
+
5624
+ constructor(map?: { [key: string]: any }) {
5625
+ super(map);
5626
+ }
5627
+ }
5628
+
5629
+ export class NotifyBenefithubRiskLoginResponse extends $tea.Model {
5630
+ // 请求唯一ID,用于链路跟踪和问题排查
5631
+ reqMsgId?: string;
5632
+ // 结果码,一般OK表示调用成功
5633
+ resultCode?: string;
5634
+ // 异常信息的文本描述
5635
+ resultMsg?: string;
5636
+ static names(): { [key: string]: string } {
5637
+ return {
5638
+ reqMsgId: 'req_msg_id',
5639
+ resultCode: 'result_code',
5640
+ resultMsg: 'result_msg',
5641
+ };
5642
+ }
5643
+
5644
+ static types(): { [key: string]: any } {
5645
+ return {
5646
+ reqMsgId: 'string',
5647
+ resultCode: 'string',
5648
+ resultMsg: 'string',
5649
+ };
5650
+ }
5651
+
5652
+ constructor(map?: { [key: string]: any }) {
5653
+ super(map);
5654
+ }
5655
+ }
5656
+
5518
5657
  export class BatchqueryCreditshieldProductInfoRequest extends $tea.Model {
5519
5658
  // OAuth模式下的授权token
5520
5659
  authToken?: string;
@@ -14408,6 +14547,87 @@ export class BatchqueryQmpRtMixedmarketingResponse extends $tea.Model {
14408
14547
  }
14409
14548
  }
14410
14549
 
14550
+ export class UploadQmpOfflinehostplanRequest extends $tea.Model {
14551
+ // OAuth模式下的授权token
14552
+ authToken?: string;
14553
+ productInstanceId?: string;
14554
+ // 文件上传后的fileId
14555
+ fileObject?: Readable;
14556
+ fileObjectName?: string;
14557
+ fileId: string;
14558
+ // MOBILE/MOBILE_MD5/OAID/IDFA/IMEI选择其中一种
14559
+ fileTemplate: string;
14560
+ // plancode,托管计划编码
14561
+ planCode: string;
14562
+ // OFFLINE_DECISION/OFFLINE_DECISION_ACTION,默认OFFLINE_DECISION_ACTION
14563
+ relationType?: string;
14564
+ // properties的header,其他的为ext_info,
14565
+ properties?: string;
14566
+ // 默认为false
14567
+ needToRefactor?: boolean;
14568
+ static names(): { [key: string]: string } {
14569
+ return {
14570
+ authToken: 'auth_token',
14571
+ productInstanceId: 'product_instance_id',
14572
+ fileObject: 'fileObject',
14573
+ fileObjectName: 'fileObjectName',
14574
+ fileId: 'file_id',
14575
+ fileTemplate: 'file_template',
14576
+ planCode: 'plan_code',
14577
+ relationType: 'relation_type',
14578
+ properties: 'properties',
14579
+ needToRefactor: 'need_to_refactor',
14580
+ };
14581
+ }
14582
+
14583
+ static types(): { [key: string]: any } {
14584
+ return {
14585
+ authToken: 'string',
14586
+ productInstanceId: 'string',
14587
+ fileObject: 'Readable',
14588
+ fileObjectName: 'string',
14589
+ fileId: 'string',
14590
+ fileTemplate: 'string',
14591
+ planCode: 'string',
14592
+ relationType: 'string',
14593
+ properties: 'string',
14594
+ needToRefactor: 'boolean',
14595
+ };
14596
+ }
14597
+
14598
+ constructor(map?: { [key: string]: any }) {
14599
+ super(map);
14600
+ }
14601
+ }
14602
+
14603
+ export class UploadQmpOfflinehostplanResponse extends $tea.Model {
14604
+ // 请求唯一ID,用于链路跟踪和问题排查
14605
+ reqMsgId?: string;
14606
+ // 结果码,一般OK表示调用成功
14607
+ resultCode?: string;
14608
+ // 异常信息的文本描述
14609
+ resultMsg?: string;
14610
+ static names(): { [key: string]: string } {
14611
+ return {
14612
+ reqMsgId: 'req_msg_id',
14613
+ resultCode: 'result_code',
14614
+ resultMsg: 'result_msg',
14615
+ };
14616
+ }
14617
+
14618
+ static types(): { [key: string]: any } {
14619
+ return {
14620
+ reqMsgId: 'string',
14621
+ resultCode: 'string',
14622
+ resultMsg: 'string',
14623
+ };
14624
+ }
14625
+
14626
+ constructor(map?: { [key: string]: any }) {
14627
+ super(map);
14628
+ }
14629
+ }
14630
+
14411
14631
  export class SyncRdaasTaxAuthinfoRequest extends $tea.Model {
14412
14632
  // OAuth模式下的授权token
14413
14633
  authToken?: string;
@@ -23122,7 +23342,7 @@ export default class Client {
23122
23342
  req_msg_id: AntchainUtil.getNonce(),
23123
23343
  access_key: this._accessKeyId,
23124
23344
  base_sdk_version: "TeaSDK-2.0",
23125
- sdk_version: "1.24.0",
23345
+ sdk_version: "1.24.2",
23126
23346
  _prod_code: "RISKPLUS",
23127
23347
  _prod_channel: "undefined",
23128
23348
  };
@@ -23170,6 +23390,44 @@ export default class Client {
23170
23390
  throw $tea.newUnretryableError(_lastRequest);
23171
23391
  }
23172
23392
 
23393
+ /**
23394
+ * Description: 支付成功、退款成功、续费扣款、超时关单、签约、解约,渠道方回调结果使用
23395
+ * Summary: 权益流量业务支付签约相关通知
23396
+ */
23397
+ async receiveBenefithubRiskPay(request: ReceiveBenefithubRiskPayRequest): Promise<ReceiveBenefithubRiskPayResponse> {
23398
+ let runtime = new $Util.RuntimeOptions({ });
23399
+ let headers : {[key: string ]: string} = { };
23400
+ return await this.receiveBenefithubRiskPayEx(request, headers, runtime);
23401
+ }
23402
+
23403
+ /**
23404
+ * Description: 支付成功、退款成功、续费扣款、超时关单、签约、解约,渠道方回调结果使用
23405
+ * Summary: 权益流量业务支付签约相关通知
23406
+ */
23407
+ async receiveBenefithubRiskPayEx(request: ReceiveBenefithubRiskPayRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReceiveBenefithubRiskPayResponse> {
23408
+ Util.validateModel(request);
23409
+ return $tea.cast<ReceiveBenefithubRiskPayResponse>(await this.doRequest("1.0", "riskplus.benefithub.risk.pay.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveBenefithubRiskPayResponse({}));
23410
+ }
23411
+
23412
+ /**
23413
+ * Description: 渠道、平台方,联合登陆推送登陆通知信息
23414
+ * Summary: 渠道/平台方推送的用户登陆信息
23415
+ */
23416
+ async notifyBenefithubRiskLogin(request: NotifyBenefithubRiskLoginRequest): Promise<NotifyBenefithubRiskLoginResponse> {
23417
+ let runtime = new $Util.RuntimeOptions({ });
23418
+ let headers : {[key: string ]: string} = { };
23419
+ return await this.notifyBenefithubRiskLoginEx(request, headers, runtime);
23420
+ }
23421
+
23422
+ /**
23423
+ * Description: 渠道、平台方,联合登陆推送登陆通知信息
23424
+ * Summary: 渠道/平台方推送的用户登陆信息
23425
+ */
23426
+ async notifyBenefithubRiskLoginEx(request: NotifyBenefithubRiskLoginRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<NotifyBenefithubRiskLoginResponse> {
23427
+ Util.validateModel(request);
23428
+ return $tea.cast<NotifyBenefithubRiskLoginResponse>(await this.doRequest("1.0", "riskplus.benefithub.risk.login.notify", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new NotifyBenefithubRiskLoginResponse({}));
23429
+ }
23430
+
23173
23431
  /**
23174
23432
  * Description: 信护盾产品批量查询
23175
23433
  * Summary: 信护盾产品批量查询
@@ -25288,6 +25546,47 @@ export default class Client {
25288
25546
  return $tea.cast<BatchqueryQmpRtMixedmarketingResponse>(await this.doRequest("1.0", "riskplus.qmp.rt.mixedmarketing.batchquery", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new BatchqueryQmpRtMixedmarketingResponse({}));
25289
25547
  }
25290
25548
 
25549
+ /**
25550
+ * Description: qmp离线托管文件导入
25551
+ * Summary: qmp离线托管文件导入
25552
+ */
25553
+ async uploadQmpOfflinehostplan(request: UploadQmpOfflinehostplanRequest): Promise<UploadQmpOfflinehostplanResponse> {
25554
+ let runtime = new $Util.RuntimeOptions({ });
25555
+ let headers : {[key: string ]: string} = { };
25556
+ return await this.uploadQmpOfflinehostplanEx(request, headers, runtime);
25557
+ }
25558
+
25559
+ /**
25560
+ * Description: qmp离线托管文件导入
25561
+ * Summary: qmp离线托管文件导入
25562
+ */
25563
+ async uploadQmpOfflinehostplanEx(request: UploadQmpOfflinehostplanRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UploadQmpOfflinehostplanResponse> {
25564
+ if (!Util.isUnset(request.fileObject)) {
25565
+ let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
25566
+ authToken: request.authToken,
25567
+ apiCode: "riskplus.qmp.offlinehostplan.upload",
25568
+ fileName: request.fileObjectName,
25569
+ });
25570
+ let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
25571
+ if (!AntchainUtil.isSuccess(uploadResp.resultCode, "ok")) {
25572
+ let uploadQmpOfflinehostplanResponse = new UploadQmpOfflinehostplanResponse({
25573
+ reqMsgId: uploadResp.reqMsgId,
25574
+ resultCode: uploadResp.resultCode,
25575
+ resultMsg: uploadResp.resultMsg,
25576
+ });
25577
+ return uploadQmpOfflinehostplanResponse;
25578
+ }
25579
+
25580
+ let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
25581
+ await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
25582
+ request.fileId = uploadResp.fileId;
25583
+ request.fileObject = null;
25584
+ }
25585
+
25586
+ Util.validateModel(request);
25587
+ return $tea.cast<UploadQmpOfflinehostplanResponse>(await this.doRequest("1.0", "riskplus.qmp.offlinehostplan.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadQmpOfflinehostplanResponse({}));
25588
+ }
25589
+
25291
25590
  /**
25292
25591
  * Description: 企管盾票税交接授权信息表的同步
25293
25592
  * Summary: 企管盾票税交接授权信息表的同步