Example #1
0
        public async Task <CommandResult> Handle(DeliveryAutoPointsCheckCommand request, CancellationToken cancellationToken)
        {
            var result = new CommandResult {
                Success = true
            };
            var check = new DeliveryPointsCheck(_httpService);

            var requestModel = new DeliveryPointsRequest
            {
                CityKey           = "4577d856-322b-e311-8b0d-00155d037960",
                DeliveryMethodKey = 4,
                LanguageId        = 2,
                PaymentMethodId   = 21,
                RegionId          = 57
            };

            result.CheckModel = await check.CheckApi(request.CheckSettings, requestModel);

            return(result);
        }
        public async Task <CommandResult> Handle(NovaPoshtaPointsCheckCommand request, CancellationToken cancellationToken)
        {
            var result = new CommandResult {
                Success = true
            };
            var check = new DeliveryPointsCheck(_httpService);

            var requestModel = new DeliveryPointsRequest
            {
                CityKey           = "e71f8842-4b33-11e4-ab6d-005056801329",
                DeliveryMethodKey = 3,
                LanguageId        = 2,
                PaymentMethodId   = 21,
                RegionId          = 57
            };

            result.CheckModel = await check.CheckApi(request.CheckSettings, requestModel);

            return(result);
        }
        public async Task <CommandResult> Handle(StoAutodocPointsCheckCommand request, CancellationToken cancellationToken)
        {
            var result = new CommandResult {
                Success = true
            };
            var check = new DeliveryPointsCheck(_httpService);

            var requestModel = new DeliveryPointsRequest
            {
                CityKey           = "10763",
                DeliveryMethodKey = 5,
                DistrictId        = 598,
                LanguageId        = 2,
                PaymentMethodId   = 21,
                RegionId          = 57
            };

            result.CheckModel = await check.CheckApi(request.CheckSettings, requestModel);

            return(result);
        }