< Summary

Information
Class: OzonOrdersWeb.WebServices.Orders.Grid.OrderGridRowDto
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/WebServices/Orders/Grid/OrderGridRowDto.cs
Line coverage
96%
Covered lines: 88
Uncovered lines: 3
Coverable lines: 91
Total lines: 253
Line coverage: 96.7%
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_Id()100%11100%
get_ShipmentId()100%11100%
get_CartItemId()100%11100%
get_IsArchived()100%11100%
get_IsReturned()100%11100%
get_IsReturnable()100%11100%
get_IsCancelled()100%11100%
get_RowTone()100%11100%
get_ShipmentGroupPosition()100%11100%
get_GroupPosition()100%11100%
get_GroupKey()100%11100%
get_ShipmentGroupSize()100%11100%
get_LabelExists()100%11100%
get_ClientKind()100%11100%
get_MarketStatus()100%11100%
get_FromFile()100%11100%
get_HasOzonPromotion()100%11100%
get_HasTransactionDocument()100%11100%
get_Problems()100%11100%
get_ShipmentNumber()100%11100%
get_Scanit()100%11100%
get_DeliveryProvider()100%11100%
get_DeliveryName()100%11100%
get_TrackingNumber()100%11100%
get_OzonClient()100%11100%
get_OzonClientType()100%11100%
get_DeliveryCity()100%11100%
get_ProcessingDate()100%11100%
get_ProcessingDateText()100%11100%
get_ProcessingDateFull()100%11100%
get_ShippingDate()100%11100%
get_ShippingDateText()100%11100%
get_ShippingDateFull()100%11100%
get_DeliveryPeriodText()100%11100%
get_DeliveryPeriodHoursText()100%11100%
get_TimeLeftText()100%11100%
get_TimeLeftDays()100%11100%
get_DeliveryOverdue()100%11100%
get_ProductKey()100%11100%
get_ImageUrl()100%11100%
get_Barcode()100%11100%
get_Manufacturer()100%11100%
get_EtProducerId()100%11100%
get_Article()100%11100%
get_ReplacementArticle()100%11100%
get_ProductName()100%11100%
get_ClientStatus()100%11100%
get_ClientStatusColor()100%11100%
get_CancellationReason()100%11100%
get_AppStatus()100%11100%
get_AppStatusColor()100%11100%
get_AppStatusIsFinal()100%11100%
get_CartItemStatus()100%11100%
get_CartItemStatusColor()100%11100%
get_CartItemStatusId()100%11100%
get_SupplierStatus()100%11100%
get_SupplierStatusColor()100%11100%
get_SupplierStatusProviderKey()100%11100%
get_SupplierStatusTooltip()100%11100%
get_SupplierExpectedDeliveryText()100%11100%
get_SupplierExpectedDeliveryDaysLeft()100%11100%
get_ReturnStatusText()100%11100%
get_ShipmentWarehouse()100%11100%
get_ZasylWarehouse()100%11100%
get_ReturnWarehouseName()100%11100%
get_LastStatusChangeDate()100%11100%
get_LastStatusChangeDateText()100%11100%
get_LastStatusChangeDateFull()100%11100%
get_Supplier()100%11100%
get_SupplierDirection()100%11100%
get_OrderNumberToSupplier()100%11100%
get_Category()100%11100%
get_VolumetricWeight()100%210%
get_Weight()100%210%
get_SitePrice()100%11100%
get_Quantity()100%11100%
get_Price()100%11100%
get_Currency()100%11100%
get_PriceIndexColor()100%11100%
get_ShipmentAmount()100%11100%
get_PurchasePrice()100%11100%
get_CostPrice()100%11100%
get_ExtraExpenses()100%210%
get_ExtraExpensesItems()100%11100%
get_OzonCommissionMin()100%11100%
get_OzonCommissionMax()100%11100%
get_ProfitMin()100%11100%
get_ProfitMax()100%11100%
get_TargetProfit135()100%11100%
get_DiscountMin()100%11100%
get_DiscountMax()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/WebServices/Orders/Grid/OrderGridRowDto.cs

