Beispiel #1
0
        public Product GetProduct(AmazonListing listing)
        {
            var product = new Product
            {
                Condition = new ConditionInfo {
                    ConditionType = listing.Condition, ConditionNote = listing.ConditionNote
                },
                SKU = listing.SellerSKU,
                StandardProductID = new StandardProductID()
                {
                    Type  = listing.StandardProductIDType,
                    Value = listing.StandardProductId
                },
                DescriptionData = new ProductDescriptionData()
                {
                    Brand         = listing.Brand,
                    Title         = listing.Title,
                    Manufacturer  = listing.Manafacturer,
                    MfrPartNumber = listing.MfrPartNumber
                }
            };

            if (listing.ReleaseDate.HasValue)
            {
                product.ReleaseDate = listing.ReleaseDate.Value;
            }
            return(product);
        }
Beispiel #2
0
        public FileStream GetSingleProductDeleteFeed(AmazonListing listing)
        {
            var product = new Product {
                SKU = listing.SellerSKU
            };

            return(_amazonGenerateFeedContentService.GetSingleFeed(product, AmazonEnvelopeMessageType.Product, AmazonEnvelopeMessageOperationType.Delete));
        }
 public FileStream GetSingleProductDeleteFeed(AmazonListing listing)
 {
     var product = new Product {SKU = listing.SellerSKU};
     return _amazonGenerateFeedContentService.GetSingleFeed(product, AmazonEnvelopeMessageType.Product, AmazonEnvelopeMessageOperationType.Delete);
 }
 public Product GetProduct(AmazonListing listing)
 {
     var product=new Product
     {
         Condition = new ConditionInfo { ConditionType = listing.Condition, ConditionNote = listing.ConditionNote},
         SKU = listing.SellerSKU,
         StandardProductID = new StandardProductID()
         {
             Type = listing.StandardProductIDType,
             Value = listing.StandardProductId
         },
         DescriptionData = new ProductDescriptionData()
         {
             Brand = listing.Brand,
             Title = listing.Title,
             Manufacturer = listing.Manafacturer,
             MfrPartNumber = listing.MfrPartNumber
         }
     };
     if (listing.ReleaseDate.HasValue)
         product.ReleaseDate = listing.ReleaseDate.Value;
     return product;
 }