| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices.OzonApi.Filters |
| | | 4 | | { |
| | | 5 | | // Запрос к /v4/posting/fbs/ship |
| | | 6 | | public class FbsShipRequest : IRequestModel |
| | | 7 | | { |
| | | 8 | | [JsonProperty("packages")] |
| | | 9 | | public List<FbsShipPackage>? Packages { get; set; } = new(); |
| | | 10 | | |
| | | 11 | | [JsonProperty("posting_number")] |
| | | 12 | | public string? PostingNumber { get; set; } = string.Empty; |
| | | 13 | | |
| | | 14 | | [JsonProperty("with")] |
| | | 15 | | public FbsShipWith? With { get; set; } |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public class FbsShipPackage |
| | | 19 | | { |
| | | 20 | | [JsonProperty("products")] |
| | | 21 | | public List<FbsShipProduct>? Products { get; set; } = new(); |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | public class FbsShipProduct |
| | | 25 | | { |
| | | 26 | | // product_id из примеров (SKU товара в Ozon) |
| | | 27 | | [JsonProperty("product_id")] |
| | 17 | 28 | | public long ProductId { get; set; } |
| | | 29 | | |
| | | 30 | | [JsonProperty("quantity")] |
| | 19 | 31 | | public int Quantity { get; set; } |
| | | 32 | | } |
| | | 33 | | |
| | | 34 | | public class FbsShipWith |
| | | 35 | | { |
| | | 36 | | [JsonProperty("additional_data")] |
| | | 37 | | public bool AdditionalData { get; set; } |
| | | 38 | | } |
| | | 39 | | } |
| | | 40 | | |
| | | 41 | | |