| | | 1 | | namespace Services.ApiServices.MikadoApi; |
| | | 2 | | |
| | | 3 | | /// <summary>Read-only операции Микадо, используемые диагностической консолью.</summary> |
| | | 4 | | public sealed class MikadoDataManager |
| | | 5 | | { |
| | | 6 | | private readonly MikadoHttpClient _client; |
| | 32 | 7 | | public MikadoDataManager(MikadoHttpClient client) => _client = client; |
| | | 8 | | |
| | 0 | 9 | | public Task<string> GetMyIpAsync(CancellationToken ct = default) => _client.GetMyIpAsync(ct); |
| | 0 | 10 | | public Task<string> CodeSearchTestAsync(CancellationToken ct = default) => _client.CodeSearchTestAsync(ct); |
| | 0 | 11 | | public Task<string> CodeInfoTestAsync(string code, CancellationToken ct = default) => _client.CodeInfoTestAsync(code |
| | 2 | 12 | | public Task<string> CodeBrandStockInfoAsync(string code, string brand, CancellationToken ct = default) => _client.Co |
| | 0 | 13 | | public Task<string> GetStocksInfoAsync(CancellationToken ct = default) => _client.GetStocksInfoAsync(ct); |
| | 4 | 14 | | public Task<string> GetBasketAsync(CancellationToken ct = default) => _client.GetBasketAsync(ct); |
| | 5 | 15 | | public Task<string> AddToBasketStrictAsync(string orderCode, int quantity, int deliveryType, string notes, int expre |
| | 1 | 16 | | public Task<string> DeleteBasketItemAsync(long itemId, CancellationToken ct = default) => _client.DeleteBasketItemAs |
| | 3 | 17 | | public Task<string> GetOrderHistoryAsync(long basketItemId, CancellationToken ct = default) => _client.GetOrderHisto |
| | 0 | 18 | | public Task<string> GetExpressOptionsAsync(string orderCode, int stockId, CancellationToken ct = default) => _client |
| | 0 | 19 | | public Task<string> GetDeliveriesAsync(DateTime from, DateTime to, CancellationToken ct = default) => _client.GetDel |
| | | 20 | | } |