< Summary

Information
Class: Services.ApiServices.OzonApi.Filters.ProductPriceDetailsExternalIndexResponse
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/ProductPricesDetailsResponse.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 60
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_MinPrice()100%210%
get_Url()100%210%
get_PriceIndex()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/ProductPricesDetailsResponse.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices.OzonApi.Filters;
 4
 5public class ProductPricesDetailsResponse
 6{
 7    [JsonProperty("prices")]
 8    public List<ProductPriceDetailsItemResponse>? Prices { get; set; } = [];
 9}
 10
 11public class ProductPriceDetailsItemResponse
 12{
 13    [JsonProperty("offer_id")]
 14    public string? OfferId { get; set; }
 15
 16    [JsonProperty("sku")]
 17    public long Sku { get; set; }
 18
 19    [JsonProperty("customer_price")]
 20    public ProductPriceMoneyResponse? CustomerPrice { get; set; }
 21
 22    [JsonProperty("price")]
 23    public ProductPriceMoneyResponse? Price { get; set; }
 24
 25    [JsonProperty("discount_percent")]
 26    public decimal DiscountPercent { get; set; }
 27
 28    [JsonProperty("price_indexes")]
 29    public List<ProductPriceDetailsIndexResponse>? PriceIndexes { get; set; } = [];
 30}
 31
 32public class ProductPriceMoneyResponse
 33{
 34    [JsonProperty("amount")]
 35    public decimal Amount { get; set; }
 36
 37    [JsonProperty("currency")]
 38    public string? Currency { get; set; }
 39}
 40
 41public class ProductPriceDetailsIndexResponse
 42{
 43    [JsonProperty("external_index_data")]
 44    public ProductPriceDetailsExternalIndexResponse? ExternalIndexData { get; set; }
 45
 46    [JsonProperty("self_index_data")]
 47    public ProductPriceDetailsExternalIndexResponse? SelfIndexData { get; set; }
 48}
 49
 50public class ProductPriceDetailsExternalIndexResponse
 51{
 52    [JsonProperty("min_price")]
 053    public ProductPriceMoneyResponse? MinPrice { get; set; }
 54
 55    [JsonProperty("url")]
 056    public string? Url { get; set; }
 57
 58    [JsonProperty("price_index")]
 059    public decimal PriceIndex { get; set; }
 60}