protected override void Map(IEnumerable <OrganizedShoppingCartItem> from, CheckoutConfirmModel to, dynamic parameters = null)
        {
            Guard.NotNull(to, nameof(to));
            Guard.NotNull(from, nameof(from));

            to.TermsOfServiceEnabled      = _orderSettings.TermsOfServiceEnabled;
            to.ShowEsdRevocationWaiverBox = _shoppingCartSettings.ShowEsdRevocationWaiverBox;
            to.BypassPaymentMethodInfo    = _paymentSettings.BypassPaymentMethodInfo;
            to.NewsLetterSubscription     = _shoppingCartSettings.NewsLetterSubscription;
            to.ThirdPartyEmailHandOver    = _shoppingCartSettings.ThirdPartyEmailHandOver;

            if (_shoppingCartSettings.ThirdPartyEmailHandOver != CheckoutThirdPartyEmailHandOver.None)
            {
                to.ThirdPartyEmailHandOverLabel = _shoppingCartSettings.GetLocalizedSetting(
                    x => x.ThirdPartyEmailHandOverLabel,
                    _services.WorkContext.WorkingLanguage,
                    _services.StoreContext.CurrentStore.Id,
                    true,
                    false);

                if (to.ThirdPartyEmailHandOverLabel.IsEmpty())
                {
                    to.ThirdPartyEmailHandOverLabel = T("Admin.Configuration.Settings.ShoppingCart.ThirdPartyEmailHandOverLabel.Default");
                }
            }
        }
 protected override void Map(IEnumerable <OrganizedShoppingCartItem> from, CheckoutConfirmModel to, dynamic parameters = null)
 => throw new NotImplementedException();
 public static async Task MapAsync(this IEnumerable <OrganizedShoppingCartItem> entity, CheckoutConfirmModel model)
 {
     await MapperFactory.MapAsync(entity, model, null);
 }