public ConfigurationBuilder AddProduct(string id, ProductType type, IDs storeIDs, IEnumerable <PayoutDefinition> payouts) { var specificId = id; // Extract our store specific ID if present, according to the current store. if (storeIDs != null) { specificId = storeIDs.SpecificIDForStore(factory.storeName, id); } var product = new ProductDefinition(id, specificId, type); product.SetPayouts(payouts); m_Products.Add(product); return(this); }