< Summary

Information
Class: Services.ApiServices.OzonApi.Filters.FbsShipProduct
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/FbsShipRequest.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 41
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_ProductId()100%11100%
get_Quantity()100%11100%

File(s)

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

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices.OzonApi.Filters
 4{
 5    // Запрос к /v4/posting/fbs/ship
 6    public class FbsShipRequest : IRequestModel
 7    {
 8        [JsonProperty("packages")]
 9        public List<FbsShipPackage>? Packages { get; set; } = new();
 10
 11        [JsonProperty("posting_number")]
 12        public string? PostingNumber { get; set; } = string.Empty;
 13
 14        [JsonProperty("with")]
 15        public FbsShipWith? With { get; set; }
 16    }
 17
 18    public class FbsShipPackage
 19    {
 20        [JsonProperty("products")]
 21        public List<FbsShipProduct>? Products { get; set; } = new();
 22    }
 23
 24    public class FbsShipProduct
 25    {
 26        // product_id из примеров (SKU товара в Ozon)
 27        [JsonProperty("product_id")]
 1728        public long ProductId { get; set; }
 29
 30        [JsonProperty("quantity")]
 1931        public int Quantity { get; set; }
 32    }
 33
 34    public class FbsShipWith
 35    {
 36        [JsonProperty("additional_data")]
 37        public bool AdditionalData { get; set; }
 38    }
 39}
 40
 41

Methods/Properties

get_ProductId()
get_Quantity()