/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Alliance\TreasuryOperationRequestDto.cs
 * Created: 2025-10-22
 * Last Modified: 2025-10-22
 * Description: Request DTO for alliance treasury operations and resource management
 * Last Edit Notes: Initial creation following established Alliance DTO patterns
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Alliance
{
    /// <summary>
    /// Request DTO for alliance treasury operations and resource management
    /// </summary>
    public class TreasuryOperationRequestDto
    {
        /// <summary>
        /// Type of operation (Deposit, Withdraw, Transfer, Allocation, Tax)
        /// </summary>
        [Required]
        [StringLength(50)]
        public string OperationType { get; set; } = string.Empty;

        /// <summary>
        /// Resources to operate on
        /// </summary>
        [Required]
        public Dictionary<string, decimal> ResourceAmounts { get; set; } = new();

        /// <summary>
        /// Purpose or reason for the operation
        /// </summary>
        [Required]
        [StringLength(500)]
        public string OperationPurpose { get; set; } = string.Empty;

        /// <summary>
        /// Target alliance (for transfers)
        /// </summary>
        public int? TargetAllianceId { get; set; }

        /// <summary>
        /// Target player (for distributions)
        /// </summary>
        public int? TargetPlayerId { get; set; }

        /// <summary>
        /// Priority level for this operation (1-5)
        /// </summary>
        [Range(1, 5)]
        public int Priority { get; set; } = 3;

        /// <summary>
        /// Whether to require officer approval
        /// </summary>
        public bool RequireApproval { get; set; } = true;

        /// <summary>
        /// Scheduled execution time (for delayed operations)
        /// </summary>
        public DateTime? ScheduledExecution { get; set; }

        /// <summary>
        /// Operation parameters and special conditions
        /// </summary>
        public Dictionary<string, object>? OperationParameters { get; set; }
    }
}