Class DiscountService
- Namespace
- Dynamicweb.Ecommerce.Orders.Adjustments
- Assembly
- Dynamicweb.Ecommerce.dll
[Experimental("DWEX100001")]
public abstract class DiscountService : ICacheStorage<string, Discount>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
DiscountService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public abstract CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public abstract void ClearCache()
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
public abstract void ClearCache(IEnumerable<string> keys)
Parameters
keysIEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
public abstract void ClearCache(string key)
Parameters
keystringKey to reset
DeleteDiscountsById(IEnumerable<string>)
public abstract void DeleteDiscountsById(IEnumerable<string> ids)
Parameters
idsIEnumerable<string>
GetDiscountById(string)
public abstract Discount? GetDiscountById(string key)
Parameters
keystring
Returns
GetDiscounts()
public abstract IEnumerable<Discount> GetDiscounts()
Returns
GetProductDiscountPrice(PriceContext, PriceProductSelection)
public abstract IPriceInfo GetProductDiscountPrice(PriceContext context, PriceProductSelection selection)
Parameters
contextPriceContextselectionPriceProductSelection
Returns
Save(Discount)
public abstract void Save(Discount discount)
Parameters
discountDiscount
SetCache(Discount)
public abstract void SetCache(Discount discount)
Parameters
discountDiscount
SetCacheType<TObjectCache>()
Changes the storage container
public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, Discount>
Type Parameters
TObjectCache