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
accountId
The user’s account id.
filter
List of item ids to use as a filter for the returned list.
limit
The number of records to return.
offset
Used to paginate. First page of results is 0.
completion
The completion block.
-
Get a specific item by using its id.
Declaration
Swift
func wishlistItem(itemId: String,
Parameters
itemId
The item id to get.
accountId
The user’s account id.
completion
The completion block.
-
Adds an item to the wishlist.
Declaration
Swift
func addWishlistItem(itemId: String,
Parameters
itemId
The item id to add.
accountId
The user’s account id.
completion
The completion block.
-
Removes an item from the wishlist.
Declaration
Swift
func removeWishlistItem(itemId: String,
Parameters
itemId
The item id to remove.
accountId
The user’s account id.
completion
The completion block.
-
Updates a bulk of items for the user’s account. * Items with
state=Wishlisted
will be added. * Items withstate=Unlisted
will be removed from the wishlist.Declaration
Swift
func updateWishlistItems(items: [Wishlistable],
Parameters
items
The items to update.
accountId
The user’s account id.
completion
The completion block.