| | | 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 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")] |
| | | 26 | | 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")] |
| | 0 | 36 | | public long ProductId { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary>Количество экземпляров.</summary> |
| | | 39 | | [JsonProperty("quantity")] |
| | 0 | 40 | | public int Quantity { get; set; } |
| | | 41 | | } |
| | | 42 | | } |