Exemplo n.º 1
0
        public int EnqueueProductUpdateRequestArray(string primaryAction, string secondaryAction, ProductUpdateRequestItem[] queryItem)
        {
            Log.ForCurrent.DebugFormat("Enqueueing ProductUpdateRequestArray. Primary action: {0}. Secondary action: {1}", primaryAction, secondaryAction);
            var messageId = new QueueOf_ProductUpdateRequestArray_ProductUpdateResponseClient().EnqueueMessage(primaryAction, secondaryAction, queryItem);

            LogRequest(messageId, primaryAction, secondaryAction, queryItem);

            return messageId;
        }
Exemplo n.º 2
0
        public void PublishPriceUpdate(string marketKey, ArticleForPriceAndStockUpdate articleWithPriceUpdates)
        {
            if (articleWithPriceUpdates == null)
                return;

            var productUpdates = new ProductUpdateRequestItem
            {
                SKU = articleWithPriceUpdates.PimSku,
                MarketName = marketKey,
                Price = articleWithPriceUpdates.Price
            };

            var messageId = _productUpdateEnqueuer.EnqueueProductUpdateRequest(PrimaryAction.UpdateProductBySku, SecondaryAction.PriceAndStock, productUpdates);
            _productUpdateDequeuer.DequeueProductUpdateResponse(messageId);
        }
Exemplo n.º 3
0
        public void PublishPriceUpdate(string marketKey, ArticleForPriceAndStockUpdate articleWithPriceUpdates)
        {
            if (articleWithPriceUpdates == null)
            {
                return;
            }

            var productUpdates = new ProductUpdateRequestItem
            {
                SKU        = articleWithPriceUpdates.PimSku,
                MarketName = marketKey,
                Price      = articleWithPriceUpdates.Price
            };

            var messageId = _productUpdateEnqueuer.EnqueueProductUpdateRequest(PrimaryAction.UpdateProductBySku, SecondaryAction.PriceAndStock, productUpdates);

            _productUpdateDequeuer.DequeueProductUpdateResponse(messageId);
        }
Exemplo n.º 4
0
        public int EnqueueProductUpdateRequest(string primaryAction, string secondaryAction, ProductUpdateRequestItem queryItem)
        {
            Log.ForCurrent.DebugFormat("Enqueueing ProductUpdateRequest. Primary action: {0}. Secondary action: {1}", primaryAction, secondaryAction);
            var messageId = new QueueOf_ProductUpdateRequest_ProductUpdateResponseClient().EnqueueMessage(primaryAction, secondaryAction, queryItem);

            LogRequest(messageId, primaryAction, secondaryAction, queryItem);

            return(messageId);
        }