POST Api/Service/Order/AddIntactOPassenger
增加订单乘客完整项
Request Information
URI Parameters
None.
Body Parameters
乘客内容
SpeedPower.Utility.Models.Project.Orders.Service.IntactOPassengerModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TicketNumbers |
乘客票号列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddTicketNumberModel |
None. |
| OTotalPrices |
乘客价格列表 |
Collection of SpeedPower.Utility.Models.Project.Orders.Service.AddOTotalPriceModel |
Required |
| OrderId |
父级ID |
globally unique identifier |
None. |
| Name |
乘客姓名 |
string |
Required String length: inclusive between 0 and 128 |
| Birthday |
出生日期(可为空) |
date |
None. |
| CardType |
证件类型 |
SpeedPower.Utility.Models.Service.Eterms.Enums.PassengerCardType |
None. |
| CardNo |
证件号 |
string |
Required String length: inclusive between 0 and 50 |
| SexType |
乘客性别 |
SpeedPower.Utility.Models.Service.Eterms.Enums.PassengerSexType |
None. |
| PassengerType |
乘客类型 |
SpeedPower.Utility.Models.Service.Eterms.Enums.PassengerType |
None. |
| ContactPhone |
联系电话 |
string |
String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"TicketNumbers": [
{
"PassengerId": "d8f28347-b07d-4409-840f-dc881acc3c9b",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "d8f28347-b07d-4409-840f-dc881acc3c9b",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "b0a878b3-8ced-40e1-8b24-edcbd065de0d",
"Sequence": 1,
"SalePrice": 2.1,
"PrintPrice": 3,
"FareTax": 4,
"FuelTax": 5,
"CabinLevel": 0,
"CabinCode": "sample string 6",
"ChannelCabinCode": "sample string 7",
"FixedCabinCode": "sample string 8"
},
{
"PassengerId": "b0a878b3-8ced-40e1-8b24-edcbd065de0d",
"Sequence": 1,
"SalePrice": 2.1,
"PrintPrice": 3,
"FareTax": 4,
"FuelTax": 5,
"CabinLevel": 0,
"CabinCode": "sample string 6",
"ChannelCabinCode": "sample string 7",
"FixedCabinCode": "sample string 8"
}
],
"OrderId": "aaa56129-e075-496f-bd34-7b7d0dae3503",
"Name": "sample string 2",
"Birthday": "2025-12-18T09:47:33.9580137+08:00",
"CardType": 0,
"CardNo": "sample string 3",
"SexType": 0,
"PassengerType": 0,
"ContactPhone": "sample string 4"
}
Response Information
Resource Description
增加订单乘客完整项
SpeedPower.Utility.Models.Helper.ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeed": true,
"Message": "sample string 2"
}