| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace OzonDomains.Models; |
| | | 5 | | |
| | | 6 | | [Table("ArmtekOrders")] |
| | | 7 | | public sealed class ArmtekOrder |
| | | 8 | | { |
| | 9 | 9 | | public long Id { get; set; } |
| | 27 | 10 | | [Required, MaxLength(20)] public string ProviderKey { get; set; } = string.Empty; |
| | 27 | 11 | | [Required, MaxLength(10)] public string Vkorg { get; set; } = string.Empty; |
| | 33 | 12 | | [Required, MaxLength(10)] public string Kunrg { get; set; } = string.Empty; |
| | | 13 | | /// <summary>KUNZA: адрес доставки, с которым создан заказ Armtek.</summary> |
| | 8 | 14 | | [MaxLength(10)] public string? Kunza { get; set; } |
| | 42 | 15 | | [Required, MaxLength(20)] public string Vbeln { get; set; } = string.Empty; |
| | 15 | 16 | | [Required, MaxLength(30)] public string Status { get; set; } = "Created"; |
| | 9 | 17 | | [MaxLength(450)] public string? CreatedBy { get; set; } |
| | 8 | 18 | | public string? RequestJson { get; set; } |
| | 8 | 19 | | public string? ResponseJson { get; set; } |
| | 17 | 20 | | public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow; |
| | 14 | 21 | | public ICollection<ArmtekOrderItem> Items { get; set; } = new List<ArmtekOrderItem>(); |
| | | 22 | | } |