Skip to main content

WishlistItemCreatedSdkEvent

Event triggered when an item is created in a wishlist. Provides details about the wishlist and the item that was added.

Implements​

  • SdkEventInterface

Constructors​

Constructor​

new WishlistItemCreatedSdkEvent(wishlistId, productId, variantId): WishlistItemCreatedSdkEvent

Parameters​

ParameterTypeDescription
wishlistIdnumberID of the wishlist where the item was created
productIdnumberID of the product that was added to the wishlist
variantIdnumberID of the product variant that was added

Returns​

WishlistItemCreatedSdkEvent

Properties​

PropertyModifierTypeDescription
productIdreadonlynumberID of the product that was added to the wishlist
typereadonlyWISHLIST_ITEM_CREATEDEvent type, which is "wishlistItemCreated"
variantIdreadonlynumberID of the product variant that was added
wishlistIdreadonlynumberID of the wishlist where the item was created