Table of Contents

Class ReturnMerchandiseAuthorizationService

Namespace
Dynamicweb.Ecommerce.Orders.ReturnMerchandiseAuthorization
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

CacheInformation

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

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

key string

Key to reset

GetAll()

public virtual ReturnMerchandiseAuthorizationCollection GetAll()

Returns

ReturnMerchandiseAuthorizationCollection

GetById(string)

Get a ReturnMerchandiseAuthorization by its ID.

public virtual ReturnMerchandiseAuthorization? GetById(string id)

Parameters

id string

The ID

Returns

ReturnMerchandiseAuthorization

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

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

rma ReturnMerchandiseAuthorization

Returns

ReturnMerchandiseAuthorization

SetCacheType<TObjectCache>()

Changes the storage container

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

Type Parameters

TObjectCache
To top