< Summary

Information
Class: Services.ApiServices.OzonApi.Filters.PackageLabelError
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/PackageLabelGetResponse.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 52
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_Code()100%210%
get_Message()100%210%

File(s)

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

#LineLine coverage
 1using Newtonsoft.Json;
 2using System.Collections.Generic;
 3
 4namespace Services.ApiServices.OzonApi.Filters
 5{
 6    /// <summary>Ответ POST /v2/posting/fbs/package-label/get (без обёртки result).</summary>
 7    public class PackageLabelGetResponse
 8    {
 9        [JsonProperty("file_url")]
 10        public string? FileUrl { get; set; }
 11
 12        [JsonProperty("status")]
 13        public PackageLabelStatus? Status { get; set; }
 14
 15        [JsonProperty("error")]
 16        public PackageLabelError? Error { get; set; }
 17    }
 18
 19    public class PackageLabelStatus
 20    {
 21        /// <summary>"pending", "in_progress", "completed", "error".</summary>
 22        [JsonProperty("code")]
 23        public string? Code { get; set; }
 24
 25        [JsonProperty("postings_count")]
 26        public int PostingsCount { get; set; }
 27
 28        [JsonProperty("printed_postings_count")]
 29        public int PrintedPostingsCount { get; set; }
 30
 31        [JsonProperty("unprinted_postings")]
 32        public List<UnprintedPosting>? UnprintedPostings { get; set; }
 33    }
 34
 35    public class PackageLabelError
 36    {
 37        [JsonProperty("code")]
 038        public string? Code { get; set; }
 39
 40        [JsonProperty("message")]
 041        public string? Message { get; set; }
 42    }
 43
 44    public class UnprintedPosting
 45    {
 46        [JsonProperty("posting_number")]
 47        public string? PostingNumber { get; set; }
 48
 49        [JsonProperty("message")]
 50        public string? Message { get; set; }
 51    }
 52}

Methods/Properties

get_Code()
get_Message()