public List <OrderLine> GetOrderLines(ICart cart, OrderGroupTotals orderGroupTotals, bool sendProductAndImageUrlField) { var shipment = cart.GetFirstShipment(); var currentCountry = shipment.ShippingAddress?.CountryCode ?? cart.Market.Countries.FirstOrDefault(); var includedTaxesOnLineItems = !CountryCodeHelper.GetContinentByCountry(currentCountry).Equals("NA", StringComparison.InvariantCultureIgnoreCase); return(GetOrderLines(cart, orderGroupTotals, includedTaxesOnLineItems, sendProductAndImageUrlField)); }
public bool CanSendPersonalInformation(string countryCode) { var continent = CountryCodeHelper.GetContinentByCountry(countryCode); return(!continent.Equals("EU", StringComparison.InvariantCultureIgnoreCase)); }