32 lines
705 B
C#
32 lines
705 B
C#
using System.Text.Json.Serialization;
|
|
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
|
|
|
namespace TakeoutSaaS.Application.App.Stores.Dto;
|
|
|
|
/// <summary>
|
|
/// 打包费拆分明细。
|
|
/// </summary>
|
|
public sealed record StoreFeeCalculationBreakdownDto
|
|
{
|
|
/// <summary>
|
|
/// SKU ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long SkuId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 数量。
|
|
/// </summary>
|
|
public int Quantity { get; init; }
|
|
|
|
/// <summary>
|
|
/// 单件打包费。
|
|
/// </summary>
|
|
public decimal UnitFee { get; init; }
|
|
|
|
/// <summary>
|
|
/// 小计。
|
|
/// </summary>
|
|
public decimal Subtotal { get; init; }
|
|
}
|