biz.orders.cursor.get.order.price
获取订单价格
- 请求路由:
biz.orders.cursor.get.order.price- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "biz.orders.cursor.get.order.price",
"data" : {
"cursorId" : "64dc8f39b31ef44705677e0d",
"merchantId" : "HTL10017",
"surcharges" : {
"夜间服务费" : {
"name" : "夜间服务费",
"RMB" : 100,
"HKD" : 1379,
"MOP" : 1388,
"details" : [
{
"RMB" : 460,
"HKD" : 462,
"MOP" : 464,
"time" : "22:01-00:00",
"duration" : 2,
"unitPrice" : {
"RMB" : 230,
"HKD" : 231,
"MOP" : 232
}
},
{
"RMB" : 910,
"HKD" : 917,
"MOP" : 924,
"time" : "00:01-07:00",
"duration" : 7,
"unitPrice" : {
"RMB" : 130,
"HKD" : 131,
"MOP" : 132
}
}
]
},
"_8座车附加费" : {
"name" : "_8座车附加费",
"RMB" : 100,
"HKD" : 121,
"MOP" : 122,
"selectable" : true,
"title" : "要求8座车"
},
"接机费" : {
"name" : "接机费",
"RMB" : 100,
"selectable" : true,
"title" : "要求举牌接机"
},
"埃尔法30系附加费" : {
"name" : "埃尔法30系附加费",
"RMB" : 110,
"selectable" : true,
"title" : "要求埃尔法30系"
},
"门童服务" : {
"name" : "门童服务",
"RMB" : 200,
"selectable" : true,
"checked" : true
},
"测试服务" : {
"name" : "测试服务",
"RMB" : 100
}
}
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
priceType | String | 否 | 价格类型 - 0 直达 - 1 换乘 |
cursorId | String | 否 | 临时订单id |
console | Boolean | 否 | true - 控制台 false - 非控制台 |
minHours | Number | 否 | 租车时间 |
merchantId | String | 否 | 商户id |
pricingScheme | String | 否 | 价格方案 |
fromSelectedOptions | String[] | 否 | 开始承运商选中的附加费选项(直达订单使用这个参数) |
toSelectedOptions | String[] | 否 | 结束承运商选中的附加费选项 |
nonstopCompanyId | String | 否 | 直达线路选中的公司id |
fromCompanyId | String | 否 | 开始线路选中的公司id |
toCompanyId | String | 否 | 结束线路选中的公司id |
partnerId | String | 否 | 合伙人id |
orderType | Number | 否 | 订单类型 1-包车 2-专线 3-巴士 |
currency | String | 否 | 币种 例:RMB |
返回
订单价格
{
"rootPrice" : {
"RMB" : 2301.0,
"HKD" : 2301.0,
"MOP" : 2301.0
},
"totalPrice" : {
"RMB" : 2701.0,
"HKD" : 2701.0,
"MOP" : 2701.0
}
}
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
discountPrice | Number | 折扣价 |
rootPrice | Object | 直达线路基础价 |
totalPrice | Object | 直达线路总价 |
transferLineRootPrice | Object | 换乘线路基础价 |
transferLineTotalPrice | Object | 换乘线路总价 |
surcharges | Object[] | 直达附加费列表 |
transferLineSurcharges | Object[] | 换乘线路附加费列表 |