| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | |
| | | 3 | | namespace OzonDomains.Models; |
| | | 4 | | |
| | | 5 | | /// <summary>Снимок одного обращения Studio2 к API-поставщику для проценки товара.</summary> |
| | | 6 | | public sealed class SupplierQuotationRequest |
| | | 7 | | { |
| | 0 | 8 | | public long Id { get; set; } |
| | 4 | 9 | | public int ProductId { get; set; } |
| | 0 | 10 | | public Product Product { get; set; } = null!; |
| | 3 | 11 | | public int OrderId { get; set; } |
| | 0 | 12 | | public Order Order { get; set; } = null!; |
| | 6 | 13 | | [Required, MaxLength(64)] public string ProviderKey { get; set; } = string.Empty; |
| | 4 | 14 | | public int? SupplierId { get; set; } |
| | 0 | 15 | | public Supplier? Supplier { get; set; } |
| | 6 | 16 | | [Required, MaxLength(255)] public string Article { get; set; } = string.Empty; |
| | 3 | 17 | | [MaxLength(255)] public string? Brand { get; set; } |
| | 9 | 18 | | [Required, MaxLength(16)] public string Status { get; set; } = string.Empty; |
| | 3 | 19 | | public DateTime RequestedAtUtc { get; set; } |
| | 3 | 20 | | public DateTime CompletedAtUtc { get; set; } |
| | 3 | 21 | | public long DurationMs { get; set; } |
| | 3 | 22 | | public int OffersCount { get; set; } |
| | 5 | 23 | | [MaxLength(2000)] public string? ErrorMessage { get; set; } |
| | 3 | 24 | | public string? RequestParametersJson { get; set; } |
| | 7 | 25 | | public ICollection<SupplierQuotationOffer> Offers { get; set; } = new List<SupplierQuotationOffer>(); |
| | | 26 | | } |