Click or drag to resize
IProductAvailabilityPluginCalculateAvailability Method

[This is preliminary documentation and is subject to change.]

Calculates availability for products. This is called during order recieving and processing

Namespace: Netadmin.Management.Order
Assembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
IReadOnlyDictionary<long, IAvailabilityPluginResult> CalculateAvailability(
	IEnumerable<IProduct> products,
	long addressId,
	DateTime customerRequiredDate
)

Parameters

products
Type: System.Collections.GenericIEnumerableIProduct
The complete product trees to calculate availability for
addressId
Type: SystemInt64
The address id.
customerRequiredDate
Type: SystemDateTime
The customer required date.

Return Value

Type: IReadOnlyDictionaryInt64, IAvailabilityPluginResult
A dictionary with product id as key and the availability result as value
See Also