qweb-client
Version:
qweb client.
1,456 lines • 103 kB
JSON
{
"info": {
"title": "task-获取报价详情",
"author": "skip",
"description": "",
"auth": true
},
"request": {
"type": "string",
"pattern": "^[A-Za-z0-9]{32}$",
"description": "任务号"
},
"response": {
"type": "object",
"description": "任务详情",
"properties": {
"detail": {
"type": "object",
"description": "任务信息",
"properties": {
"status": {
"enum": [
0,
100,
200,
300
],
"description": "任务状态"
},
"personnelId": {
"type": "string",
"pattern": "^[A-Za-z0-9]{32}$",
"description": "出单员ID"
},
"organizationId": {
"type": "string",
"pattern": "^[A-Za-z0-9]{32}$",
"description": "机构ID"
},
"cityCode": {
"type": "string",
"pattern": "^[1-9][0-9]([0-9][1-9]|[1-9][0-9])[0]{2}$",
"description": "城市代码,eg:110100"
},
"vehicle": {
"type": "object",
"description": "车辆信息",
"properties": {
"plateNo": {
"type": "string",
"pattern": "^.{7,8}$",
"description": "车辆车牌号码"
},
"vin": {
"type": "string",
"pattern": "^[A-Z0-9]{17}$",
"description": "车辆VIN(车架号)"
},
"engineNo": {
"type": "string",
"description": "车辆发动机号"
},
"registerDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "形如XXXX-XX-XX的日期字符串,eg: 2017-05-18"
},
"transferredDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "形如XXXX-XX-XX的日期字符串,eg: 2017-05-18"
},
"usageType": {
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"description": "车辆使用性质"
},
"model": {
"type": "object",
"description": "车辆模型",
"properties": {
"modelName": {
"type": "string",
"description": "车辆品牌型号"
},
"modelCode": {
"type": "string",
"pattern": "^[A-Z0-9]{10}$",
"description": "车辆精友代码,eg: FTABND0039"
},
"rbCode": {
"type": "string",
"pattern": "^[A-Z0-9]{10}$",
"description": "车辆人保代码,eg: JHD2246JHQ"
},
"hyCode": {
"type": "string",
"pattern": "^[A-Z0-9]{12}$",
"description": "车辆行业代码,eg: BZTKZAUD0023"
},
"brandName": {
"type": "string",
"description": "品牌名"
},
"marketPrice": {
"type": "integer",
"description": "购置价"
},
"hyPrice": {
"type": "integer",
"description": "实际行业购置价"
},
"seat": {
"type": "integer",
"description": "座位数"
},
"exhaustScale": {
"type": "number",
"description": "排量"
},
"year": {
"type": "integer",
"description": "上市年份"
},
"weight": {
"type": "number",
"description": "车的重量"
},
"loadCapacity": {
"type": "number",
"description": "载重"
},
"productArea": {
"type": "number",
"description": "产地"
},
"vehicleType": {
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
20,
21,
22,
23
],
"description": "车辆类型"
},
"fuelType": {
"enum": [
1,
2,
3,
4,
5
],
"description": "车辆燃油类型"
},
"remark": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"modelName",
"modelCode",
"rbCode",
"hyCode",
"brandName",
"marketPrice",
"hyPrice",
"seat",
"exhaustScale",
"year",
"weight",
"loadCapacity",
"vehicleType",
"fuelType",
"remark",
"productArea"
]
}
},
"additionalProperties": false,
"required": [
"plateNo",
"vin",
"engineNo",
"registerDate",
"usageType",
"model"
]
},
"owner": {
"description": "车主",
"anyOf": [
{
"type": "object",
"description": "关联信息-个人",
"properties": {
"type": {
"enum": [
1
]
},
"name": {
"type": "string"
},
"birthday": {
"type": "string"
},
"gender": {
"enum": [
1,
2
],
"description": "性别"
},
"certificate": {
"type": "object",
"switch": [
{
"if": {
"properties": {
"type": {
"enum": [
1
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
1
]
},
"id": {
"type": "string",
"pattern": "^\\d{17}\\d|[X]$",
"description": "身份证,eg:440305199901012222"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
2
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
2
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "护照"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
3
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
3
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "军官证"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
4
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
4
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "台胞证"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
5
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
5
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "其他个人证件"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"then": false
}
]
}
},
"additionalProperties": false,
"required": [
"type",
"name",
"birthday",
"gender",
"certificate"
]
},
{
"type": "object",
"description": "关联信息-机构",
"properties": {
"type": {
"enum": [
2
]
},
"name": {
"type": "string"
},
"certificate": {
"type": "object",
"switch": [
{
"if": {
"properties": {
"type": {
"enum": [
6
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
6
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "组织机构代码"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
7
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
7
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "税务登记号"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
8
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
8
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "营业执照"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
10
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
10
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "其他机构证件"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"then": false
}
]
}
},
"additionalProperties": false,
"required": [
"type",
"name",
"certificate"
]
}
]
},
"applicant": {
"description": "投保人",
"anyOf": [
{
"type": "object",
"description": "关联信息-个人",
"properties": {
"type": {
"enum": [
1
]
},
"name": {
"type": "string"
},
"birthday": {
"type": "string"
},
"gender": {
"enum": [
1,
2
],
"description": "性别"
},
"certificate": {
"type": "object",
"switch": [
{
"if": {
"properties": {
"type": {
"enum": [
1
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
1
]
},
"id": {
"type": "string",
"pattern": "^\\d{17}\\d|[X]$",
"description": "身份证,eg:440305199901012222"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
2
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
2
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "护照"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
3
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
3
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "军官证"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
4
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
4
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "台胞证"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
5
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
5
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "其他个人证件"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"then": false
}
]
}
},
"additionalProperties": false,
"required": [
"type",
"name",
"birthday",
"gender",
"certificate"
]
},
{
"type": "object",
"description": "关联信息-机构",
"properties": {
"type": {
"enum": [
2
]
},
"name": {
"type": "string"
},
"certificate": {
"type": "object",
"switch": [
{
"if": {
"properties": {
"type": {
"enum": [
6
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
6
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "组织机构代码"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
7
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
7
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "税务登记号"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
8
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
8
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "营业执照"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
10
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
10
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "其他机构证件"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"then": false
}
]
}
},
"additionalProperties": false,
"required": [
"type",
"name",
"certificate"
]
}
]
},
"insurant": {
"description": "被保人",
"anyOf": [
{
"type": "object",
"description": "关联信息-个人",
"properties": {
"type": {
"enum": [
1
]
},
"name": {
"type": "string"
},
"birthday": {
"type": "string"
},
"gender": {
"enum": [
1,
2
],
"description": "性别"
},
"certificate": {
"type": "object",
"switch": [
{
"if": {
"properties": {
"type": {
"enum": [
1
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
1
]
},
"id": {
"type": "string",
"pattern": "^\\d{17}\\d|[X]$",
"description": "身份证,eg:440305199901012222"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
2
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
2
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "护照"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
3
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
3
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "军官证"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
4
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
4
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "台胞证"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
5
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
5
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "其他个人证件"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"then": false
}
]
}
},
"additionalProperties": false,
"required": [
"type",
"name",
"birthday",
"gender",
"certificate"
]
},
{
"type": "object",
"description": "关联信息-机构",
"properties": {
"type": {
"enum": [
2
]
},
"name": {
"type": "string"
},
"certificate": {
"type": "object",
"switch": [
{
"if": {
"properties": {
"type": {
"enum": [
6
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
6
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "组织机构代码"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
7
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
7
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "税务登记号"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
8
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
8
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "营业执照"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"if": {
"properties": {
"type": {
"enum": [
10
]
}
}
},
"then": {
"properties": {
"type": {
"enum": [
10
]
},
"id": {
"type": "string",
"pattern": "^.+$",
"description": "其他机构证件"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
]
}
},
{
"then": false
}
]
}
},
"additionalProperties": false,
"required": [
"type",
"name",
"certificate"
]
}
]
},
"contact": {
"type": "object",
"description": "联系信息",
"properties": {
"regionCode": {
"type": "string",
"pattern": "^[1-9][0-9][0-9]{4}$",
"description": "区域代码,eg:110100"
},
"email": {
"type": "string",
"pattern": "^(\\w)+(.\\w+)*@(\\w)+((.\\w+)+)$",
"description": "邮箱地址"
},
"address": {
"type": "string",
"pattern": "^.+$",
"description": "地址"
},
"mobile": {
"type": "string",
"pattern": "^(13[0-9]|14[57]|15[012356789]|17[678]|18[0-9])[0-9]{8}$",
"description": "手机号码,eg: 13800138000"
}
},
"required": [
"regionCode",
"email",
"address",
"mobile"
],
"additionalProperties": false
},
"programs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ukeyId": {
"type": "string",
"pattern": "^[A-Za-z0-9]{32}$",
"description": "本次投保使用的UkeyId"
},
"quotePlan": {
"description": "报价方案",
"type": "object",
"properties": {
"depreciatedPrice": {
"type": "integer",
"description": "折旧价,通过折旧价计算接口计算得到"
},
"negotiatedPrice": {
"type": "integer",
"description": "协商价,默认车损险保额"
},
"biz": {
"type": "object",
"description": "商业险方案",
"properties": {
"startTime": {
"type": "integer",
"description": "开始时间(时间戳)"
},
"endTime": {
"type": "integer",
"description": "结束时间(时间戳)"
},
"itemList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"enum": [
"damage",
"thirdParty",
"theft",
"driver",
"passenger",
"glass",
"combustion",
"thirdNotFound",
"specifyFactory",
"soaked",
"scratch",
"goodsOnVehicle",
"mentalDistress",
"newEquipment",
"duringRepair"
],
"description": "商业险种代号"
},
"amount": {
"type": "integer",
"description": "不计免赔"
},
"deductible": {
"type": "boolean",
"description": "保额:如果为0代表不投保,默认折旧价"
},
"absolutelyDeductibleAmount": {
"type": "integer",
"description": "绝对免赔额,默认0"
},
"rate": {
"type": "integer",
"description": "浮动比例"
},
"deviceList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"amount": {
"type": "integer",
"description": "保额"
},
"name": {
"type": "string",
"description": "设备名"
}
},
"additionalProperties": false,
"required": [
"amount",
"name"
]
}
},
"days": {
"type": "integer"
}
},
"additionalProperties": false,
"switch": [
{
"if": {
"properties": {
"name": {
"enum": [
"damage"
]
}
}
},
"then": {
"required": [
"name",
"amount",
"deductible",
"absolutelyDeductibleAmount"
]
},
"continue": false
},
{
"if": {
"properties": {
"name": {
"enum": [
"thirdParty"
]
}
}
},
"then": {
"required": [
"name",
"amount",
"deductible"
]
},
"continue": false
},
{
"if": {
"properties": {
"name": {
"enum": [
"theft"
]
}
}
},
"then": {
"required": [
"name",
"amount",
"deductible"
]
},
"continue": false
},
{
"if": {
"properties": {
"name": {
"enum": [
"driver"
]
}
}
},
"then": {
"required": [
"name",
"amount",
"deductible"
]
},
"continue": false
},
{
"if": {
"properties": {
"name": {