Table of Contents

Class CustomerDiscountGroupService

Namespace
Dynamicweb.Ecommerce.Prices
Assembly
Dynamicweb.Ecommerce.dll

Provides operations for managing customer discount groups.

public abstract class CustomerDiscountGroupService : ICacheStorage<string, CustomerDiscountGroup>, ICacheStorage<string>, ICacheStorage
Inheritance
CustomerDiscountGroupService
Implements
Inherited Members

Properties

Info

Information about the object cache

public abstract CacheInformation Info { get; }

Property Value

CacheInformation

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

keys IEnumerable<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

key string

Key to reset

DeleteCustomerDiscountGroup(CustomerDiscountGroup)

Deletes the specified customer discount group.

public abstract void DeleteCustomerDiscountGroup(CustomerDiscountGroup group)

Parameters

group CustomerDiscountGroup

The customer discount group to delete.

GetAllCustomerDiscountGroups()

Retrieves all customer discount groups.

public abstract IEnumerable<CustomerDiscountGroup> GetAllCustomerDiscountGroups()

Returns

IEnumerable<CustomerDiscountGroup>

Collection of all customer discount groups.

GetCustomerDiscountGroupById(string)

Retrieves a customer discount group by ID.

public abstract CustomerDiscountGroup? GetCustomerDiscountGroupById(string id)

Parameters

id string

The ID of the customer discount group.

Returns

CustomerDiscountGroup

The customer discount group if found; otherwise, null.

SaveCustomerDiscountGroup(CustomerDiscountGroup)

Saves a customer discount group.

public abstract void SaveCustomerDiscountGroup(CustomerDiscountGroup group)

Parameters

group CustomerDiscountGroup

The customer discount group to save.

SetCacheType<TObjectCache>()

Changes the storage container

public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, CustomerDiscountGroup>

Type Parameters

TObjectCache
To top