Class InMemoryProductProvider
Class where you load up the products and pricelists in memory and use from memory.
Inheritance
InMemoryProductProvider
Assembly: SuperOffice.Plugins.dll
Syntax
public class InMemoryProductProvider
Constructors
InMemoryProductProvider()
Class where you load up the products and pricelists in memory and use from memory.
Declaration
public InMemoryProductProvider()
Properties
Images
Declaration
public Dictionary<string, string[]> Images { get; set; }
Property Value
PriceLists
Declaration
public List<PriceListInfo> PriceLists { get; set; }
Property Value
Products
Declaration
public List<ProductInfo> Products { get; set; }
Property Value
Methods
FindProduct(QuoteAlternativeContextInfo, string, string, string)
IProductProvider.FindProduct
Declaration
public ProductInfo[] FindProduct(QuoteAlternativeContextInfo context, string currencyCode, string userinput, string priceListKey)
Parameters
Returns
GetActivePriceLists(string)
IProductProvider.GetActivePriceLists
Declaration
public PriceListInfo[] GetActivePriceLists(string isoCurrencyCode)
Parameters
Type |
Name |
Description |
string |
isoCurrencyCode |
|
Returns
GetAllPriceLists(string)
IProductProvider.GetAllPriceLists
Declaration
public PriceListInfo[] GetAllPriceLists(string isoCurrencyCode)
Parameters
Type |
Name |
Description |
string |
isoCurrencyCode |
|
Returns
GetNumberOfActivePriceLists(string)
IProductProvider.GetNumberOfActivePriceLists
Declaration
public int GetNumberOfActivePriceLists(string isoCurrencyCode)
Parameters
Type |
Name |
Description |
string |
isoCurrencyCode |
|
Returns
GetNumberOfProductImages(string)
IProductProvider.GetNumberOfProductImages
Declaration
public int GetNumberOfProductImages(string erpProductKey)
Parameters
Type |
Name |
Description |
string |
erpProductKey |
|
Returns
GetProduct(QuoteAlternativeContextInfo, string)
IProductProvider.GetProduct
Declaration
public ProductInfo GetProduct(QuoteAlternativeContextInfo context, string erpProductKey)
Parameters
Returns
GetProductImage(string, int)
IProductProvider.GetProductImage
Declaration
public string GetProductImage(string erpProductKey, int rank)
Parameters
Type |
Name |
Description |
string |
erpProductKey |
|
int |
rank |
|
Returns
GetProducts(QuoteAlternativeContextInfo, string[])
IProductProvider.GetProducts
Declaration
public ProductInfo[] GetProducts(QuoteAlternativeContextInfo context, string[] erpProductKeys)
Parameters
Returns
GetQuoteLinesFromProduct(QuoteAlternativeContextInfo, string)
IProductProvider.GetQuoteLinesFromProduct
Declaration
public QuoteLineInfo[] GetQuoteLinesFromProduct(QuoteAlternativeContextInfo context, string erpProductKey)
Parameters
Returns
GetQuoteLinesfromProduct(QuoteAlternativeContextInfo, ProductInfo)
Class where you load up the products and pricelists in memory and use from memory.
Declaration
public static QuoteLineInfo[] GetQuoteLinesfromProduct(QuoteAlternativeContextInfo context, ProductInfo p)
Parameters
Returns
ValidateData()
Checks the loaded pricelists and products for duplicate keys
Declaration
public PluginResponseInfo ValidateData()
Returns
Extension Methods