@antchain/ato 1.15.64 → 1.15.67
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 +94 -0
- package/dist/client.js +144 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +205 -1
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3263,6 +3263,10 @@ export class AgreementTerminateApplyInfo extends $tea.Model {
|
|
|
3263
3263
|
gmtTerminateApply?: string;
|
|
3264
3264
|
// 处理状态
|
|
3265
3265
|
handleStatus?: string;
|
|
3266
|
+
// 商家处理超时时长
|
|
3267
|
+
merchantHandleDuration?: string;
|
|
3268
|
+
// 商家处理超时时长
|
|
3269
|
+
merchantHandleDurationType?: string;
|
|
3266
3270
|
static names(): { [key: string]: string } {
|
|
3267
3271
|
return {
|
|
3268
3272
|
orderId: 'order_id',
|
|
@@ -3270,6 +3274,8 @@ export class AgreementTerminateApplyInfo extends $tea.Model {
|
|
|
3270
3274
|
orderGmtCreate: 'order_gmt_create',
|
|
3271
3275
|
gmtTerminateApply: 'gmt_terminate_apply',
|
|
3272
3276
|
handleStatus: 'handle_status',
|
|
3277
|
+
merchantHandleDuration: 'merchant_handle_duration',
|
|
3278
|
+
merchantHandleDurationType: 'merchant_handle_duration_type',
|
|
3273
3279
|
};
|
|
3274
3280
|
}
|
|
3275
3281
|
|
|
@@ -3280,6 +3286,8 @@ export class AgreementTerminateApplyInfo extends $tea.Model {
|
|
|
3280
3286
|
orderGmtCreate: 'string',
|
|
3281
3287
|
gmtTerminateApply: 'string',
|
|
3282
3288
|
handleStatus: 'string',
|
|
3289
|
+
merchantHandleDuration: 'string',
|
|
3290
|
+
merchantHandleDurationType: 'string',
|
|
3283
3291
|
};
|
|
3284
3292
|
}
|
|
3285
3293
|
|
|
@@ -16073,6 +16081,160 @@ export class OperateInnerAgreementterminatezfbdirectResponse extends $tea.Model
|
|
|
16073
16081
|
}
|
|
16074
16082
|
}
|
|
16075
16083
|
|
|
16084
|
+
export class QueryInnerAgreementterminateconfigRequest extends $tea.Model {
|
|
16085
|
+
// OAuth模式下的授权token
|
|
16086
|
+
authToken?: string;
|
|
16087
|
+
productInstanceId?: string;
|
|
16088
|
+
// 租户ID
|
|
16089
|
+
tenantId: string;
|
|
16090
|
+
static names(): { [key: string]: string } {
|
|
16091
|
+
return {
|
|
16092
|
+
authToken: 'auth_token',
|
|
16093
|
+
productInstanceId: 'product_instance_id',
|
|
16094
|
+
tenantId: 'tenant_id',
|
|
16095
|
+
};
|
|
16096
|
+
}
|
|
16097
|
+
|
|
16098
|
+
static types(): { [key: string]: any } {
|
|
16099
|
+
return {
|
|
16100
|
+
authToken: 'string',
|
|
16101
|
+
productInstanceId: 'string',
|
|
16102
|
+
tenantId: 'string',
|
|
16103
|
+
};
|
|
16104
|
+
}
|
|
16105
|
+
|
|
16106
|
+
constructor(map?: { [key: string]: any }) {
|
|
16107
|
+
super(map);
|
|
16108
|
+
}
|
|
16109
|
+
}
|
|
16110
|
+
|
|
16111
|
+
export class QueryInnerAgreementterminateconfigResponse extends $tea.Model {
|
|
16112
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
16113
|
+
reqMsgId?: string;
|
|
16114
|
+
// 结果码,一般OK表示调用成功
|
|
16115
|
+
resultCode?: string;
|
|
16116
|
+
// 异常信息的文本描述
|
|
16117
|
+
resultMsg?: string;
|
|
16118
|
+
// 商家处理超时时长-HOUR类型时长
|
|
16119
|
+
timeoutHour?: string;
|
|
16120
|
+
// 商家处理超时时长-DAY类型时长
|
|
16121
|
+
timeoutDay?: string;
|
|
16122
|
+
static names(): { [key: string]: string } {
|
|
16123
|
+
return {
|
|
16124
|
+
reqMsgId: 'req_msg_id',
|
|
16125
|
+
resultCode: 'result_code',
|
|
16126
|
+
resultMsg: 'result_msg',
|
|
16127
|
+
timeoutHour: 'timeout_hour',
|
|
16128
|
+
timeoutDay: 'timeout_day',
|
|
16129
|
+
};
|
|
16130
|
+
}
|
|
16131
|
+
|
|
16132
|
+
static types(): { [key: string]: any } {
|
|
16133
|
+
return {
|
|
16134
|
+
reqMsgId: 'string',
|
|
16135
|
+
resultCode: 'string',
|
|
16136
|
+
resultMsg: 'string',
|
|
16137
|
+
timeoutHour: 'string',
|
|
16138
|
+
timeoutDay: 'string',
|
|
16139
|
+
};
|
|
16140
|
+
}
|
|
16141
|
+
|
|
16142
|
+
constructor(map?: { [key: string]: any }) {
|
|
16143
|
+
super(map);
|
|
16144
|
+
}
|
|
16145
|
+
}
|
|
16146
|
+
|
|
16147
|
+
export class CountInnerAgreementterminateRequest extends $tea.Model {
|
|
16148
|
+
// OAuth模式下的授权token
|
|
16149
|
+
authToken?: string;
|
|
16150
|
+
productInstanceId?: string;
|
|
16151
|
+
// 租户ID
|
|
16152
|
+
tenantId: string;
|
|
16153
|
+
// 商户超时类型
|
|
16154
|
+
merchantHandleDurationType?: string;
|
|
16155
|
+
// 订单ID
|
|
16156
|
+
orderId?: string;
|
|
16157
|
+
// terminateApplyId
|
|
16158
|
+
terminateApplyId?: string;
|
|
16159
|
+
// 解约申请开始时间
|
|
16160
|
+
gmtTerminateApplyStartTime?: string;
|
|
16161
|
+
// 解约申请结束时间
|
|
16162
|
+
gmtTerminateApplyEndTime?: string;
|
|
16163
|
+
static names(): { [key: string]: string } {
|
|
16164
|
+
return {
|
|
16165
|
+
authToken: 'auth_token',
|
|
16166
|
+
productInstanceId: 'product_instance_id',
|
|
16167
|
+
tenantId: 'tenant_id',
|
|
16168
|
+
merchantHandleDurationType: 'merchant_handle_duration_type',
|
|
16169
|
+
orderId: 'order_id',
|
|
16170
|
+
terminateApplyId: 'terminate_apply_id',
|
|
16171
|
+
gmtTerminateApplyStartTime: 'gmt_terminate_apply_start_time',
|
|
16172
|
+
gmtTerminateApplyEndTime: 'gmt_terminate_apply_end_time',
|
|
16173
|
+
};
|
|
16174
|
+
}
|
|
16175
|
+
|
|
16176
|
+
static types(): { [key: string]: any } {
|
|
16177
|
+
return {
|
|
16178
|
+
authToken: 'string',
|
|
16179
|
+
productInstanceId: 'string',
|
|
16180
|
+
tenantId: 'string',
|
|
16181
|
+
merchantHandleDurationType: 'string',
|
|
16182
|
+
orderId: 'string',
|
|
16183
|
+
terminateApplyId: 'string',
|
|
16184
|
+
gmtTerminateApplyStartTime: 'string',
|
|
16185
|
+
gmtTerminateApplyEndTime: 'string',
|
|
16186
|
+
};
|
|
16187
|
+
}
|
|
16188
|
+
|
|
16189
|
+
constructor(map?: { [key: string]: any }) {
|
|
16190
|
+
super(map);
|
|
16191
|
+
}
|
|
16192
|
+
}
|
|
16193
|
+
|
|
16194
|
+
export class CountInnerAgreementterminateResponse extends $tea.Model {
|
|
16195
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
16196
|
+
reqMsgId?: string;
|
|
16197
|
+
// 结果码,一般OK表示调用成功
|
|
16198
|
+
resultCode?: string;
|
|
16199
|
+
// 异常信息的文本描述
|
|
16200
|
+
resultMsg?: string;
|
|
16201
|
+
// 待处理-数量
|
|
16202
|
+
unHandleStatusNum?: number;
|
|
16203
|
+
// 处理中-数量
|
|
16204
|
+
handingStatusNum?: number;
|
|
16205
|
+
// 已处理-数量
|
|
16206
|
+
finishedStatusNum?: number;
|
|
16207
|
+
// 已超时-数量
|
|
16208
|
+
timeoutStatusNum?: number;
|
|
16209
|
+
static names(): { [key: string]: string } {
|
|
16210
|
+
return {
|
|
16211
|
+
reqMsgId: 'req_msg_id',
|
|
16212
|
+
resultCode: 'result_code',
|
|
16213
|
+
resultMsg: 'result_msg',
|
|
16214
|
+
unHandleStatusNum: 'un_handle_status_num',
|
|
16215
|
+
handingStatusNum: 'handing_status_num',
|
|
16216
|
+
finishedStatusNum: 'finished_status_num',
|
|
16217
|
+
timeoutStatusNum: 'timeout_status_num',
|
|
16218
|
+
};
|
|
16219
|
+
}
|
|
16220
|
+
|
|
16221
|
+
static types(): { [key: string]: any } {
|
|
16222
|
+
return {
|
|
16223
|
+
reqMsgId: 'string',
|
|
16224
|
+
resultCode: 'string',
|
|
16225
|
+
resultMsg: 'string',
|
|
16226
|
+
unHandleStatusNum: 'number',
|
|
16227
|
+
handingStatusNum: 'number',
|
|
16228
|
+
finishedStatusNum: 'number',
|
|
16229
|
+
timeoutStatusNum: 'number',
|
|
16230
|
+
};
|
|
16231
|
+
}
|
|
16232
|
+
|
|
16233
|
+
constructor(map?: { [key: string]: any }) {
|
|
16234
|
+
super(map);
|
|
16235
|
+
}
|
|
16236
|
+
}
|
|
16237
|
+
|
|
16076
16238
|
export class CreateInsureRequest extends $tea.Model {
|
|
16077
16239
|
// OAuth模式下的授权token
|
|
16078
16240
|
authToken?: string;
|
|
@@ -16948,6 +17110,8 @@ export class QueryRiskRequest extends $tea.Model {
|
|
|
16948
17110
|
industry?: string;
|
|
16949
17111
|
// 枚举值:ZOLOZ_V2、ZOLOZ_V3、GENERAL_INDUSTRY、APPLET_RISK、REJECT_RISK
|
|
16950
17112
|
modelVersion?: string;
|
|
17113
|
+
// 商家传入的订单ID,商家侧唯一
|
|
17114
|
+
orderId?: string;
|
|
16951
17115
|
static names(): { [key: string]: string } {
|
|
16952
17116
|
return {
|
|
16953
17117
|
authToken: 'auth_token',
|
|
@@ -16964,6 +17128,7 @@ export class QueryRiskRequest extends $tea.Model {
|
|
|
16964
17128
|
deliveryDetail: 'delivery_detail',
|
|
16965
17129
|
industry: 'industry',
|
|
16966
17130
|
modelVersion: 'model_version',
|
|
17131
|
+
orderId: 'order_id',
|
|
16967
17132
|
};
|
|
16968
17133
|
}
|
|
16969
17134
|
|
|
@@ -16983,6 +17148,7 @@ export class QueryRiskRequest extends $tea.Model {
|
|
|
16983
17148
|
deliveryDetail: DeliveryDetail,
|
|
16984
17149
|
industry: 'string',
|
|
16985
17150
|
modelVersion: 'string',
|
|
17151
|
+
orderId: 'string',
|
|
16986
17152
|
};
|
|
16987
17153
|
}
|
|
16988
17154
|
|
|
@@ -21116,7 +21282,7 @@ export default class Client {
|
|
|
21116
21282
|
req_msg_id: AntchainUtil.getNonce(),
|
|
21117
21283
|
access_key: this._accessKeyId,
|
|
21118
21284
|
base_sdk_version: "TeaSDK-2.0",
|
|
21119
|
-
sdk_version: "1.15.
|
|
21285
|
+
sdk_version: "1.15.67",
|
|
21120
21286
|
_prod_code: "ATO",
|
|
21121
21287
|
_prod_channel: "undefined",
|
|
21122
21288
|
};
|
|
@@ -24371,6 +24537,44 @@ export default class Client {
|
|
|
24371
24537
|
return $tea.cast<OperateInnerAgreementterminatezfbdirectResponse>(await this.doRequest("1.0", "antchain.ato.inner.agreementterminatezfbdirect.operate", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new OperateInnerAgreementterminatezfbdirectResponse({}));
|
|
24372
24538
|
}
|
|
24373
24539
|
|
|
24540
|
+
/**
|
|
24541
|
+
* Description: 解约申请配置详情
|
|
24542
|
+
* Summary: 解约申请配置详情
|
|
24543
|
+
*/
|
|
24544
|
+
async queryInnerAgreementterminateconfig(request: QueryInnerAgreementterminateconfigRequest): Promise<QueryInnerAgreementterminateconfigResponse> {
|
|
24545
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
24546
|
+
let headers : {[key: string ]: string} = { };
|
|
24547
|
+
return await this.queryInnerAgreementterminateconfigEx(request, headers, runtime);
|
|
24548
|
+
}
|
|
24549
|
+
|
|
24550
|
+
/**
|
|
24551
|
+
* Description: 解约申请配置详情
|
|
24552
|
+
* Summary: 解约申请配置详情
|
|
24553
|
+
*/
|
|
24554
|
+
async queryInnerAgreementterminateconfigEx(request: QueryInnerAgreementterminateconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryInnerAgreementterminateconfigResponse> {
|
|
24555
|
+
Util.validateModel(request);
|
|
24556
|
+
return $tea.cast<QueryInnerAgreementterminateconfigResponse>(await this.doRequest("1.0", "antchain.ato.inner.agreementterminateconfig.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerAgreementterminateconfigResponse({}));
|
|
24557
|
+
}
|
|
24558
|
+
|
|
24559
|
+
/**
|
|
24560
|
+
* Description: 解约申请商户各状态统计
|
|
24561
|
+
* Summary: 解约申请商户各状态统计
|
|
24562
|
+
*/
|
|
24563
|
+
async countInnerAgreementterminate(request: CountInnerAgreementterminateRequest): Promise<CountInnerAgreementterminateResponse> {
|
|
24564
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
24565
|
+
let headers : {[key: string ]: string} = { };
|
|
24566
|
+
return await this.countInnerAgreementterminateEx(request, headers, runtime);
|
|
24567
|
+
}
|
|
24568
|
+
|
|
24569
|
+
/**
|
|
24570
|
+
* Description: 解约申请商户各状态统计
|
|
24571
|
+
* Summary: 解约申请商户各状态统计
|
|
24572
|
+
*/
|
|
24573
|
+
async countInnerAgreementterminateEx(request: CountInnerAgreementterminateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CountInnerAgreementterminateResponse> {
|
|
24574
|
+
Util.validateModel(request);
|
|
24575
|
+
return $tea.cast<CountInnerAgreementterminateResponse>(await this.doRequest("1.0", "antchain.ato.inner.agreementterminate.count", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CountInnerAgreementterminateResponse({}));
|
|
24576
|
+
}
|
|
24577
|
+
|
|
24374
24578
|
/**
|
|
24375
24579
|
* Description: 一键投保
|
|
24376
24580
|
* Summary: 投保
|