RemoveFromCartEvent

class RemoveFromCartEvent @JvmOverloads constructor(var products: List<ProductEntity>, var cart: CartEntity) : AbstractSelfDescribing

Track a product or products being removed from cart.

Parameters

products
  • List of product(s) that were removed from the cart.

cart
  • State of the cart after this addition.

Constructors

Link copied to clipboard
constructor(products: List<ProductEntity>, cart: CartEntity)

Properties

Link copied to clipboard

State of the cart after the removal.

Link copied to clipboard
open override var contexts: List<SelfDescribingJson>
Link copied to clipboard
open override val dataPayload: Map<String, Any?>

The payload for the event.

Link copied to clipboard
Link copied to clipboard

Used for events whose properties are added as entities, e.g. Ecommerce events

Link copied to clipboard

List of product(s) that were removed from the cart.

Link copied to clipboard
open override val schema: String

The event schema

Link copied to clipboard
open override var trueTimestamp: Long?

Functions

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard
fun trueTimestamp(trueTimestamp: Long?): AbstractEvent

Set the custom timestamp of the event.