EventObject

data class EventObject(@Json(name = idid: String, @Json(name = transactiontransaction: String, @Json(name = typetype: String, @Json(name = datadata: Any, @Json(name = testmodetestmode: Boolean, @Json(name = messagemessage: String, @Json(name = created_atcreatedAt: OffsetDateTime)

Parameters

id

Transaction id

transaction

The transaction ID this object belongs to. May be null for some events.

type

The type of event. transaction.created or transaction.updated

data

The object, that this event relates to. This is usually a transaction object.

testmode

Indicates whether or not this event belongs to a test transaction

message

A human readable message that describes this event.

createdAt

The date the event was fired.

Constructors

EventObject
Link copied to clipboard
fun EventObject(@Json(name = idid: String, @Json(name = transactiontransaction: String, @Json(name = typetype: String, @Json(name = datadata: Any, @Json(name = testmodetestmode: Boolean, @Json(name = messagemessage: String, @Json(name = created_atcreatedAt: OffsetDateTime)
Transaction id

Properties

createdAt
Link copied to clipboard
var createdAt: OffsetDateTime
The date the event was fired.
data
Link copied to clipboard
var data: Any
The object, that this event relates to.
id
Link copied to clipboard
var id: String
Transaction id
message
Link copied to clipboard
var message: String
A human readable message that describes this event.
testmode
Link copied to clipboard
var testmode: Boolean
Indicates whether or not this event belongs to a test transaction
transaction
Link copied to clipboard
var transaction: String
The transaction ID this object belongs to.
type
Link copied to clipboard
var type: String
The type of event.