#LineLine coverage
 1namespace OzonOrdersWeb.WebServices.Orders.Grid;
 2
 3/// <summary>
 4/// Плоская строка списка заказов для AG Grid. Поля, закрытые гейтом колонок
 5/// (<see cref="OrdersGridColumnAccess"/>), остаются null и на клиент не попадают в осмысленном виде.
 6/// </summary>
 7public sealed class OrderGridRowDto
 8{
 9    // ---- всегда ----
 2610    public int Id { get; set; }
 11
 1112    public long? ShipmentId { get; set; }
 13
 1114    public int? CartItemId { get; set; }
 15
 1216    public bool IsArchived { get; set; }
 17
 1118    public bool IsReturned { get; set; }
 19
 1120    public bool IsReturnable { get; set; }
 21
 2322    public bool IsCancelled { get; set; }
 23
 24    /// <summary>danger | returnable | success | info | warning | secondary | null — тон строки как в старой таблице.</s
 1225    public string? RowTone { get; set; }
 26
 27    /// <summary>first | continuation | null — позиция в группе отправления внутри блока.</summary>
 1228    public string? ShipmentGroupPosition { get; set; }
 29
 30    /// <summary>Группировка по колонке: first | continuation (внутри блока), ключ группы — <see cref="GroupKey"/>.</sum
 431    public string? GroupPosition { get; set; }
 32
 433    public string? GroupKey { get; set; }
 34
 735    public int ShipmentGroupSize { get; set; }
 36
 237    public bool LabelExists { get; set; }
 38
 39    /// <summary>ozon | yandex | other — определяет, какой пайплайн печати этикетки использовать.</summary>
 1240    public string? ClientKind { get; set; }
 41
 1142    public string? MarketStatus { get; set; }
 43
 1144    public bool FromFile { get; set; }
 45
 1146    public bool HasOzonPromotion { get; set; }
 47
 1148    public bool HasTransactionDocument { get; set; }
 49
 50    /// <summary>Проблемы заказа для значка и строки в ячейке: алерты, непроведённый 1С, упавшая транзакция. null — проб
 351    public List<OrderGridProblemDto>? Problems { get; set; }
 52
 53    // ---- гейт ShipmentNumber ----
 1154    public string? ShipmentNumber { get; set; }
 55
 56    /// <summary>ScanIt с новой этикетки Ozon; отдаётся вместе с номером заказа (тот же гейт), в ПКМ-меню строки — пункт
 1057    public string? Scanit { get; set; }
 58
 59    // ---- гейт Delivery / DeliveryType ----
 860    public string? DeliveryProvider { get; set; }
 61
 862    public string? DeliveryName { get; set; }
 63
 64    // ---- гейт TrackingNumber ----
 865    public string? TrackingNumber { get; set; }
 66
 67    // ---- гейт OzonClient ----
 1168    public string? OzonClient { get; set; }
 69
 970    public string? OzonClientType { get; set; }
 71
 72    // ---- гейт DeliveryCity ----
 873    public string? DeliveryCity { get; set; }
 74
 75    // ---- гейт ProcessingDate ----
 876    public DateTime? ProcessingDate { get; set; }
 77
 978    public string? ProcessingDateText { get; set; }
 79
 880    public string? ProcessingDateFull { get; set; }
 81
 82    // ---- гейт ShippingDate ----
 883    public DateTime? ShippingDate { get; set; }
 84
 885    public string? ShippingDateText { get; set; }
 86
 887    public string? ShippingDateFull { get; set; }
 88
 89    // ---- гейт DeliveryPeriod ----
 890    public string? DeliveryPeriodText { get; set; }
 91
 892    public string? DeliveryPeriodHoursText { get; set; }
 93
 894    public string? TimeLeftText { get; set; }
 95
 896    public int? TimeLeftDays { get; set; }
 97
 898    public bool DeliveryOverdue { get; set; }
 99
 100    // ---- гейт ProductKey ----
 8101    public string? ProductKey { get; set; }
 102
 8103    public string? ImageUrl { get; set; }
 104
 8105    public string? Barcode { get; set; }
 106
 107    // ---- гейт Manufacturer ----
 8108    public string? Manufacturer { get; set; }
 109
 8110    public int? EtProducerId { get; set; }
 111
 112    // ---- гейт Article ----
 10113    public string? Article { get; set; }
 114
 8115    public string? ReplacementArticle { get; set; }
 116
 117    // ---- гейт ProductName ----
 9118    public string? ProductName { get; set; }
 119
 120    // ---- гейт ClientStatus ----
 8121    public string? ClientStatus { get; set; }
 122
 8123    public string? ClientStatusColor { get; set; }
 124
 8125    public string? CancellationReason { get; set; }
 126
 127    // ---- гейт AppStatus ----
 10128    public string? AppStatus { get; set; }
 129
 9130    public string? AppStatusColor { get; set; }
 131
 8132    public bool AppStatusIsFinal { get; set; }
 133
 8134    public string? CartItemStatus { get; set; }
 135
 8136    public string? CartItemStatusColor { get; set; }
 137
 8138    public int? CartItemStatusId { get; set; }
 139
 8140    public string? SupplierStatus { get; set; }
 141
 8142    public string? SupplierStatusColor { get; set; }
 143
 8144    public string? SupplierStatusProviderKey { get; set; }
 145
 8146    public string? SupplierStatusTooltip { get; set; }
 147
 8148    public string? SupplierExpectedDeliveryText { get; set; }
 149
 8150    public string? SupplierExpectedDeliveryDaysLeft { get; set; }
 151
 8152    public string? ReturnStatusText { get; set; }
 153
 154    // ---- гейт ShipmentWarehouse ----
 8155    public string? ShipmentWarehouse { get; set; }
 156
 8157    public string? ZasylWarehouse { get; set; }
 158
 8159    public string? ReturnWarehouseName { get; set; }
 160
 161    // ---- гейт LastStatusChangeDate ----
 8162    public DateTime? LastStatusChangeDate { get; set; }
 163
 8164    public string? LastStatusChangeDateText { get; set; }
 165
 8166    public string? LastStatusChangeDateFull { get; set; }
 167
 168    // ---- гейт Supplier ----
 9169    public string? Supplier { get; set; }
 170
 8171    public string? SupplierDirection { get; set; }
 172
 173    // ---- гейт SupplierOrderNumber ----
 8174    public string? OrderNumberToSupplier { get; set; }
 175
 176    // ---- гейт Category ----
 8177    public string? Category { get; set; }
 178
 179    // ---- гейт VolumeWeight ----
 0180    public double? VolumetricWeight { get; set; }
 181
 0182    public decimal? Weight { get; set; }
 183
 184    // ---- гейт SitePrice ----
 8185    public decimal? SitePrice { get; set; }
 186
 187    // ---- гейт Quantity ----
 8188    public int? Quantity { get; set; }
 189
 190    // ---- гейт Price ----
 10191    public decimal? Price { get; set; }
 192
 8193    public string? Currency { get; set; }
 194
 8195    public string? PriceIndexColor { get; set; }
 196
 197    // ---- гейт ShipmentTotal ----
 8198    public decimal? ShipmentAmount { get; set; }
 199
 200    // ---- гейт PurchasePrice ----
 9201    public decimal? PurchasePrice { get; set; }
 202
 203    // ---- гейт Cost ----
 10204    public decimal? CostPrice { get; set; }
 205
 0206    public decimal? ExtraExpenses { get; set; }
 207
 23208    public List<OrderGridExtraExpenseDto> ExtraExpensesItems { get; set; } = [];
 209
 210    // ---- гейт OzonCommission ----
 8211    public decimal? OzonCommissionMin { get; set; }
 212
 8213    public decimal? OzonCommissionMax { get; set; }
 214
 215    // ---- гейт Profit ----
 10216    public decimal? ProfitMin { get; set; }
 217
 9218    public decimal? ProfitMax { get; set; }
 219
 8220    public decimal? TargetProfit135 { get; set; }
 221
 222    // ---- гейт MarkupPercent ----
 8223    public decimal? DiscountMin { get; set; }
 224
 8225    public decimal? DiscountMax { get; set; }
 226}
 227
 228public sealed class OrderGridExtraExpenseDto
 229{
 230    public string Type { get; set; } = string.Empty;
 231
 232    public decimal Amount { get; set; }
 233
 234    public string? Comment { get; set; }
 235}
 236
 237/// <summary>Ответ на запрос блока строк.</summary>
 238public sealed class OrdersGridDataResult
 239{
 240    public List<OrderGridRowDto> Rows { get; set; } = [];
 241
 242    public int TotalCount { get; set; }
 243
 244    /// <summary>Последний индекс для Infinite Row Model (равен TotalCount — общее число известно всегда).</summary>
 245    public int LastRow { get; set; }
 246
 247    public IReadOnlyCollection<string> AllowedColumns { get; set; } = [];
 248
 249    public int BlockSize { get; set; }
 250}
 251
 252/// <summary>severity: danger | warning; kind: alert | onec | transaction.</summary>
 253public sealed record OrderGridProblemDto(string Severity, string Kind, string Text);

