Follow

RemoveFromCartListingEventBuilder

Use the RemoveFromCartListingEventBuilder when a buyer removes a listing that was previously added to a shopping cart with the AddToCartListingEventBuilder.

Constructors

 RemoveFromCartListingEventBuilder()

Create an empty RemoveFromCartListingEventBuilder

 RemoveFromCartListingEventBuilder(String listing_id)

Create an RemoveFromCartListingEventBuilder with just a listing ID

 RemoveFromCartListingEventBuilder(String listing_id, Integer quantity)

Create an RemoveFromCartListingEventBuilder with all required properties

Public Methods

 RemoveFromCartListingEventBuilder setListingID(String listing_id)

Set the unique Listing Identifier used to reference this specific listing. This Listing Identifier is used in other calls to edit the Listing, add the listing the a customers cart, purchase the listing, etc.

 RemoveFromCartListingEventBuilder setQuantity(String listing_id)

Set the quantity purchased.

Methods inherited from EventBuilder

 Object build()

Returns the object required by the track() method in the Kahuna SDK. This should be used just as a KahunaEventBuilder would.

 EventBuilder addProperty(String key, String value)

Sets the event property named "key" with the value "value".

Intelligent Event campaign filters ignore the letter case of event names, property keys, and property values. For example, the event WATCH_MOVIE matches the filter value watch_movie, Watch_Movie, and Watch_movie.

The property key must be a string value.

Property keys cannot start with k_, because this prefix is reserved for Kahuna system keys.

Property values must be a single string. You can provide a set of values by calling addProperty() multiple times with the same key, passing in a different value each time.

You can add up to 25 properties to a single builder object.

Because multiple values for a key are stored as a set, you can't add the same value more than once. If you try, you still have one occurrence of that value in the set.

If you try to set an empty key or value, addProperty ignores the call and writes a message to the debug logs.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments