| | | 1 | | using Microsoft.AspNetCore.Authorization; |
| | | 2 | | using Microsoft.AspNetCore.Mvc; |
| | | 3 | | using Microsoft.Extensions.Caching.Memory; |
| | | 4 | | using OzonDomains.Models; |
| | | 5 | | using Services.ApiServices.ArmtekApi; |
| | | 6 | | using Services.ApiSupplierSettingsServices; |
| | | 7 | | using Services.PriceСlculationServices; |
| | | 8 | | |
| | | 9 | | namespace OzonOrdersWeb.Areas.Studio2.Controllers; |
| | | 10 | | |
| | | 11 | | [Area("Studio2")] |
| | | 12 | | [Authorize(Roles = "User,Admin")] |
| | | 13 | | public sealed class ArmtekByPriceController : ArmtekPriceController |
| | | 14 | | { |
| | | 15 | | public ArmtekByPriceController(ArmtekByDataManager armtekDataManager, |
| | | 16 | | ApiSupplierSettingsService settingsService, |
| | | 17 | | ICurrencyRateFetcher currencyRateFetcher, |
| | | 18 | | IMemoryCache cache, |
| | | 19 | | ArmtekDeliveryAddressMappingService deliveryAddressMappings, |
| | | 20 | | ArmtekStoreDirectory storeDirectory) |
| | 0 | 21 | | : base(armtekDataManager, settingsService, currencyRateFetcher, cache, deliveryAddressMappings, storeDirectory) |
| | | 22 | | { |
| | 0 | 23 | | } |
| | | 24 | | |
| | 0 | 25 | | protected override string ProviderDisplayName => "Армтек BY"; |
| | 0 | 26 | | protected override string ProviderCacheKey => "ArmtekBy"; |
| | | 27 | | |
| | | 28 | | protected override Task<ApiSupplierSettings> GetSettingsAsync(CancellationToken cancellationToken) |
| | 0 | 29 | | => SettingsService.GetArmtekByAsync(cancellationToken); |
| | | 30 | | } |