All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ziqni.transformers.domain.BasicEventModel.scala Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
/***
  *  Copyright (C) Ziqni Ltd - All Rights Reserved
  *  Unauthorized copying of this file, via any medium is strictly prohibited
  *  Proprietary and confidential
  *  Written by Ziqni Ltd, 2021
  */
package io.ziqni.transformers.domain

import org.joda.time.DateTime

/**
  * The basic event
  * @param memberRefId Your member identifier reference
  * @param entityRefId The reference to the product in your system
  * @param eventRefId The reference to this event in your system
  * @param batchId [Optional] The identifier used to link related events together
  * @param action The type of action, login, buy, wager etc
  * @param sourceValue The value assigned to this event
  * @param transactionTimestamp The date and time in UTC when this transaction occurred
  * @param tags Additional meta data describing this event
  * @param metadata Additional meta data in key value format describing this event
  */
case class BasicEventModel(
							  memberRefId: String,
							  entityRefId: String,
							  eventRefId: String,
							  batchId: Option[String],
							  action: String,
							  sourceValue: Double,
							  transactionTimestamp: DateTime,
							  tags: Seq[String] = Seq.empty,
							  metadata: Map[String, Seq[Any]] = Map.empty
						  )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy