public static BeymenSAPResult ReportItemsToSAP(BeymenSAPRequest request)
        {
            if (request == null)
            {
                return null;
            }
            BeymenSAPService.Beymen_eCommClient beymenService = new BeymenSAPService.Beymen_eCommClient();
            var urunler = MapVariantInfoListToUrunList(request.VariantInfoList);
            BeymenSAPResult result = new BeymenSAPResult();
            result.CollectionLocationCode = request.CollectionLocationCode;
            result.IdempotencyKey = request.IdempotencyKey;
            result.PackagingLocationCode = request.PackagingLocationCode;
            try
            {
                try
                {
                    string waybillNumber = beymenService.UrunToplama(request.IdempotencyKey, request.CollectionLocationCode, request.PackagingLocationCode, request.Status, urunler);
                    
                    result.WaybillNumber = waybillNumber;
                }
                catch (TimeoutException e)
                {
                    result.IsTimeout = true;
                    result.ErrorMessage = "Sistem cevap vermiyor.";
                }
            }
            catch (Exception e)
            {
                result.ErrorMessage = e.Message;
            }

            return result;
        }
        public static BeymenSAPResult ReportItemsToSAP(BeymenSAPRequest request)
        {
            bool isSuccess = Random.Next(1, 5) != 2;

            BeymenSAPResult result = new BeymenSAPResult
            {
                IdempotencyKey = request.IdempotencyKey,
                PackagingLocationCode = request.PackagingLocationCode,
                ErrorMessage = isSuccess ? null : "Hata-" + request.IdempotencyKey,
                WaybillNumber = isSuccess?"Test-Waybil-" + request.IdempotencyKey:null,
                CollectionLocationCode = request.CollectionLocationCode
            };
            return result;
        }