| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | using Services.ApiServices.ArmtekApi.Converters; |
| | | 3 | | |
| | | 4 | | namespace Services.ApiServices.ArmtekApi.Models.Response; |
| | | 5 | | |
| | | 6 | | public sealed class ArmtekCreateOrderResponse |
| | | 7 | | { |
| | | 8 | | [JsonProperty("ITEMS")] public List<ArmtekCreateOrderItemResult> Items { get; set; } = []; |
| | | 9 | | } |
| | | 10 | | |
| | | 11 | | public sealed class ArmtekCreateOrderItemResult |
| | | 12 | | { |
| | | 13 | | [JsonProperty("ARTID")] public string? ArtId { get; set; } |
| | | 14 | | [JsonProperty("PIN")] public string Pin { get; set; } = string.Empty; |
| | | 15 | | [JsonProperty("BRAND")] public string Brand { get; set; } = string.Empty; |
| | | 16 | | [JsonProperty("REMAIN"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Remain { get; set; } |
| | | 17 | | [JsonProperty("ERROR")] public string? Error { get; set; } |
| | | 18 | | [JsonProperty("ERROR_MESSAGE")] public string? ErrorMessage { get; set; } |
| | | 19 | | [JsonProperty("RESULT")] public List<ArmtekCreateOrderAllocation> Result { get; set; } = []; |
| | | 20 | | } |
| | | 21 | | |
| | | 22 | | public sealed class ArmtekCreateOrderAllocation |
| | | 23 | | { |
| | 56 | 24 | | [JsonProperty("POSNR"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Posnr { get; set; } |
| | 86 | 25 | | [JsonProperty("KWMENG"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Quantity { get; set; } |
| | 86 | 26 | | [JsonProperty("PRICE"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Price { get; set; } |
| | 48 | 27 | | [JsonProperty("WAERS")] public string? Currency { get; set; } |
| | 40 | 28 | | [JsonProperty("DLVDT")] public string? DeliveryDate { get; set; } |
| | 64 | 29 | | [JsonProperty("VBELN")] public string? Vbeln { get; set; } |
| | 48 | 30 | | [JsonProperty("ERROR")] public string? Error { get; set; } |
| | | 31 | | } |