Esempio n. 1
0
        public async Task AddShippingAttributes(string productId, TestProductShipping shippingAttributes)
        {
            var request  = new { Shipping = shippingAttributes };
            var response = await _client.Products.PatchEntity(productId, request);

            GenericResponseValidation(response.StatusCode, nameof(shippingAttributes));
        }
Esempio n. 2
0
        public void Update_Product_Shipping()
        {
            string productId = "MXMX2255-prod";
            var    shipping  = new TestProductShipping
            {
                IsQuickShip       = true,
                IsFreeShip        = false,
                IsFreightOnly     = false,
                FreightClass      = 115,
                WeightActual      = 4.5M,
                WeightDimensional = 20,
                Width             = 7,
                Height            = 1,
                Length            = 13
            };

            DataFactory.Products.UpdateOfferingDescription(productId, "This product is dangerous");
            DataFactory.Products.UpdateProp65Message(productId, "The prop65 is enabled for this product");
            DataFactory.Products.UpdateShippingAttributes(productId, shipping);
            DataFactory.Products.Complete();
        }
Esempio n. 3
0
 public void UpdateShippingAttributes(string productId, TestProductShipping shippingAttributes)
 {
     Validator();
     _merchandiseProcessor.AddShippingAttributes(productId, shippingAttributes).Wait();
 }