< Summary

Information
Class: OzonOrdersWeb.Areas.Studio2.ViewModels.Bitrix.SetProductPriceRequest
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/Bitrix/SetProductPriceRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 15
Coverable lines: 15
Total lines: 29
Line coverage: 0%
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_Article()100%210%
get_ClientName()100%210%
get_YourPrice()100%210%
get_OldPrice()100%210%
get_MinPrice()100%210%
get_CostPrice()100%210%
get_ProductId()100%210%
get_OfferId()100%210%
get_Vat()100%210%
get_ReportId()100%210%
get_OzonClientId()100%210%
get_PreviousPrice()100%210%
get_MarkupPct()100%210%
get_ColorIndexBefore()100%210%
get_CompetitorPrice()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/Bitrix/SetProductPriceRequest.cs

#LineLine coverage
 1namespace OzonOrdersWeb.Areas.Studio2.ViewModels.Bitrix;
 2
 3public class SetProductPriceRequest
 4{
 05    public string Article { get; set; } = string.Empty;
 06    public string ClientName { get; set; } = string.Empty;
 07    public double YourPrice { get; set; }
 08    public double OldPrice { get; set; }
 09    public double MinPrice { get; set; }
 010    public double CostPrice { get; set; }
 11    /// <summary>Ozon product_id из снимка — если задан, повторный запрос к Ozon не нужен.</summary>
 012    public long? ProductId { get; set; }
 13    /// <summary>Ozon offer_id из снимка.</summary>
 014    public string? OfferId { get; set; }
 15    /// <summary>Ставка НДС из снимка (e.g. "0", "0.1", "0.2").</summary>
 016    public string? Vat { get; set; }
 17    /// <summary>ID отчёта — для записи факта наката цены в BitrixStockSyncReportOzonPrices.</summary>
 018    public string? ReportId { get; set; }
 19    /// <summary>OzonClientId — для точного UPDATE по (ReportId, Article, OzonClientId).</summary>
 020    public int OzonClientId { get; set; }
 21    /// <summary>Цена до наката (truePrice из снимка) — для записи delta в БД.</summary>
 022    public double? PreviousPrice { get; set; }
 23    /// <summary>Надбавка % (p), использованная при расчёте рекомендованной цены.</summary>
 024    public decimal? MarkupPct { get; set; }
 25    /// <summary>Индекс цены до наката (colorIndex из снимка).</summary>
 026    public string? ColorIndexBefore { get; set; }
 27    /// <summary>Цена конкурента (P_min) из снимка.</summary>
 028    public decimal? CompetitorPrice { get; set; }
 29}