POST Api/Service/Order/AddIntactOPassenger

增加订单乘客完整项

Request Information

URI Parameters

None.

Body Parameters

乘客内容

SpeedPower.Utility.Models.Project.Orders.Service.IntactOPassengerModel
NameDescriptionTypeAdditional 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": "99ecc647-82c7-459e-a238-e48c81afb535",
      "TicketNumber": "sample string 2",
      "Posted": true,
      "Remarks": "sample string 4"
    },
    {
      "PassengerId": "99ecc647-82c7-459e-a238-e48c81afb535",
      "TicketNumber": "sample string 2",
      "Posted": true,
      "Remarks": "sample string 4"
    }
  ],
  "OTotalPrices": [
    {
      "PassengerId": "8686d154-07d3-4702-b286-7d72efc64ba1",
      "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": "8686d154-07d3-4702-b286-7d72efc64ba1",
      "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": "6a84c1ba-4c45-4439-9d1d-10156bdb3117",
  "Name": "sample string 2",
  "Birthday": "2024-10-22T16:35:55.8851432+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
NameDescriptionTypeAdditional information
Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeed": true,
  "Message": "sample string 2"
}