| | | 1 | | using OzonOrdersWeb.WebServices.Orders.Grid; |
| | | 2 | | using OzonOrdersWeb.WebServices.Transactions.Grid.Contracts; |
| | | 3 | | |
| | | 4 | | namespace OzonOrdersWeb.Areas.Studio2.ViewModels.TransactionsGrid; |
| | | 5 | | |
| | | 6 | | /// <summary>Данные страницы /Studio2/TransactionsGrid/{slug}: как у OrdersGrid плюс определение транзакции и Id заказов |
| | | 7 | | public sealed class TransactionsGridIndexViewModel |
| | | 8 | | { |
| | | 9 | | public required TransactionDefinitionDto Definition { get; init; } |
| | | 10 | | public IReadOnlyList<int> OrderIds { get; init; } = []; |
| | | 11 | | public string? ReturnUrl { get; init; } |
| | | 12 | | public IReadOnlyCollection<string> AllowedColumns { get; init; } = []; |
| | | 13 | | public IReadOnlyDictionary<string, string> StatusColors { get; init; } = new Dictionary<string, string>(); |
| | | 14 | | public IReadOnlyDictionary<string, string> ClientStatusColors { get; init; } = new Dictionary<string, string>(); |
| | | 15 | | public bool IsAdmin { get; init; } |
| | | 16 | | public IReadOnlyList<OrdersGridFormulaField> FormulaFields { get; init; } = []; |
| | | 17 | | public IReadOnlyDictionary<string, string> UserSettings { get; init; } = new Dictionary<string, string>(); |
| | | 18 | | |
| | | 19 | | /// <summary>Источники предложений API-поставщиков (порт реестра из _TransactionScript).</summary> |
| | | 20 | | public IReadOnlyList<TransactionGridQuotationSource> QuotationSources { get; init; } = []; |
| | | 21 | | } |
| | | 22 | | |
| | | 23 | | /// <summary>Провайдер предложений: ключ, имя, endpoint поиска и флаг включённости из настроек.</summary> |
| | 0 | 24 | | public sealed record TransactionGridQuotationSource(string ProviderKey, string DisplayName, string Endpoint, string? War |