Class FeeService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
public class FeeService : ICacheStorage<string, Fee>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
FeeService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public virtual CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public virtual void ClearCache()
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
public virtual 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 virtual void ClearCache(string key)
Parameters
keystringKey to reset
Delete(Fee)
Deletes a given fee.
public virtual void Delete(Fee fee)
Parameters
feeFeeFee to delete.
DeleteByMethod(string, string)
Deletes all fees associated with a given method.
public virtual void DeleteByMethod(string method, string methodId)
Parameters
methodstringMethod type, e.g "PAY" or "SHIP".
methodIdstringMethod identifier, e.g. "PAY1" or "SHIP1".
GetAllFees()
Get all fees
public virtual IEnumerable<Fee> GetAllFees()
Returns
- IEnumerable<Fee>
All existing fees regardless of method.
GetFeeById(string)
Gets a fee by id.
public virtual Fee GetFeeById(string id)
Parameters
idstringId of the fee.
Returns
GetFeesByMethod(string, string)
Gets all fees for a given method.
public virtual IEnumerable<Fee> GetFeesByMethod(string method, string methodId)
Parameters
methodstringMethod type, e.g "PAY" or "SHIP".
methodIdstringMethod identifier, e.g. "PAY1" or "SHIP1".
Returns
- IEnumerable<Fee>
All fees associated with the specified method.
GetFeesByMethodAndCountryRegion(string, string, string, string)
Gets all fees for a given method, country and region.
public virtual IEnumerable<Fee> GetFeesByMethodAndCountryRegion(string method, string methodId, string countryCode, string regionCode)
Parameters
methodstringMethod type, e.g "PAY" or "SHIP".
methodIdstringMethod identifier, e.g. "PAY1" or "SHIP1".
countryCodestringCountry code, e.g. "US".
regionCodestringRegion code, e.g. "CA".
Returns
- IEnumerable<Fee>
All fees associated with the specified method, country and region.
Save(Fee)
Saves a given fee.
public virtual void Save(Fee fee)
Parameters
feeFeeFee to save.
SetCacheType<TObjectCache>()
Changes the storage container
public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, Fee>
Type Parameters
TObjectCache