POST Api/Service/Quotation/UpdateQuotation
更新一条政策
Request Information
URI Parameters
None.
Body Parameters
政策模型
SpeedPower.Utility.Models.Project.SQuery.Service.Quotations.UpdateQuotationModelName | Description | Type | Additional information |
---|---|---|---|
ID |
政策ID |
globally unique identifier |
None. |
Status |
政策状态 |
SpeedPower.Utility.Models.Project.SQuery.Enums.QuotationStatusType |
None. |
Extensions |
扩展模型 |
SpeedPower.Utility.Models.Project.SQuery.Service.Quotations.GetExtensionModel |
None. |
SiteCode |
站点代码 |
string |
Required String length: inclusive between 0 and 20 |
Carrier |
航空公司 |
string |
Required String length: inclusive between 0 and 2 |
DepartureAirport |
出发机场 |
string |
Required String length: inclusive between 0 and 3 |
ArrivalAirport |
到达机场 |
string |
Required String length: inclusive between 0 and 3 |
FlightNumbers |
适用航班(*或者FligthNo1,FligthNo2) |
string |
String length: inclusive between 0 and 500 |
CabinCodes |
适用舱位(*或者Cabin1,Cabin2) |
string |
String length: inclusive between 0 and 100 |
CabinNames |
适用舱位名称((*或者name1,name2)) |
string |
String length: inclusive between 0 and 500 |
BeforeDays |
提天售卖天数 |
integer |
None. |
KeepMoney |
留钱(10.99元) |
decimal number |
None. |
ReturnRebate |
返点(5.5返点为5.5个点) |
decimal number |
None. |
AddPrintPrice |
票面加钱值(100元) |
integer |
None. |
AddPrintRebate |
票面加点值(5.5个点) |
decimal number |
None. |
ProfitMoney |
比价范围(15.26元) |
decimal number |
None. |
IssueDate |
售票开始日期 |
date |
None. |
ExpiryDate |
售票结束日期 |
date |
None. |
TravelIssueDate |
旅行有效开始日期 |
date |
None. |
TravelExpiryDate |
旅行有效结束日期 |
date |
None. |
ProviderCodes |
适用数据源代码(CODE1,CODE2) |
string |
String length: inclusive between 0 and 500 |
PurchaseTag |
生单路由标识 |
string |
String length: inclusive between 0 and 20 |
ProductMark |
产品标识 |
string |
String length: inclusive between 0 and 500 |
ExtraSections |
计算扩展项([50(销售价起价)-100(销售价结束价),10(留钱),4.6(反点),100(额外加票面价),5.5(额外票面加点),4.5(比价范围)][100-200,10,4.6,100,5.5,4.5]) |
string |
None. |
Remarks |
政策备注 |
string |
String length: inclusive between 0 and 500 |
Request Formats
application/json, text/json
{ "ID": "18c0db82-ffb8-4bc2-b4b7-f8909a0a273a", "Status": 0, "Extensions": { "ID": "f7c47597-7867-436b-aa69-2f91bcde6064", "ExtraMoney": 2.1, "ExtraRebate": 3.1, "ExtraPrintPrice": 4, "ExtraPrintRebate": 5.1, "ExtraProfitMoney": 6.1 }, "SiteCode": "sample string 2", "Carrier": "sample string 3", "DepartureAirport": "sample string 4", "ArrivalAirport": "sample string 5", "FlightNumbers": "sample string 6", "CabinCodes": "sample string 7", "CabinNames": "sample string 8", "BeforeDays": 9, "KeepMoney": 10.1, "ReturnRebate": 11.1, "AddPrintPrice": 12, "AddPrintRebate": 13.1, "ProfitMoney": 14.1, "IssueDate": "2024-12-24T02:33:52.0434888+08:00", "ExpiryDate": "2024-12-24T02:33:52.0434888+08:00", "TravelIssueDate": "2024-12-24T02:33:52.0434888+08:00", "TravelExpiryDate": "2024-12-24T02:33:52.0434888+08:00", "ProviderCodes": "sample string 19", "PurchaseTag": "sample string 20", "ProductMark": "sample string 21", "ExtraSections": "sample string 22", "Remarks": "sample string 23" }
Response Information
Resource Description
更新一条政策
SpeedPower.Utility.Models.Helper.ResultMessageName | Description | Type | Additional information |
---|---|---|---|
Succeed |
操作是否成功 |
boolean |
None. |
Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
{ "Succeed": true, "Message": "sample string 2" }