admin/src/Oms.Application/Services/Orders/OrderBillingContext.cs
zzh 89233bc3da feat: add customer marketing module (M1-M6 backend)
Implement referral, points, coupons, commission, member levels, and order integration with migration SQL and background jobs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 16:42:08 +08:00

36 lines
997 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Oms.Application.Dtos.Orders;
namespace Oms.Application.Services.Orders;
/// <summary>
/// 算价用的收件地址(国家 + 省市区邮编)。
/// </summary>
internal readonly record struct OrderBillingAddress(
string CountryCode,
string? Province,
string? City,
string? ZipCode);
/// <summary>
/// 订单单次算价上下文:快照、分区键、计费重、货类、价区键、仓库。
/// </summary>
internal sealed class OrderBillingContext
{
public required ProductSnapshotBinding SnapshotBinding { get; init; }
public required IReadOnlyList<string> ZoneKeys { get; init; }
public required decimal ChargeableWeight { get; init; }
public required string CargoAttribute { get; init; }
/// <summary>
/// 卖价 JSON 价区键(如 普通客户、VIP1、客户组1)。
/// </summary>
public string? PriceTierKey { get; init; }
public int? WarehouseId { get; init; }
public string? WarehouseName { get; init; }
}