PDL_GetAvailableItems

Returns a list of all items for sale available to this application, including relevant information for each.

This call is a wrapper for a getAvailableItems com.palm.service.payment call and returns the same response.

Note

PDL_ItemCollection is an opaque type that your code cannot directly access. You need to call PDL_GetItemCollectionJSON to turn the response into a JSON-formatted string.

The getAvailableItems call takes four flags as parameters:

  • includePerishable -- Should available perishable items be returned flag.
  • includeNonPerishable -- Should available non-perishable items be returned flag.
  • includePurchased -- Should already purchased items be returned flag.
  • includeNonPurchased -- Should non-purchased items be returned flag.

When the PDK calls getAvailableItems, all these flags are set to true.

Syntax

PDL_ItemCollection *PDL_GetAvailableItems(void);

Parameters

None

Returns

Pointer to PDL_ItemCollection struct.