namespace Oms.Application.Integrations.SmallBagTrack; /// /// POST /OrderV2/UpsertSmallBag 请求体。 /// public class SmallBagTrackUpsertRequest { public string Client { get; set; } = string.Empty; public string OrderNo { get; set; } = string.Empty; public string TrackNo { get; set; } = string.Empty; public string OtherNo { get; set; } = string.Empty; public string Channel { get; set; } = string.Empty; public string Product { get; set; } = string.Empty; /// /// 轨迹拉取配置 code(对应轨迹 ServiceProviderCode;优先发布快照 SupplierCode)。 /// public string ApiCode { get; set; } = string.Empty; public SmallBagTrackConsigneeRequest Consignee { get; set; } = new(); /// /// 转发到轨迹网关的 Authorization(异步入队前从当前 HTTP 请求捕获)。 /// public string? Authorization { get; set; } /// /// UpsertSmallBag 成功后是否追加创单默认轨迹(A0101/SZ)。 /// public bool AppendInitialTrackOnSuccess { get; set; } } public class SmallBagTrackConsigneeRequest { public string CountryCode { get; set; } = string.Empty; public string Province { get; set; } = string.Empty; public string Postcode { get; set; } = string.Empty; public string City { get; set; } = string.Empty; public string Email { get; set; } = string.Empty; }