/// <summary>
        /// Gets selected checkout attributes
        /// </summary>
        /// <param name="attributes">Attributes</param>
        /// <returns>Selected checkout attributes</returns>
        public static CheckoutAttributeCollection ParseCheckoutAttributes(string attributes)
        {
            var caCollection = new CheckoutAttributeCollection();
            var Ids          = ParseCheckoutAttributeIds(attributes);

            foreach (int id in Ids)
            {
                var ca = CheckoutAttributeManager.GetCheckoutAttributeById(id);
                if (ca != null)
                {
                    caCollection.Add(ca);
                }
            }
            return(caCollection);
        }
        private static CheckoutAttributeCollection DBMapping(DBCheckoutAttributeCollection dbCollection)
        {
            if (dbCollection == null)
            {
                return(null);
            }

            var collection = new CheckoutAttributeCollection();

            foreach (var dbItem in dbCollection)
            {
                var item = DBMapping(dbItem);
                collection.Add(item);
            }

            return(collection);
        }