Ejemplo n.º 1
0
        public static Currency ToShopifyModel(this StorefrontModel.Common.Currency currency)
        {
            var result = new Currency();

            result.InjectFrom <StorefrontModel.Common.NullableAndEnumValueInjecter>(currency);

            return(result);
        }
Ejemplo n.º 2
0
        public virtual Currency ToLiquidCurrency(StorefrontModel.Common.Currency currency)
        {
            var result = new Currency();

            result.InjectFrom <StorefrontModel.Common.NullableAndEnumValueInjecter>(currency);

            return(result);
        }
Ejemplo n.º 3
0
        public virtual Currency ToLiquidCurrency(StorefrontModel.Common.Currency currency)
        {
            var result = new Currency();

            result.Code         = currency.Code;
            result.CurrencyCode = currency.Code;
            result.EnglishName  = currency.EnglishName;
            result.Symbol       = currency.Symbol;

            return(result);
        }
Ejemplo n.º 4
0
        public static Currency ToShopifyModel(this StorefrontModel.Common.Currency currency)
        {
            var converter = ServiceLocator.Current.GetInstance <ShopifyModelConverter>();

            return(converter.ToLiquidCurrency(currency));
        }
Ejemplo n.º 5
0
        public static Currency ToShopifyModel(this StorefrontModel.Common.Currency currency)
        {
            var converter = new ShopifyModelConverter();

            return(converter.ToLiquidCurrency(currency));
        }