Class CustomerPriceGroupService
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
Provides operations for managing customer price groups.
public abstract class CustomerPriceGroupService : ICacheStorage<string, CustomerPriceGroup>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
CustomerPriceGroupService
- 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
DeleteCustomerPriceGroup(CustomerPriceGroup)
Deletes the specified customer price group.
public abstract void DeleteCustomerPriceGroup(CustomerPriceGroup group)
Parameters
groupCustomerPriceGroupThe customer price group to delete.
GetAllCustomerPriceGroups()
Retrieves all customer price groups.
public abstract IEnumerable<CustomerPriceGroup> GetAllCustomerPriceGroups()
Returns
- IEnumerable<CustomerPriceGroup>
Collection of all customer price groups.
GetCustomerPriceGroupById(string)
Retrieves a customer price group by ID.
public abstract CustomerPriceGroup? GetCustomerPriceGroupById(string id)
Parameters
idstringThe ID of the customer price group.
Returns
- CustomerPriceGroup
The customer price group if found; otherwise,
null.
SaveCustomerPriceGroup(CustomerPriceGroup)
Saves a customer price group.
public abstract void SaveCustomerPriceGroup(CustomerPriceGroup group)
Parameters
groupCustomerPriceGroupThe customer price group to save.
SetCacheType<TObjectCache>()
Changes the storage container
public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, CustomerPriceGroup>
Type Parameters
TObjectCache