using GuangFu.StringTracing.Common; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace GuangFu.StringTracing.Models { #region 订单相关响应模型 /// /// 分贝通订单列表响应 /// public class FbtOrderListResponse { public string trace_id { get; set; } public int code { get; set; } public string msg { get; set; } public FbtOrderListData data { get; set; } public string request_id { get; set; } } public class FbtOrderListData { public List orders { get; set; } } /// /// 分贝通订单基础信息 /// public class FbtOrder { public string id { get; set; } public string ticket_id { get; set; } public int state { get; set; } public bool international_air { get; set; } public int? train_status { get; set; } public int? hotel_type { get; set; } public FbtTrip trip { get; set; } } /// /// 行程信息 /// public class FbtTrip { public string start_city_id { get; set; } public string end_city_id { get; set; } public string start_time { get; set; } } /// /// 机票订单详情响应 /// public class FbtAirOrderDetailResponse { public int code { get; set; } public FbtAirOrderDetailData data { get; set; } } public class FbtAirOrderDetailData { public FbtPrice price { get; set; } } /// /// 酒店订单详情响应 /// public class FbtHotelOrderDetailResponse { public int code { get; set; } public FbtHotelOrderDetailData data { get; set; } } public class FbtHotelOrderDetailData { public FbtPrice price { get; set; } } /// /// 火车订单详情响应 /// public class FbtTrainOrderDetailResponse { public int code { get; set; } public FbtTrainOrderDetailData data { get; set; } } public class FbtTrainOrderDetailData { public FbtTrainPrice price { get; set; } } /// /// 用车订单详情响应 /// public class FbtTaxiOrderDetailResponse { public int code { get; set; } public FbtTaxiOrderDetailData data { get; set; } } public class FbtTaxiOrderDetailData { public FbtPrice price { get; set; } } /// /// 价格信息(机票、酒店、用车) /// public class FbtPrice { public string corporate_surplus { get; set; } } /// /// 火车价格信息 /// public class FbtTrainPrice { public string amount_company { get; set; } public string red_envelope { get; set; } } /// /// API响应包装类 /// public class FbtOrderAmountResponse { public bool Success { get; set; } public string Message { get; set; } public decimal TotalAmount { get; set; } public Dictionary AmountByType { get; set; } public FbtOrderAmountResponse() { AmountByType = new Dictionary(); } } /// /// 分贝通变更申请单审批状态请求根对象 /// public class FbtApplyStatusUpdateRequest { [JsonProperty("employee_id_info")] public FbtEmployeeIdInfo employee_id_info { get; set; } [JsonProperty("apply_id_info")] public FbtApplyIdInfo apply_id_info { get; set; } [JsonProperty("apply_category")] public string apply_category { get; set; } [JsonProperty("available_state")] public string available_state { get; set; } } /// /// 分贝通变更申请单审批状态响应根对象 /// public class FbtApplyStatusUpdateResponse { [JsonProperty("request_id")] public string request_id { get; set; } [JsonProperty("trace_id")] public string trace_id { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("msg")] public string msg { get; set; } } /// /// 分贝通员工ID信息 /// public class FbtEmployeeIdInfo { [JsonProperty("id")] public string id { get; set; } [JsonProperty("id_type")] public string id_type { get; set; } } /// /// 分贝通申请单 ID 信息 /// public class FbtApplyIdInfo { [JsonProperty("id")] public string id { get; set; } [JsonProperty("id_type")] public string id_type { get; set; } } /// /// 分贝通创建自定义差旅申请单请求根对象 /// public class FbtApplyCreateRequest { [JsonProperty("apply")] public FbtApply Apply { get; set; } } /// /// 分贝通申请单对象 /// public class FbtApply { [JsonProperty("form_id")] public string form_id { get; set; } [JsonProperty("third_id")] public string third_id { get; set; } [JsonProperty("third_proposer_id")] public string third_proposer_id { get; set; } [JsonProperty("third_proposer_id_type")] public int? third_proposer_id_type { get; set; } [JsonProperty("reason")] public string reason { get; set; } [JsonProperty("remark")] public string remark { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("data_title")] public string data_title { get; set; } [JsonProperty("users")] public List users { get; set; } [JsonProperty("trip_time")] public FbtTripTime trip_time { get; set; } [JsonProperty("cost_attributions")] public List cost_attributions { get; set; } [JsonProperty("airs")] public List airs { get; set; } [JsonProperty("hotels")] public List hotels { get; set; } [JsonProperty("trains")] public List trains { get; set; } [JsonProperty("cars")] public List cars { get; set; } [JsonProperty("reimbursement")] public List reimbursement { get; set; } [JsonProperty("allowance_mileage")] public List allowance_mileage { get; set; } [JsonProperty("dinners")] public List dinners { get; set; } [JsonProperty("takeaways")] public List takeaways { get; set; } [JsonProperty("multi_trips")] public List multi_trips { get; set; } [JsonProperty("attachments")] public List attachments { get; set; } [JsonProperty("base_controls")] public List base_controls { get; set; } } /// /// 出行人信息 /// public class FbtUser { [JsonProperty("name")] public string name { get; set; } [JsonProperty("number")] public string number { get; set; } } /// /// 出差时间 /// public class FbtTripTime { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("duration")] public string duration { get; set; } } /// /// 费用归属 /// public class FbtCostAttribution { [JsonProperty("type")] public int type { get; set; } [JsonProperty("details")] public List details { get; set; } } /// /// 费用归属明细 /// public class FbtCostAttributionDetail { [JsonProperty("third_id")] public string third_id { get; set; } } /// /// 机票行程 /// public class FbtAir { [JsonProperty("type")] public int type { get; set; } [JsonProperty("trip_type")] public int trip_type { get; set; } [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("back_start_time")] public string back_start_time { get; set; } [JsonProperty("back_end_time")] public string back_end_time { get; set; } [JsonProperty("start_city_id")] public string start_city_id { get; set; } [JsonProperty("end_city_id")] public string end_city_id { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("trip_third_id")] public string trip_third_id { get; set; } } /// /// 酒店行程 /// public class FbtHotel { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("city_id")] public string city_id { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("trip_third_id")] public string trip_third_id { get; set; } } /// /// 火车行程 /// public class FbtTrain { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("start_city_id")] public string start_city_id { get; set; } [JsonProperty("end_city_id")] public string end_city_id { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("trip_third_id")] public string trip_third_id { get; set; } } /// /// 用车行程 /// public class FbtCar { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("city_ids")] public List city_ids { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("trip_third_id")] public string trip_third_id { get; set; } } /// /// 报销明细(暂未使用) /// public class FbtReimbursement { [JsonProperty("amount")] public string amount { get; set; } } /// /// 补助里程(暂未使用) /// public class FbtAllowanceMileage { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("amount")] public string amount { get; set; } } /// /// 用餐(暂未使用) /// public class FbtDinner { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("during_start_time")] public string during_start_time { get; set; } [JsonProperty("during_end_time")] public string during_end_time { get; set; } [JsonProperty("city_id")] public string city_id { get; set; } [JsonProperty("amount")] public string amount { get; set; } } /// /// 外卖(暂未使用) /// public class FbtTakeaway { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("during_start_time")] public string during_start_time { get; set; } [JsonProperty("during_end_time")] public string during_end_time { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("user_city_code")] public string user_city_code { get; set; } [JsonProperty("user_address_id")] public string user_address_id { get; set; } [JsonProperty("user_address_name")] public string user_address_name { get; set; } [JsonProperty("user_address_lat")] public string user_address_lat { get; set; } [JsonProperty("user_address_lng")] public string user_address_lng { get; set; } } /// /// 多行程(暂未使用) /// public class FbtMultiTrip { [JsonProperty("start_time")] public string start_time { get; set; } [JsonProperty("end_time")] public string end_time { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("city_ids")] public List city_ids { get; set; } [JsonProperty("types")] public List types { get; set; } } /// /// 附件(暂未使用) /// public class FbtAttachment { [JsonProperty("id")] public string id { get; set; } [JsonProperty("urls")] public List urls { get; set; } } #endregion }