Module twitchpy.dataclasses.extension_transaction

Classes

class ExtensionTransaction (transaction_id: str,
timestamp: datetime.datetime,
channel: Channel,
user: User,
product_type: str,
product: Product)
Expand source code
@dataclass
class ExtensionTransaction:
    """
    Represents an extension's transaction

    Attributes:
        transaction_id (str): An ID that identifies the transaction
        timestamp (datetime): The UTC date and time (in RFC3339 format) of the transaction
        channel (Channel): The channel where the transaction occurred
        user (User): The user that purchased the digital product
        product_type (str): The type of transaction
            Possible values: BITS_IN_EXTENSION
        product (Product): Contains details about the digital product
    """

    transaction_id: str
    timestamp: datetime
    channel: Channel
    user: User
    product_type: str
    product: Product

Represents an extension's transaction

Attributes

transaction_id : str
An ID that identifies the transaction
timestamp : datetime
The UTC date and time (in RFC3339 format) of the transaction
channel : Channel
The channel where the transaction occurred
user : User
The user that purchased the digital product
product_type : str
The type of transaction Possible values: BITS_IN_EXTENSION
product : Product
Contains details about the digital product

Class variables

var channelChannel

The type of the None singleton.

var productProduct

The type of the None singleton.

var product_type : str

The type of the None singleton.

var timestamp : datetime.datetime

The type of the None singleton.

var transaction_id : str

The type of the None singleton.

var userUser

The type of the None singleton.