| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices.FidApi.Models; |
| | | 4 | | |
| | | 5 | | /// <summary>Единый снимок цены, остатков и истории из фид-сервиса.</summary> |
| | | 6 | | public sealed class FidPriceStock |
| | | 7 | | { |
| | | 8 | | [JsonProperty("current")] |
| | | 9 | | public List<FidPriceCurrentRow> Current { get; init; } = []; |
| | | 10 | | |
| | | 11 | | [JsonProperty("history")] |
| | | 12 | | public List<FidPriceHistoryRow> History { get; init; } = []; |
| | | 13 | | } |
| | | 14 | | |
| | | 15 | | public sealed class FidPriceCurrentRow |
| | | 16 | | { |
| | | 17 | | [JsonProperty("cabinetKey")] |
| | 3 | 18 | | public string CabinetKey { get; init; } = string.Empty; |
| | | 19 | | |
| | | 20 | | [JsonProperty("article")] |
| | 3 | 21 | | public string Article { get; init; } = string.Empty; |
| | | 22 | | |
| | | 23 | | [JsonProperty("warehouseName")] |
| | 2 | 24 | | public string? WarehouseName { get; init; } |
| | | 25 | | |
| | | 26 | | [JsonProperty("stock")] |
| | 2 | 27 | | public int? Stock { get; init; } |
| | | 28 | | |
| | | 29 | | [JsonProperty("stockSupplier")] |
| | 2 | 30 | | public string? StockSupplier { get; init; } |
| | | 31 | | |
| | | 32 | | [JsonProperty("price")] |
| | 2 | 33 | | public decimal? Price { get; init; } |
| | | 34 | | |
| | | 35 | | [JsonProperty("oldPrice")] |
| | 2 | 36 | | public decimal? OldPrice { get; init; } |
| | | 37 | | |
| | | 38 | | [JsonProperty("minPrice")] |
| | 2 | 39 | | public decimal? MinPrice { get; init; } |
| | | 40 | | |
| | | 41 | | [JsonProperty("purchasePrice")] |
| | 2 | 42 | | public decimal? PurchasePrice { get; init; } |
| | | 43 | | |
| | | 44 | | [JsonProperty("priceWarehouse")] |
| | 2 | 45 | | public string? PriceWarehouse { get; init; } |
| | | 46 | | |
| | | 47 | | [JsonProperty("priceSupplier")] |
| | 2 | 48 | | public string? PriceSupplier { get; init; } |
| | | 49 | | |
| | | 50 | | [JsonProperty("runId")] |
| | 2 | 51 | | public long? RunId { get; init; } |
| | | 52 | | |
| | | 53 | | [JsonProperty("updatedAt")] |
| | 2 | 54 | | public DateTime UpdatedAt { get; init; } |
| | | 55 | | } |
| | | 56 | | |
| | | 57 | | public sealed class FidPriceHistoryRow |
| | | 58 | | { |
| | | 59 | | [JsonProperty("runId")] |
| | | 60 | | public long RunId { get; init; } |
| | | 61 | | |
| | | 62 | | [JsonProperty("assembledAt")] |
| | | 63 | | public DateTime AssembledAt { get; init; } |
| | | 64 | | |
| | | 65 | | [JsonProperty("assembledBy")] |
| | | 66 | | public string? AssembledBy { get; init; } |
| | | 67 | | |
| | | 68 | | [JsonProperty("cabinetKey")] |
| | | 69 | | public string CabinetKey { get; init; } = string.Empty; |
| | | 70 | | |
| | | 71 | | [JsonProperty("article")] |
| | | 72 | | public string Article { get; init; } = string.Empty; |
| | | 73 | | |
| | | 74 | | [JsonProperty("price")] |
| | | 75 | | public decimal? Price { get; init; } |
| | | 76 | | |
| | | 77 | | [JsonProperty("oldPrice")] |
| | | 78 | | public decimal? OldPrice { get; init; } |
| | | 79 | | |
| | | 80 | | [JsonProperty("totalStock")] |
| | | 81 | | public long? TotalStock { get; init; } |
| | | 82 | | } |