Retail Item API

This topic describes the retail item APIs for the Integration Framework.

API

Name Description
void Delete(LogonInfo, RecordIdentifier)

Delete a retail item.

Parameters:

  • logonInfo: Login information for the database
  • retailItemID: The ID of the retail item to delete
void Get(LogonInfo, RecordIdentifier)

Get a retail item.

Parameters:

  • logonInfo: Login information for the database
  • retailItemID: The ID of the retail item to get
void Save(LogonInfo, RetailItem)

Save a retail item.

Parameters:

  • logonInfo: Login information for the database
  • retailItem: The retail item to save
RetailItemSaveResult SaveList(LogonInfo, List<RetailItem>)

Save multiple retail items.

Parameters:

  • logonInfo: Login information for the database
  • retailItems: The retail items to save

 

Business objects

The following business objects are used by the retail item API.

 

Examples

To update retail items you must use the optimized update feature.

Updating a retail item


	RetailItem item = wcfRetailItemService.Get(CreateLogonInfo(dataModel), "0000001");
	item.Text += "-Updated";

	((IOptimizedUpdate) item).CloneUpdateListToTransportList();
	wcfRetailItemService.Save(CreateLogonInfo(dataModel), item);
			

In the above example, firstly we get an existing retail item through the Integration Framework, update it, then we clone the update list using the optimized update functionality. After we update all properties accordingly we save the retail item through the Integration Framework.

Deleting a retail item


	wcfRetailItemService.Delete(CreateLogonInfo(dataModel), "0000001");
			

See also