Exemplo n.º 1
0
        public static ShopifyModel.Discount ToShopifyModel(this Discount discount)
        {
            var result = new ShopifyModel.Discount
            {
                Amount  = discount.Amount.Amount * 100,
                Code    = discount.PromotionId,
                Id      = discount.PromotionId,
                Savings = -discount.Amount.Amount * 100
            };

            return(result);
        }
Exemplo n.º 2
0
        public static ShopifyModel.Discount ToShopifyModel(this Discount discount)
        {
            var result = new ShopifyModel.Discount
            {
                Amount = discount.Amount.Amount * 100,
                Code = discount.PromotionId,
                Id = discount.PromotionId,
                Savings = -discount.Amount.Amount * 100
            };

            return result;
        }