# 2005 保险购买服务动态

## content_json 定义

| 参数 | 是否必填 | 类型 | 说明 | 格式要求 |
| -------- | -------- | -------- | -------- | -------- |
| cur_status | 是 | int32 | 当前状态id |  |
| wxa_path_query | 是 | string | 卡片点击跳转路径与query |  |
| product_count | 参考状态要求 | uint32 | 保险产品数量 |  |
| product_list | 参考状态要求 | object | 保险产品信息 |  |
| submit_deadline | 参考状态要求 | uint32 | 完善保单信息截止时间 | 秒级时间戳，展示为MM/DD HH:mm格式 |
| policy_issuance_time | 参考状态要求 | uint32 | 预计出单时间 | 秒级时间戳，展示为MM/DD格式 |
| effective_time | 参考状态要求 | uint32 | 生效时间 | 秒级时间戳，展示为MM/DD HH:mm格式 |

**product_list 定义**

| 参数 | 是否必填 | 类型 | 说明 | 格式要求 |
| -------- | -------- | -------- | -------- | -------- |
| info_list | 是 | array<object> | 保险产品信息 |  |

**info_list 定义**

| 参数 | 是否必填 | 类型 | 说明 | 格式要求 |
| -------- | -------- | -------- | -------- | -------- |
| product_img | 是 | string | 保险产品图片 |  |
| product_name | 是 | string | 保险产品名称 |  |
| product_path_query | 是 | string | 保险产品路径与query |  |
| count | 否 | uint32 | 单品数量，默认为1 |  |
| single_price | 否 | uint32 | 商品单价 | 单位为分 |

## cur_status 传入状态 id 的含义，与不同状态 id 下的字段要求

| id | 激活时是否可为此状态 | 可变更自上一状态* | 状态描述 | 此状态下必填字段 | 此状态下选填字段 | content_json示例 |
| -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| 1 | 是 | 1, 7 | 待完善保单信息 | product_count
product_list
wxa_path_query | submit_deadline | `"{\"cur_status\":1,\"product_count\": 1,\"product_list\":{\"info_list\":[{\"product_img\":\"https://res.wx.qq.com/op_res/DiSd8fVjXuHr5K9U73oRr74fMqnT5r9_GmI3mbfLOn2RpC_aENIPjYPPhPN_YnNKnUhyuAy8yLqNRAlh_JCsWQ\",\"product_name\":\"境外旅游险\",\"product_path_query\":\"pages/index/index\"}]},\"submit_deadline\": 1696867200,\"wxa_path_query\":\"pages/index/index\"}"` |
| 2 | 否 | 1, 2, 7 | 保单完善即将截止 | wxa_path_query | submit_deadline | `"{\"cur_status\":2,\"submit_deadline\": 1696867200,\"wxa_path_query\": \"pages/index/index\"}"` |
| 3 | 是 | 1, 2, 7 | 待出单 | product_count
product_list
wxa_path_query | policy_issuance_time | `"{\"cur_status\":3,\"product_count\":1,\"product_list\":{\"info_list\":[{\"product_img\":\"https://res.wx.qq.com/op_res/DiSd8fVjXuHr5K9U73oRr74fMqnT5r9_GmI3mbfLOn2RpC_aENIPjYPPhPN_YnNKnUhyuAy8yLqNRAlh_JCsWQ\",\"product_name\":\"境外旅游险\",\"product_path_query\":\"pages/index/index\"}]},\"policy_issuance_time\":1696867200,\"wxa_path_query\":\"pages/index/index\"}"` |
| 4 | 否 | 1, 2, 3, 7 | 出单失败 | wxa_path_query |  | `"{\"cur_status\":4,\"wxa_path_query\": \"pages/index/index\"}"` |
| 5 | 否 | 1, 2, 3, 5, 7 | 出单成功，待生效 | wxa_path_query | effective_time | `"{\"cur_status\":5,\"effective_time\":1696867200,\"wxa_path_query\": \"pages/index/index\"}"` |
| 6 | 否 | 5 | 已生效 | wxa_path_query | effective_time | `"{\"cur_status\":6,\"effective_time\":1696867200,\"wxa_path_query\": \"pages/index/index\"}"` |
| 7 | 是 | / | 已支付 | wxa_path_query
product_count
product_list |  | `"{\"cur_status\":7,\"product_count\": 1,\"product_list\":{\"info_list\":[{\"product_img\":\"https://res.wx.qq.com/op_res/DiSd8fVjXuHr5K9U73oRr74fMqnT5r9_GmI3mbfLOn2RpC_aENIPjYPPhPN_YnNKnUhyuAy8yLqNRAlh_JCsWQ\",\"product_name\":\"境外旅游险\",\"product_path_query\":\"pages/index/index\"}]},\"wxa_path_query\":\"pages/index/index\"}"` |

**「可变更自上一状态」说明**

1. 此列中的数字表示当前状态只能由这些状态变更（激活时无此要求）
2. 需要注意的是当前状态变更为当前状态，也要求状态id在此列中：如当前为状态为1，只有当1也在此列中，才允许下一次更新时状态传入1
3. 在此列中不存在的状态id，意为结束态，后续不再可更新服务状态

## ext_json 定义

| 参数 | 是否必填 | 类型 | 说明 | 格式要求 |
| -------- | -------- | -------- | -------- | -------- |
| product_additional_list | 是 | object | 商品附加信息，与product_list排序一一对应 | |

**product_additional_list 定义**

| 参数 | 是否必填 | 类型 | 说明 | 格式要求 |
| -------- | -------- | -------- | -------- | -------- |
| info_list | 是 | array<object> | 保险产品附加信息 |  |

**info_list 定义**

| 参数 | 是否必填 | 类型 | 说明 | 格式要求 |
| -------- | -------- | -------- | -------- | -------- |
| unit_price | 是 | uint32 | 保险产品单价 | 单位为分 |
| number | 是 | uint32 | 保险产品数量 |  |
