go-twitch/eventsub/events/extensions.go

45 lines
1.1 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package events
type Product struct {
// Product name.
Name string `json:"name"`
// Bits involved in the transaction.
Bits int `json:"bits"`
// Unique identifier for the product acquired.
Sku string `json:"sku"`
// Flag indicating if the product is in development. If in_development is true, bits will be 0.
InDevelopment bool `json:"in_development"`
}
type ExtensionBitsTransactionCreateEvent struct {
// Client ID of the extension.
ExtensionClientId string `json:"extension_client_id"`
// Transaction ID.
Id string `json:"id"`
// The transactions broadcaster ID.
BroadcasterUserId string `json:"broadcaster_user_id"`
// The transactions broadcaster login.
BroadcasterUserLogin string `json:"broadcaster_user_login"`
// The transactions broadcaster display name.
BroadcasterUserName string `json:"broadcaster_user_name"`
// The transactions user ID.
UserId string `json:"user_id"`
// The transactions user login.
UserLogin string `json:"user_login"`
// The transactions user display name.
UserName string `json:"user_name"`
// Additional extension product information.
Product Product `json:"product"`
}