go-twitch/eventsub/events/extensions.go

45 lines
1.1 KiB
Go
Raw Permalink Normal View History

2024-03-05 12:14:18 -05:00
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"`
}