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": "07846dd0-aa7a-46d2-8823-062a8c9a02d4",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "07846dd0-aa7a-46d2-8823-062a8c9a02d4",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "0b6eef66-20db-43e9-bfd4-0b365f88ef96",
"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": "0b6eef66-20db-43e9-bfd4-0b365f88ef96",
"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": "73026679-e3cb-457d-ae32-0f5f9b5c80af",
"Name": "sample string 2",
"Birthday": "2026-05-09T19:30:11.1101831+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"
}