using System.ComponentModel.DataAnnotations;
namespace TrackCenter.Application.Dtos.ProvideServices.V2;
public class UpsertSmallBagInput
{
///
/// 客户名称,或者code,必填
///
[Required]
public string Client { get; set; }
///
/// 客户单号,必填
///
[Required]
public string OrderNo { get; set; }
///
/// 尾程单号,必填
///
[Required]
public string TrackNo { get; set; }
///
/// 其他单号
///
public string OtherNo { get; set; }
///
/// 渠道名称,或者code
///
public string Channel { get; set; }
///
/// 产品名称,或者code
///
public string Product { get; set; }
///
/// 服务商code
///
public string ApiCode { get; set; }
///
/// 收件人信息
///
public Consignee Consignee { get; set; }
}
public class Consignee
{
///
/// 收件人国家,必填
///
[Required]
public string CountryCode { get; set; }
///
/// 收件人州省
///
public string Province { get; set; }
///
/// 收件人邮编
///
public string Postcode { get; set; }
///
/// 收件人城市
///
public string City { get; set; }
///
/// 收件人邮箱
///
public string Email { get; set; }
}
public class UpsertBigBagInput
{
///
/// 客户名称,或者code,必填
///
[Required]
public string Client { get; set; }
///
/// 大包号,必填
///
[Required]
public string BagNo { get; set; }
///
/// 其他单号
///
public string OtherNo { get; set; }
///
/// 渠道名称,或者code
///
public string Channel { get; set; }
///
/// 产品名称,或者code
///
public string Product { get; set; }
///
/// 产品名称,或者code
///
public string Country { get; set; }
}
public class UpsertMasterOrderInput
{
///
/// 服务商code
///
public string ApiCode { get; set; }
///
/// 客户名称,或者code,必填
///
[Required]
public string Client { get; set; }
///
/// 主单号,必填
///
[Required]
public string MasterNo { get; set; }
///
/// 是否中转,必填
///
[Required]
public bool IsTransfer { get; set; }
///
/// 目的国家二字码,必填
///
[Required]
public string ArrivalCountry { get; set; }
///
/// 起运国家二字码,必填
///
[Required]
public string LeaveCountry { get; set; }
///
/// 航班信息(传当前订单的所有航班信息)
///
public List FlightInfos { get; set; }
}
///
/// 航班信息
///
public class FlightInfo
{
///
/// 航班号
///
public string FlightNo { get; set; }
///
/// 起运港口三字码
///
public string LeavePort { get; set; }
///
/// 目的港口三字码
///
public string ArrivalPort { get; set; }
///
/// 预计到达时间
///
public string Eta { get; set; }
///
/// 预计起飞时间
///
public string Etd { get; set; }
}