ExtensionTransaction

@Serializable
data class ExtensionTransaction(val id: String, val timestamp: Instant, val broadcasterId: String, val broadcasterLogin: String, val broadcasterName: String, val userId: String, val userLogin: String, val userName: String, val productType: String, val productData: ExtensionProductData)

Represents an extension transaction — a record of the exchange of a currency (for example, Bits) for a digital product.

See also

Constructors

Link copied to clipboard
constructor(id: String, timestamp: Instant, broadcasterId: String, broadcasterLogin: String, broadcasterName: String, userId: String, userLogin: String, userName: String, productType: String, productData: ExtensionProductData)

Properties

Link copied to clipboard
@SerialName(value = "broadcaster_id")
val broadcasterId: String

the ID of the broadcaster that owns the channel where the transaction occurred.

Link copied to clipboard
@SerialName(value = "broadcaster_login")
val broadcasterLogin: String

the broadcaster's login name.

Link copied to clipboard
@SerialName(value = "broadcaster_name")
val broadcasterName: String

the broadcaster's display name.

Link copied to clipboard
val id: String

an ID that identifies the transaction.

Link copied to clipboard
@SerialName(value = "product_data")
val productData: ExtensionProductData

contains details about the digital product.

Link copied to clipboard
@SerialName(value = "product_type")
val productType: String

the type of transaction. Possible values are: BITS_IN_EXTENSION.

Link copied to clipboard

the UTC date and time (in RFC3339 format) of the transaction.

Link copied to clipboard
@SerialName(value = "user_id")
val userId: String

the ID of the user that purchased the digital product.

Link copied to clipboard
@SerialName(value = "user_login")
val userLogin: String

the user's login name.

Link copied to clipboard
@SerialName(value = "user_name")
val userName: String

the user's display name.