import type { APIPaginatedResponse, RESTPaginationRequestParams } from "../common"; /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export declare enum APIExtensionTransactionProductType { BitsInExtension = "BITS_IN_EXTENSION" } /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export declare enum APIExtensionTransactionProductCostType { Bits = "bits" } /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export interface APIExtensionTransactionProductCost { /** * The amount exchanged for the digital product. */ amount: number; /** * The type of currency exchanged. */ type: APIExtensionTransactionProductCostType; } /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export interface APIExtensionTransactionProductData { /** * An ID that identifies the digital product. */ sku: string; /** * The domain of the extension that sold the digital product. (twitch.ext. + ) */ domain: string; /** * Contains details about the digital product’s cost. */ cost: APIExtensionTransactionProductCost; /** * A Boolean value that determines whether the product is in development. * * @remarks Is **true** if the digital product is in development and cannot be exchanged. */ inDevelopment: boolean; /** * The name of the digital product. */ displayName: string; /** * This field is always empty since you may purchase only unexpired products. */ expiration: string; /** * A Boolean value that determines whether the data was broadcast to all instances of the extension. * * @remarks Is **true** if the data was broadcast to all instances. */ broadcast: boolean; } /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export interface APIExtensionTransaction { /** * An ID that identifies the transaction. */ id: string; /** * The UTC date and time (in RFC3339 format) of the transaction. */ timestamp: string; /** * The ID of the broadcaster that owns the channel where the transaction occurred. */ broadcaster_id: string; /** * The broadcaster’s login name. */ broadcaster_login: string; /** * The broadcaster’s display name. */ broadcaster_name: string; /** * The ID of the user that purchased the digital product. */ user_id: string; /** * The user’s login name. */ user_login: string; /** * The user’s display name. */ user_name: string; /** * The type of transaction. */ product_type: APIExtensionTransactionProductType; /** * Contains details about the digital product. */ product_data: APIExtensionTransactionProductData; } /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export interface RESTGetExtensionTransactionsRequestParams extends RESTPaginationRequestParams { /** * The ID of the extension whose list of transactions you want to get. */ extension_id: string; /** * A transaction ID used to filter the list of transactions. * * @remarks Specify this parameter for each transaction you want to get. * For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. */ id?: string; } /** * @see https://dev.twitch.tv/docs/api/reference/#get-extension-transactions */ export interface RESTGetExtensionTransactionsResponse extends APIPaginatedResponse { } //# sourceMappingURL=transactions.d.ts.map