< Summary

Information
Class: Services.TransactionCommentAi.TransactionCommentAiOzonShipEntry
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/TransactionCommentAi/TransactionCommentAiContext.cs
Line coverage
50%
Covered lines: 2
Uncovered lines: 2
Coverable lines: 4
Total lines: 134
Line coverage: 50%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ShipmentNumber()100%11100%
get_IsSuccess()100%210%
get_IsSkipped()100%210%
get_Message()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/TransactionCommentAi/TransactionCommentAiContext.cs

#LineLine coverage
 1using OzonDomains;
 2
 3namespace Services.TransactionCommentAi;
 4
 5public sealed class TransactionCommentAiContext
 6{
 7    public int TransactionId { get; set; }
 8
 9    public TransactionType TransactionType { get; set; }
 10
 11    public string TransactionTypeDisplayName { get; set; } = string.Empty;
 12
 13    public string UserName { get; set; } = string.Empty;
 14
 15    public DateTime PerformedAtUtc { get; set; }
 16
 17    public string? UserComment { get; set; }
 18
 19    public bool SkipGeneration { get; set; }
 20
 21    public bool ShipInOzonRequested { get; set; }
 22
 23    public bool ProcessIn1C { get; set; }
 24
 25    public TransactionCommentAiBatchSummary Batch { get; set; } = new();
 26
 27    public List<TransactionCommentAiOrderSnapshot> Orders { get; set; } = [];
 28
 29    public TransactionCommentAiOneCSummary? OneC { get; set; }
 30
 31    public TransactionCommentAiOzonShipSummary? OzonShip { get; set; }
 32
 33    public List<string> OzonCancelNotes { get; set; } = [];
 34}
 35
 36public 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
 49public 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
 90public 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
 105public 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
 114public 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
 125public sealed class TransactionCommentAiOzonShipEntry
 126{
 5127    public string ShipmentNumber { get; set; } = string.Empty;
 128
 0129    public bool IsSuccess { get; set; }
 130
 0131    public bool IsSkipped { get; set; }
 132
 4133    public string Message { get; set; } = string.Empty;
 134}