namespace Oms.Application.Integrations.SmallBagTrack; public interface ISmallBagTrackOrderClient { Task UpsertAsync(SmallBagTrackUpsertRequest request, CancellationToken cancellationToken = default); /// /// 追加一条生命周期轨迹节点(POST ProviderService/Track/Upsert),默认小包 orderType=1。 /// Task AppendLifecycleTrackAsync( string orderNo, string trackCode, string? authorization = null, CancellationToken cancellationToken = default); /// /// 追加生命周期轨迹节点,返回调用结果(用于按序编排)。 /// Task AppendLifecycleTrackResultAsync( string orderNo, string trackCode, int orderType, string? authorization = null, CancellationToken cancellationToken = default); /// /// 同步调用并返回完整请求/响应(仅调试)。 /// Task UpsertDebugAsync(SmallBagTrackUpsertRequest request, CancellationToken cancellationToken = default); /// /// 创建/更新大包轨迹订单(POST ProviderService/Order/UpsertBigBag)。 /// Task UpsertBigBagAsync( SmallBagTrackUpsertBigBagRequest request, CancellationToken cancellationToken = default); /// /// 关联大包与小包(POST ProviderService/Order/Link)。 /// Task LinkOrdersAsync( string parentOrderNo, int parentOrderType, IReadOnlyList linkOrderNos, int linkOrderType, string? authorization = null, CancellationToken cancellationToken = default); }