Class ReturnMerchandiseAuthorizationService
- Assembly
- Dynamicweb.Ecommerce.dll
public class ReturnMerchandiseAuthorizationService : ICacheStorage<string, ReturnMerchandiseAuthorization>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
ReturnMerchandiseAuthorizationService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public 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
GetAll()
public virtual ReturnMerchandiseAuthorizationCollection GetAll()
Returns
GetById(string)
Get a ReturnMerchandiseAuthorization by its ID.
public virtual ReturnMerchandiseAuthorization? GetById(string id)
Parameters
idstringThe ID
Returns
IsRmaCreationAllowedForOrders(IEnumerable<Order>)
Gets a dictionary indicating whether new RMA can be registered for each order in the provided collection.
public virtual IDictionary<string, bool> IsRmaCreationAllowedForOrders(IEnumerable<Order> orders)
Parameters
ordersIEnumerable<Order>The collection of orders to check
Returns
- IDictionary<string, bool>
A dictionary where the key is the order ID and the value indicates if new RMA can be registered for that order
Save(ReturnMerchandiseAuthorization)
public virtual ReturnMerchandiseAuthorization? Save(ReturnMerchandiseAuthorization rma)
Parameters
Returns
SetCacheType<TObjectCache>()
Changes the storage container
public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, ReturnMerchandiseAuthorization>
Type Parameters
TObjectCache