| | | 1 | | using OzonDomains; |
| | | 2 | | |
| | | 3 | | namespace OzonOrdersWeb.Areas.Studio2.ViewModels.ApiSupplierSettings; |
| | | 4 | | |
| | | 5 | | public sealed class ProfitLigaSettingsViewModel : ApiSupplierSettingsViewModelBase |
| | | 6 | | { |
| | | 7 | | public ProfitLigaSettingsViewModel() => CurrencyCode = CurrencyCode.RUB; |
| | | 8 | | |
| | | 9 | | /// <summary>Связи «склад отгрузки Studio2 → торговая точка Профит-Лиги».</summary> |
| | | 10 | | public List<ProfitLigaPointMappingViewModel> PointMappings { get; set; } = new(); |
| | | 11 | | |
| | | 12 | | /// <summary>Доступные точки доставки и самовывоза из GET /cart/params.</summary> |
| | | 13 | | public List<ProfitLigaPointOptionViewModel> Points { get; set; } = new(); |
| | | 14 | | |
| | | 15 | | public string? PointsLoadError { get; set; } |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public sealed class ProfitLigaPointMappingViewModel |
| | | 19 | | { |
| | 2 | 20 | | public int ShipmentWarehouseId { get; set; } |
| | 3 | 21 | | public string WarehouseName { get; set; } = string.Empty; |
| | 2 | 22 | | public string? PointCode { get; set; } |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public sealed class ProfitLigaPointOptionViewModel |
| | | 26 | | { |
| | | 27 | | public string Code { get; set; } = string.Empty; |
| | | 28 | | public string DisplayName { get; set; } = string.Empty; |
| | | 29 | | public bool IsPickup { get; set; } |
| | | 30 | | } |