| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices.OzonApi.Filters; |
| | | 4 | | |
| | | 5 | | public class ProductAttributesItemResponse |
| | | 6 | | { |
| | | 7 | | [JsonProperty("id")] |
| | 2 | 8 | | public long Id { get; set; } |
| | | 9 | | |
| | | 10 | | [JsonProperty("offer_id")] |
| | 0 | 11 | | public string? OfferId { get; set; } |
| | | 12 | | |
| | | 13 | | // В документации поле описано как строка, но в ответе иногда приходит числом. |
| | | 14 | | // Newtonsoft корректно обрабатывает число -> string. |
| | | 15 | | [JsonProperty("sku")] |
| | 0 | 16 | | public string? Sku { get; set; } |
| | | 17 | | |
| | | 18 | | [JsonProperty("type_id")] |
| | 0 | 19 | | public long? TypeId { get; set; } |
| | | 20 | | |
| | | 21 | | [JsonProperty("name")] |
| | 0 | 22 | | public string? Name { get; set; } |
| | | 23 | | |
| | | 24 | | [JsonProperty("barcode")] |
| | 0 | 25 | | public string? Barcode { get; set; } |
| | | 26 | | |
| | | 27 | | [JsonProperty("barcodes")] |
| | 1 | 28 | | public List<string>? Barcodes { get; set; } = []; |
| | | 29 | | |
| | | 30 | | [JsonProperty("primary_image")] |
| | 2 | 31 | | public string? PrimaryImage { get; set; } |
| | | 32 | | |
| | | 33 | | [JsonProperty("images")] |
| | 1 | 34 | | public List<string>? Images { get; set; } = []; |
| | | 35 | | |
| | | 36 | | [JsonProperty("color_image")] |
| | 0 | 37 | | public string? ColorImage { get; set; } |
| | | 38 | | |
| | | 39 | | [JsonProperty("description_category_id")] |
| | 0 | 40 | | public long? DescriptionCategoryId { get; set; } |
| | | 41 | | |
| | | 42 | | [JsonProperty("dimension_unit")] |
| | 0 | 43 | | public string? DimensionUnit { get; set; } |
| | | 44 | | |
| | | 45 | | [JsonProperty("weight")] |
| | 0 | 46 | | public long? Weight { get; set; } |
| | | 47 | | |
| | | 48 | | [JsonProperty("weight_unit")] |
| | 0 | 49 | | public string? WeightUnit { get; set; } |
| | | 50 | | |
| | | 51 | | [JsonProperty("depth")] |
| | 0 | 52 | | public long? Depth { get; set; } |
| | | 53 | | |
| | | 54 | | [JsonProperty("height")] |
| | 0 | 55 | | public long? Height { get; set; } |
| | | 56 | | |
| | | 57 | | [JsonProperty("width")] |
| | 0 | 58 | | public long? Width { get; set; } |
| | | 59 | | |
| | | 60 | | [JsonProperty("model_info")] |
| | 0 | 61 | | public ProductAttributesModelInfoResponse? ModelInfo { get; set; } |
| | | 62 | | |
| | | 63 | | [JsonProperty("attributes")] |
| | 1 | 64 | | public List<ProductAttributesAttributeResponse>? Attributes { get; set; } = []; |
| | | 65 | | |
| | | 66 | | [JsonProperty("attributes_with_defaults")] |
| | 1 | 67 | | public List<long>? AttributesWithDefaults { get; set; } = []; |
| | | 68 | | |
| | | 69 | | [JsonProperty("complex_attributes")] |
| | 1 | 70 | | public List<object>? ComplexAttributes { get; set; } = []; |
| | | 71 | | |
| | | 72 | | // pdf_list может иметь разный состав полей, для текущей задачи не разворачиваем. |
| | | 73 | | [JsonProperty("pdf_list")] |
| | 1 | 74 | | public List<object>? PdfList { get; set; } = []; |
| | | 75 | | } |
| | | 76 | | |