Methods/Properties

get_Id()
get_ShipmentId()
get_CartItemId()
get_IsArchived()
get_IsReturned()
get_IsReturnable()
get_IsCancelled()
get_RowTone()
get_ShipmentGroupPosition()
get_GroupPosition()
get_GroupKey()
get_ShipmentGroupSize()
get_LabelExists()
get_ClientKind()
get_MarketStatus()
get_FromFile()
get_HasOzonPromotion()
get_HasTransactionDocument()
get_Problems()
get_ShipmentNumber()
get_Scanit()
get_DeliveryProvider()
get_DeliveryName()
get_TrackingNumber()
get_OzonClient()
get_OzonClientType()
get_DeliveryCity()
get_ProcessingDate()
get_ProcessingDateText()
get_ProcessingDateFull()
get_ShippingDate()
get_ShippingDateText()
get_ShippingDateFull()
get_DeliveryPeriodText()
get_DeliveryPeriodHoursText()
get_TimeLeftText()
get_TimeLeftDays()
get_DeliveryOverdue()
get_ProductKey()
get_ImageUrl()
get_Barcode()
get_Manufacturer()
get_EtProducerId()
get_Article()
get_ReplacementArticle()
get_ProductName()
get_ClientStatus()
get_ClientStatusColor()
get_CancellationReason()
get_AppStatus()
get_AppStatusColor()
get_AppStatusIsFinal()
get_CartItemStatus()
get_CartItemStatusColor()
get_CartItemStatusId()
get_SupplierStatus()
get_SupplierStatusColor()
get_SupplierStatusProviderKey()
get_SupplierStatusTooltip()
get_SupplierExpectedDeliveryText()
get_SupplierExpectedDeliveryDaysLeft()
get_ReturnStatusText()
get_ShipmentWarehouse()
get_ZasylWarehouse()
get_ReturnWarehouseName()
get_LastStatusChangeDate()
get_LastStatusChangeDateText()
get_LastStatusChangeDateFull()
get_Supplier()
get_SupplierDirection()
get_OrderNumberToSupplier()
get_Category()
get_VolumetricWeight()
get_Weight()
get_SitePrice()
get_Quantity()
get_Price()
get_Currency()
get_PriceIndexColor()
get_ShipmentAmount()
get_PurchasePrice()
get_CostPrice()
get_ExtraExpenses()
get_ExtraExpensesItems()
get_OzonCommissionMin()
get_OzonCommissionMax()
get_ProfitMin()
get_ProfitMax()
get_TargetProfit135()
get_DiscountMin()
get_DiscountMax()