将轨迹、面单、9610、揽收、自动触发与 ForecastBilling 异步化,缩短扫码与下单 RT;队列未启用时同步回落。 Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
952 B
C#
29 lines
952 B
C#
using Fake.EventBus.Distributed;
|
||
|
||
namespace Oms.Application.Messaging.ParcelCreate;
|
||
|
||
/// <summary>
|
||
/// 创单后置:新增轨迹订单,并在成功后追加「创建订单成功」轨迹(A0101)。
|
||
/// 二者合并为同一集成事件,由 Handler 内 UpsertSmallBag + AppendInitialTrackOnSuccess 一次完成。
|
||
/// </summary>
|
||
[Serializable]
|
||
public class OrderParcelTrackUpsertIntegrationEvent : IntegrationEvent
|
||
{
|
||
public int OrderId { get; set; }
|
||
|
||
public int? CustomerId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 序列化后的 <see cref="Integrations.SmallBagTrack.SmallBagTrackUpsertRequest"/>;
|
||
/// 为空时 Handler 按 OrderId 重建。
|
||
/// </summary>
|
||
public string? PayloadJson { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否在 Upsert 成功后追加创单默认轨迹 A0101。
|
||
/// </summary>
|
||
public bool AppendInitialTrackOnSuccess { get; set; } = true;
|
||
|
||
public string? Authorization { get; set; }
|
||
}
|