Exemple #1
0
        private static DbOffer CreateDbOffer(DbSneaker sneaker, ListingSize size, Listing listing, RootParsingObject shop, Shop shopCatalogItem)
        {
            var deliveryUs = shopCatalogItem.delivery.Find(x => x.location == "US");
            var offer      = new DbOffer();

            offer.url        = listing.url;
            offer.price      = listing.price;
            offer.old_price  = listing.old_price;
            offer.currency   = shopCatalogItem.currency;
            offer.stock_name = shop.market_info.name;
            offer.price_usd_with_delivery_to_usa_and_minus_vat = AllStockExporter.GetAllStockPrice(offer.price, offer.currency, deliveryUs.value, deliveryUs.vat);
            return(offer);
        }