| | | 1 | | using OzonDomains; |
| | | 2 | | |
| | | 3 | | namespace Services.TransactionCommentAi; |
| | | 4 | | |
| | | 5 | | public sealed class TransactionCommentAiContext |
| | | 6 | | { |
| | 38 | 7 | | public int TransactionId { get; set; } |
| | | 8 | | |
| | 88 | 9 | | public TransactionType TransactionType { get; set; } |
| | | 10 | | |
| | 128 | 11 | | public string TransactionTypeDisplayName { get; set; } = string.Empty; |
| | | 12 | | |
| | 128 | 13 | | public string UserName { get; set; } = string.Empty; |
| | | 14 | | |
| | 80 | 15 | | public DateTime PerformedAtUtc { get; set; } |
| | | 16 | | |
| | 17 | 17 | | public string? UserComment { get; set; } |
| | | 18 | | |
| | 24 | 19 | | public bool SkipGeneration { get; set; } |
| | | 20 | | |
| | 49 | 21 | | public bool ShipInOzonRequested { get; set; } |
| | | 22 | | |
| | 49 | 23 | | public bool ProcessIn1C { get; set; } |
| | | 24 | | |
| | 148 | 25 | | public TransactionCommentAiBatchSummary Batch { get; set; } = new(); |
| | | 26 | | |
| | 98 | 27 | | public List<TransactionCommentAiOrderSnapshot> Orders { get; set; } = []; |
| | | 28 | | |
| | 34 | 29 | | public TransactionCommentAiOneCSummary? OneC { get; set; } |
| | | 30 | | |
| | 27 | 31 | | public TransactionCommentAiOzonShipSummary? OzonShip { get; set; } |
| | | 32 | | |
| | 83 | 33 | | public List<string> OzonCancelNotes { get; set; } = []; |
| | | 34 | | } |
| | | 35 | | |
| | | 36 | | public sealed class TransactionCommentAiBatchSummary |
| | | 37 | | { |
| | | 38 | | public int TotalOrders { get; set; } |
| | | 39 | | |
| | | 40 | | public int CancelledCount { get; set; } |
| | | 41 | | |
| | | 42 | | public int SplitCount { get; set; } |
| | | 43 | | |
| | | 44 | | public int ToCancellationCount { get; set; } |
| | | 45 | | |
| | | 46 | | public string? TargetStatusName { get; set; } |
| | | 47 | | } |
| | | 48 | | |
| | | 49 | | public sealed class TransactionCommentAiOrderSnapshot |
| | | 50 | | { |
| | | 51 | | public int OrderId { get; set; } |
| | | 52 | | |
| | | 53 | | public string? ShipmentNumber { get; set; } |
| | | 54 | | |
| | | 55 | | public string? FromStatusName { get; set; } |
| | | 56 | | |
| | | 57 | | public string? ToStatusName { get; set; } |
| | | 58 | | |
| | | 59 | | public string? Article { get; set; } |
| | | 60 | | |
| | | 61 | | public string? ProductName { get; set; } |
| | | 62 | | |
| | | 63 | | public string? Manufacturer { get; set; } |
| | | 64 | | |
| | | 65 | | public int? Quantity { get; set; } |
| | | 66 | | |
| | | 67 | | public int? OriginalQuantity { get; set; } |
| | | 68 | | |
| | | 69 | | public bool IsSplitPart { get; set; } |
| | | 70 | | |
| | | 71 | | public bool IsToCancellationPart { get; set; } |
| | | 72 | | |
| | | 73 | | public string? SupplierName { get; set; } |
| | | 74 | | |
| | | 75 | | public string? ShipmentWarehouseName { get; set; } |
| | | 76 | | |
| | | 77 | | public string? OzonClientName { get; set; } |
| | | 78 | | |
| | | 79 | | public string? DeliveryCity { get; set; } |
| | | 80 | | |
| | | 81 | | public decimal? PurchasePrice { get; set; } |
| | | 82 | | |
| | | 83 | | public decimal? MinProfit { get; set; } |
| | | 84 | | |
| | | 85 | | public decimal? MaxProfit { get; set; } |
| | | 86 | | |
| | | 87 | | public List<string> ChangedFields { get; set; } = []; |
| | | 88 | | } |
| | | 89 | | |
| | | 90 | | public sealed class TransactionCommentAiOneCSummary |
| | | 91 | | { |
| | | 92 | | public string? WarehouseSender { get; set; } |
| | | 93 | | |
| | | 94 | | public string? WarehouseRecipient { get; set; } |
| | | 95 | | |
| | | 96 | | public List<TransactionCommentAiOneCDocument> Documents { get; set; } = []; |
| | | 97 | | |
| | | 98 | | public List<string> Errors { get; set; } = []; |
| | | 99 | | |
| | | 100 | | public List<string> PostingErrors { get; set; } = []; |
| | | 101 | | |
| | | 102 | | public List<string> MissingNomenclature { get; set; } = []; |
| | | 103 | | } |
| | | 104 | | |
| | | 105 | | public sealed class TransactionCommentAiOneCDocument |
| | | 106 | | { |
| | | 107 | | public string? DocumentNumber { get; set; } |
| | | 108 | | |
| | | 109 | | public string? TransactionId { get; set; } |
| | | 110 | | |
| | | 111 | | public bool IsPosted { get; set; } |
| | | 112 | | } |
| | | 113 | | |
| | | 114 | | public sealed class TransactionCommentAiOzonShipSummary |
| | | 115 | | { |
| | | 116 | | public int SuccessCount { get; set; } |
| | | 117 | | |
| | | 118 | | public int FailedCount { get; set; } |
| | | 119 | | |
| | | 120 | | public int SkippedCount { get; set; } |
| | | 121 | | |
| | | 122 | | public List<TransactionCommentAiOzonShipEntry> Entries { get; set; } = []; |
| | | 123 | | } |
| | | 124 | | |
| | | 125 | | public sealed class TransactionCommentAiOzonShipEntry |
| | | 126 | | { |
| | | 127 | | public string ShipmentNumber { get; set; } = string.Empty; |
| | | 128 | | |
| | | 129 | | public bool IsSuccess { get; set; } |
| | | 130 | | |
| | | 131 | | public bool IsSkipped { get; set; } |
| | | 132 | | |
| | | 133 | | public string Message { get; set; } = string.Empty; |
| | | 134 | | } |