using System.Text.Json.Serialization;

namespace Core.Models.Eft.Trade;

public class ProcessSellTradeRequestData : ProcessBaseTradeRequestData
{
    [JsonPropertyName("Action")]
    public string? Action { get; set; } = "sell_to_trader";

    [JsonPropertyName("type")]
    public string? Type { get; set; }

    [JsonPropertyName("tid")]
    public string? Tid { get; set; }

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

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

public class SoldItem
{
    [JsonPropertyName("id")]
    public string? Id { get; set; }

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

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