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": "0937672a-e473-44c9-a05a-01f7892d8570",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
},
{
"PassengerId": "0937672a-e473-44c9-a05a-01f7892d8570",
"TicketNumber": "sample string 2",
"Posted": true,
"Remarks": "sample string 4"
}
],
"OTotalPrices": [
{
"PassengerId": "c8145723-853c-4760-83d0-5ca77024d247",
"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": "c8145723-853c-4760-83d0-5ca77024d247",
"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": "f082ecb3-7888-44be-b85d-37d9f9c77d05",
"Name": "sample string 2",
"Birthday": "2025-11-01T21:46:48.4807893+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"
}