| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | |
| | | 4 | | namespace 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")] |
| | 16 | 23 | | public string? Code { get; set; } |
| | | 24 | | |
| | | 25 | | [JsonProperty("postings_count")] |
| | 0 | 26 | | public int PostingsCount { get; set; } |
| | | 27 | | |
| | | 28 | | [JsonProperty("printed_postings_count")] |
| | 6 | 29 | | public int PrintedPostingsCount { get; set; } |
| | | 30 | | |
| | | 31 | | [JsonProperty("unprinted_postings")] |
| | 9 | 32 | | public List<UnprintedPosting>? UnprintedPostings { get; set; } |
| | | 33 | | } |
| | | 34 | | |
| | | 35 | | public class PackageLabelError |
| | | 36 | | { |
| | | 37 | | [JsonProperty("code")] |
| | | 38 | | public string? Code { get; set; } |
| | | 39 | | |
| | | 40 | | [JsonProperty("message")] |
| | | 41 | | 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 | | } |