internal async Task <CreateWarehouseProductResponse> CreateWarehouseProduct(CreateWarehouseProductRequest request)
        {
            if (request?.WarehouseProduct == null)
            {
                throw new Exception("No data provided to create a Warehouse Product");
            }

            if (!request.AcceptTermsAndConditions)
            {
                throw new Exception("Terms and Conditions must be accepted");
            }

            var apiResponse = await _client.PostAsync <CreateWarehouseProductResponse, CreateWarehouseProductRequest>("warehouse/products", request);

            return(apiResponse);
        }
Ejemplo n.º 2
0
        public async Task <CreateWarehouseProductResponse> CreateWarehouseProduct(CreateWarehouseProductRequest request)
        {
            var result = await _warehouseProductsService.CreateWarehouseProduct(request);

            return(result);
        }