A class for storing an API transaction.

Hierarchy

  • Transaction

Constructors

Properties

amount: Amount

An instance of Amount for this transaction

chatId: null | string

The chat (guild) id where this transaction took place

client: undefined | TipccClient

The client that instantiated this transaction

created: Date

The Date when this transaction was created

fee: null | Amount = null

An instance of Amount for the fee of this transaction

id: string

The transaction id

recipient: User

The id of the recipient

sender: User

The id of the sender

service: "discord" = ...

The service in which this transaction took place

subchatId: null | string

The subchat (channel) id where this transaction took place

type: "tip" | "deposit" | "withdrawal" = 'tip'

The type of transaction