using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Common;

namespace SPTarkov.Server.Core.Models.Eft.Trade;

public record ProcessSellTradeRequestData : ProcessBaseTradeRequestData
{
    [JsonPropertyName("price")]
    public double? Price { get; set; }

    [JsonPropertyName("items")]
    public List<SoldItem>? Items { get; set; }
}

public record SoldItem
{
    [JsonExtensionData]
    public Dictionary<string, object>? ExtensionData { get; set; }

    [JsonPropertyName("id")]
    public MongoId Id { get; set; }

    [JsonPropertyName("count")]
    public int? Count { get; set; }

    [JsonPropertyName("scheme_id")]
    public int? SchemeId { get; set; }
}
