| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices.OzonApi.Filters |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Ответ на запрос разделения заказа на отправления. POST /v1/posting/fbs/split. |
| | | 7 | | /// </summary> |
| | | 8 | | public class FbsSplitResponse |
| | | 9 | | { |
| | | 10 | | /// <summary>Информация об изначальном отправлении.</summary> |
| | | 11 | | [JsonProperty("parent_posting")] |
| | | 12 | | public FbsSplitParentPosting? ParentPosting { get; set; } |
| | | 13 | | |
| | | 14 | | /// <summary>Список отправлений, на которые разделился заказ.</summary> |
| | | 15 | | [JsonProperty("postings")] |
| | | 16 | | public List<FbsSplitResultPosting>? Postings { get; set; } = new(); |
| | | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Информация об изначальном отправлении. |
| | | 21 | | /// </summary> |
| | | 22 | | public class FbsSplitParentPosting |
| | | 23 | | { |
| | | 24 | | /// <summary>Номер изначального отправления.</summary> |
| | | 25 | | [JsonProperty("posting_number")] |
| | | 26 | | public string? PostingNumber { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary>Список товаров в отправлении.</summary> |
| | | 29 | | [JsonProperty("products")] |
| | | 30 | | public List<FbsSplitProductInfo>? Products { get; set; } = new(); |
| | | 31 | | } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Результирующее отправление после разделения. |
| | | 35 | | /// </summary> |
| | | 36 | | public class FbsSplitResultPosting |
| | | 37 | | { |
| | | 38 | | /// <summary>Номер отправления.</summary> |
| | | 39 | | [JsonProperty("posting_number")] |
| | | 40 | | public string? PostingNumber { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary>Список товаров в отправлении.</summary> |
| | | 43 | | [JsonProperty("products")] |
| | | 44 | | public List<FbsSplitProductInfo>? Products { get; set; } = new(); |
| | | 45 | | } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Информация о товаре в отправлении. |
| | | 49 | | /// </summary> |
| | | 50 | | public class FbsSplitProductInfo |
| | | 51 | | { |
| | | 52 | | /// <summary>Идентификатор товара в системе Ozon — SKU.</summary> |
| | | 53 | | [JsonProperty("product_id")] |
| | 6 | 54 | | public long ProductId { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary>Количество экземпляров.</summary> |
| | | 57 | | [JsonProperty("quantity")] |
| | 12 | 58 | | public int Quantity { get; set; } |
| | | 59 | | } |
| | | 60 | | } |