using System.Text.Json.Serialization;

namespace 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
{
    [JsonPropertyName("id")]
    public string? Id { get; set; }

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

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