UNPKG

qweb-client

Version:

qweb client.

1,588 lines (1,587 loc) 55.4 kB
{ "info": { "title": "task-提交报价", "author": "foam", "description": "返回报价结果概况", "auth": true }, "request": { "type": "object", "properties": { "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" ] } ] }, "quoteList": { "type": "array", "description": "投保方案列表,展平成1D数组", "items": { "type": "object", "properties": { "companyCode": { "enum": [ "PINGAN", "TAIBAO", "TAIPING", "RENBAO" ], "description": "保险公司代码" }, "plan": { "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": { "enum": [ "passenger" ] } } }, "then": { "required": [ "name", "amount", "deductible" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "glass" ] } } }, "then": { "required": [ "name", "amount" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "combustion" ] } } }, "then": { "required": [ "name", "amount", "deductible" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "thirdNotFound" ] } } }, "then": { "required": [ "name", "amount" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "specifyFactory" ] } } }, "then": { "required": [ "name", "amount", "rate" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "soaked" ] } } }, "then": { "required": [ "name", "amount", "deductible" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "scratch" ] } } }, "then": { "required": [ "name", "amount", "deductible" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "goodsOnVehicle" ] } } }, "then": { "required": [ "name", "amount", "deductible" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "mentalDistress" ] } } }, "then": { "required": [ "name", "amount", "deductible" ] }, "continue": false }, { "if": { "properties": { "name": { "enum": [ "newEquipment" ] } } }, "then": { "required": [ "name", "amount", "deductible", "deviceList" ] }, "continue": false }, { "if": { "properties": {