一、接口名: productInsuredAttr 去调试
接口含义: 获取指定产品投保页面展示要素规则属性,包含产品投保必填字段名称、字段取值规则属性。
接口地址: https://testapi.xiebao18.com/api/ productInsuredAttr?sign=md5(key+jsonStr)
二、应用场景
三、系统级别输入参数
ProductInsureAttrReq
字段 | 类型 | 必填 | 字段说明 |
---|---|---|---|
transNo | String | Y | 交易流水号 |
partnerId | int | Y | 开发者身份标识 |
subPartnerId | int | N | 开发者子标识,多层级账户使用 |
caseCode | String | Y | 方案代码 |
四、系统响应返回参数
ProductInsureAttrResp
字段 | 类型 | 字段说明 |
---|---|---|
transNo | String | 交易流水号 |
partnerId | int | 开发者身份标识 |
caseCode | String | 方案代码 |
insureAttribute | InsureAttribute | 投保属性信息 |
字段 | 类型 | 字段说明 |
---|---|---|
productName | String | 产品名称 |
state | int | 产品状态 0:待审 1:上架 2:下架 3:停售 4:测试 |
companyName | String | 保险公司名称 |
calculateType | int | 投保属性信息 |
calculateType | int | 一单最少被保人数限制 |
maxPeople | int | 一单最多被保人数限制 |
beneficiaryType | int | 受益方式 1:法定 2:指定 12:法定和指定 |
firstBeneficiaryLimit | int | 第一顺序受益人个数 |
secondBeneficiaryLimit | int | 第二顺序受益人个数 |
observationPeriod | int | 观察期(单位:天) |
periodHesitation | int | 犹豫期(单位:天) |
singleDayLimit | int | 单次出行天数限制(单位:天) |
insureTime | int | 起保时间 1:可选起保日期 2:固定起保日期 3:起保日期为出单日期单次出行天数限制(单位:天) |
insureTimePrecision | int | 保障期限精确度 |
firstDate | int | 可选的投保日期开始时间 0:当日 |
latestDate | int | 可选的投保日期结束时间 0:当日 |
deadline | String | 当日投保截止时间 格式: 24:00 |
nextDayDeadline | String | 次日投保截止时间 格式: 24:00 |
insuranceTime | int | 投保起保时间(单位:小时 |
fixedDateStr | String | 固定起保日期 |
fixedLatestDateDtr | String | 次日投保截止时间 格式: 24:00 |
insureIncludeBirthday | int | 保费计算是否包含生日当天 0:否 1:是 |
insureIncludeBirthday | int | 被保人年龄计算方式 1:起保日期 2:投保日期 |
insureDeclare | String | 投保声明 |
jobGrade | String | 职业等级 以英文逗号“,”分隔 |
destinationSelectOne | int | 目的地只允许用户选择一个国家/地区 0:否 1:是 |
smallLogoImg | String | 保险公司logo小图 |
bigLogoImg | String | 保险公司logo大图 |
healthWebId | int | 健康告知id(PC),如果id值大于0则用户需填写健康告知 |
financialId | int | 财务告知id |
otherId | int | 其他告知id |
isForcePay | int | 是否强制续期缴费 0:不支持续期 1:支持续期但不强制 2:按照续期缴费方式确定是否强制续费 |
forcePayContent | String | 强制续期缴费说明 |
isHzOwner | int | 是否支持在线测试 0:否 1:是 |
attrModules | List<AttributeModule> | 模块信息 |
字段 | 类型 | 字段说明 |
---|---|---|
moduleId | int | 模块id |
name | String | 模块名称 |
remark | String | 模块说明 |
productAttributes | List<ProductAttribute> | 模块属性列表 |
字段 | 类型 | 字段说明 |
---|---|---|
name | String | 属性名称 |
apiName | String | api接口请求参数名 |
type | int | 属性类型 1:输入框 2:单选框3:复选框 4:下拉框 5:日期 6:密码 |
regex | String | 属性校验正则表达式 |
defaultRemind | String | 默认提醒信息 |
errorRemind | String | 出错提醒信息 |
required | int | 是否必填 0:否 1:是 |
attributeValues | List<AttributeValue> | 属性值列表 |
attributeRestricts | List<AttributeRestrict> | 属性约束列表 |
字段 | 类型 | 字段说明 |
---|---|---|
value | String | 属性值名称 |
controlValue | String | 控件值 |
conditions | int | 约束条件 0:大于 1:大于等于 2:小于 3:小于等于 4:不等于 5:等于 6:包含 7:不包含 8:提示 9:隐藏 10:正则 |
regex | String | 属性值校验正则表达式 |
remind | String | 正则约束条件验证失败提示 |
attributeType | int | 所限制属性的控件类型 |
unit | int | 单位 0:无 1:份 2:万元 3:元 4:0元 5:00元 6:000元 7:岁 8:年 9:月 10:天 |
attributeRestricts | List<AttributeRestrict> | 属性约束列表 |
字段 | 类型 | 字段说明 |
---|---|---|
name | String | 约束名称 |
conditions | int | 约束条件 0:大于 1:大于等于 2:小于 3:小于等于 4:不等于 5:等于 6:包含 7:不包含 8:提示 9:隐藏 10:正则 |
remind | String | 正则约束条件验证失败提示 |
attributeType | int | 所限制属性的控件类型 |
name | String | 约束值 |
unit | int | 单位 0:无 1:份 2:万元 3:元 4:0元 5:00元 6:000元 7:岁 8:年 9:月 10:天 |
apiName | String | api接口请求参数名 |