< Summary

Information
Class: Services.ApiServices.OzonApi.Filters.FbsSplitPosting
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/FbsSplitRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 42
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_Products()100%210%

File(s)

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

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices.OzonApi.Filters
 4{
 5    /// <summary>
 6    /// Запрос на разделение заказа на отправления без сборки. POST /v1/posting/fbs/split.
 7    /// </summary>
 8    public class FbsSplitRequest : IRequestModel
 9    {
 10        /// <summary>Номер отправления.</summary>
 11        [JsonProperty("posting_number")]
 12        public string? PostingNumber { get; set; } = string.Empty;
 13
 14        /// <summary>Список отправлений, на которые поделится заказ.</summary>
 15        [JsonProperty("postings")]
 16        public List<FbsSplitPosting>? Postings { get; set; } = new();
 17    }
 18
 19    /// <summary>
 20    /// Отправление для разделения заказа.
 21    /// </summary>
 22    public class FbsSplitPosting
 23    {
 24        /// <summary>Список товаров в отправлении.</summary>
 25        [JsonProperty("products")]
 026        public List<FbsSplitProduct>? Products { get; set; } = new();
 27    }
 28
 29    /// <summary>
 30    /// Товар в отправлении при разделении заказа.
 31    /// </summary>
 32    public class FbsSplitProduct
 33    {
 34        /// <summary>Идентификатор товара в системе Ozon — SKU.</summary>
 35        [JsonProperty("product_id")]
 36        public long ProductId { get; set; }
 37
 38        /// <summary>Количество экземпляров.</summary>
 39        [JsonProperty("quantity")]
 40        public int Quantity { get; set; }
 41    }
 42}

Methods/Properties

get_Products()