admin/src/Oms.Application/Dtos/Orders/OrderFeeAddInput.cs
zzh dd5c82e523 feat(order): 支持订单详情手动添加费用项
新增 OrderFeeAddInput 并在 OrderEdit 服务中实现费用追加逻辑,配合前端订单详情抽屉添加费用能力。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 12:36:18 +08:00

67 lines
1.5 KiB
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 System.ComponentModel.DataAnnotations;
namespace Oms.Application.Dtos.Orders;
/// <summary>
/// 手动添加订单费用入参。
/// </summary>
public class OrderFeeAddInput
{
/// <summary>
/// 订单主键。
/// </summary>
[Required]
public int Id { get; set; }
/// <summary>
/// 费用类型:receivable / payable。
/// </summary>
[Required]
[StringLength(16)]
public string Type { get; set; } = string.Empty;
/// <summary>
/// 费用项编码。
/// </summary>
[Required]
[StringLength(64)]
public string CostItem { get; set; } = string.Empty;
/// <summary>
/// 金额。
/// </summary>
[Required]
public decimal Amount { get; set; }
/// <summary>
/// 币种。
/// </summary>
[Required]
[StringLength(16)]
public string Currency { get; set; } = string.Empty;
/// <summary>
/// 计费阶段:forecast / inbound / outbound。
/// </summary>
[Required]
[StringLength(16)]
public string ChargingStage { get; set; } = string.Empty;
/// <summary>
/// 下游服务商(应付可选)。
/// </summary>
[StringLength(128)]
public string? DownstreamProvider { get; set; }
/// <summary>
/// 价格编号(可选)。
/// </summary>
[StringLength(64)]
public string? PriceNo { get; set; }
/// <summary>
/// 价格生效时间(可选)。
/// </summary>
public DateTime? PriceEffectiveTime { get; set; }
}