/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Purchase\PurchaseProcessingRequestDto.cs
 * Created: 2025-10-19
 * Last Modified: 2025-10-19
 * Description: Request DTO for purchase processing
 * Last Edit Notes: Individual file implementation for purchase processing input validation
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Purchase
{
    /// <summary>
    /// Request DTO for purchase processing
    /// </summary>
    public class PurchaseProcessingRequestDto
    {
        /// <summary>
        /// Item or package being purchased
        /// </summary>
        [Required]
        [StringLength(100)]
        public string ItemId { get; set; } = string.Empty;

        /// <summary>
        /// Quantity being purchased
        /// </summary>
        [Range(1, int.MaxValue)]
        public int Quantity { get; set; } = 1;

        /// <summary>
        /// Purchase amount in local currency
        /// </summary>
        [Range(0.01, double.MaxValue)]
        public decimal PurchaseAmount { get; set; }

        /// <summary>
        /// Currency code for the purchase
        /// </summary>
        [Required]
        [StringLength(3)]
        public string CurrencyCode { get; set; } = string.Empty;

        /// <summary>
        /// External transaction ID from payment processor
        /// </summary>
        [Required]
        [StringLength(200)]
        public string TransactionId { get; set; } = string.Empty;

        /// <summary>
        /// Payment method used
        /// </summary>
        [StringLength(50)]
        public string? PaymentMethod { get; set; }

        /// <summary>
        /// Additional purchase metadata
        /// </summary>
        public Dictionary<string, object>? PurchaseMetadata { get; set; }
    }
}