| | | 1 | | using OzonDomains.Models.Partners; |
| | | 2 | | using Services.PartnerServices; |
| | | 3 | | |
| | | 4 | | namespace OzonOrdersWeb.Areas.PartnerOffice.Models; |
| | | 5 | | |
| | | 6 | | public sealed class PartnerCreateForm |
| | | 7 | | { |
| | | 8 | | public string Name { get; set; } = string.Empty; |
| | | 9 | | public string Email { get; set; } = string.Empty; |
| | | 10 | | public string? GoogleEmail { get; set; } |
| | | 11 | | } |
| | | 12 | | |
| | | 13 | | public sealed class PartnerMainForm |
| | | 14 | | { |
| | | 15 | | public string Name { get; set; } = string.Empty; |
| | | 16 | | public string? Email { get; set; } |
| | | 17 | | public string? GoogleEmail { get; set; } |
| | | 18 | | public bool IsActive { get; set; } |
| | | 19 | | public bool NotifyEmail { get; set; } |
| | | 20 | | public bool NotifyTelegram { get; set; } |
| | | 21 | | public string? NotificationEmail { get; set; } |
| | | 22 | | public string? TelegramChatId { get; set; } |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public sealed class PartnerPermissionsForm |
| | | 26 | | { |
| | | 27 | | public bool LabelPrint { get; set; } |
| | | 28 | | public bool Assemble { get; set; } |
| | | 29 | | public bool TrackNumber { get; set; } |
| | | 30 | | } |
| | | 31 | | |
| | | 32 | | public sealed record RuleLookupOption(string Value, string Label); |
| | | 33 | | |
| | | 34 | | /// <summary>Справочники для редактора правил: что владелец может выбрать в условиях.</summary> |
| | 0 | 35 | | public sealed record RuleLookups( |
| | 0 | 36 | | IReadOnlyList<RuleLookupOption> Statuses, |
| | 0 | 37 | | IReadOnlyList<RuleLookupOption> Warehouses, |
| | 0 | 38 | | IReadOnlyList<RuleLookupOption> Clients, |
| | 0 | 39 | | IReadOnlyList<RuleLookupOption> Marketplaces); |
| | | 40 | | |
| | | 41 | | public sealed record PartnerEditViewModel(PartnerDetailsDto Partner, RuleLookups Lookups); |