WishlistDataManager
public protocol WishlistDataManager
Wishlist Data Manager protocol.
-
The HTTP environment manager.
Declaration
Swift
var environmentManager: HTTPEnvironmentManager -
Get the entire user’s wishlist. Can also get a filtered list of products and paginate the results.
Declaration
Swift
func wishlist(accountId: String,Parameters
accountIdThe user’s account id.
filterList of item ids to use as a filter for the returned list.
limitThe number of records to return.
offsetUsed to paginate. First page of results is 0.
completionThe completion block.
-
Get a specific item by using its id.
Declaration
Swift
func wishlistItem(itemId: String,Parameters
itemIdThe item id to get.
accountIdThe user’s account id.
completionThe completion block.
-
Adds an item to the wishlist.
Declaration
Swift
func addWishlistItem(itemId: String,Parameters
itemIdThe item id to add.
accountIdThe user’s account id.
completionThe completion block.
-
Removes an item from the wishlist.
Declaration
Swift
func removeWishlistItem(itemId: String,Parameters
itemIdThe item id to remove.
accountIdThe user’s account id.
completionThe completion block.
-
Updates a bulk of items for the user’s account. * Items with
state=Wishlistedwill be added. * Items withstate=Unlistedwill be removed from the wishlist.Declaration
Swift
func updateWishlistItems(items: [Wishlistable],Parameters
itemsThe items to update.
accountIdThe user’s account id.
completionThe completion block.
WishlistDataManager Protocol Reference