< Summary

Information
Class: Services.TransactionCommentAi.TransactionCommentAiContext
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/TransactionCommentAi/TransactionCommentAiContext.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 134
Line coverage: 100%
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_TransactionId()100%11100%
get_TransactionType()100%11100%
get_TransactionTypeDisplayName()100%11100%
get_UserName()100%11100%
get_PerformedAtUtc()100%11100%
get_UserComment()100%11100%
get_SkipGeneration()100%11100%
get_ShipInOzonRequested()100%11100%
get_ProcessIn1C()100%11100%
get_Batch()100%11100%
get_Orders()100%11100%
get_OneC()100%11100%
get_OzonShip()100%11100%
get_OzonCancelNotes()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{
 387    public int TransactionId { get; set; }
 8
 889    public TransactionType TransactionType { get; set; }
 10
 12811    public string TransactionTypeDisplayName { get; set; } = string.Empty;
 12
 12813    public string UserName { get; set; } = string.Empty;
 14
 8015    public DateTime PerformedAtUtc { get; set; }
 16
 1717    public string? UserComment { get; set; }
 18
 2419    public bool SkipGeneration { get; set; }
 20
 4921    public bool ShipInOzonRequested { get; set; }
 22
 4923    public bool ProcessIn1C { get; set; }
 24
 14825    public TransactionCommentAiBatchSummary Batch { get; set; } = new();
 26
 9827    public List<TransactionCommentAiOrderSnapshot> Orders { get; set; } = [];
 28
 3429    public TransactionCommentAiOneCSummary? OneC { get; set; }
 30
 2731    public TransactionCommentAiOzonShipSummary? OzonShip { get; set; }
 32
 8333    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{
 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}