2025-01-17 23:37:54 +00:00
|
|
|
import type { UUID } from '../classes/UUID';
|
|
|
|
|
import type { MoneyTransactionType } from '../enums/MoneyTransactionType';
|
2020-12-01 15:48:46 +00:00
|
|
|
|
|
|
|
|
export class BalanceUpdatedEvent
|
|
|
|
|
{
|
2025-01-17 23:37:54 +00:00
|
|
|
public balance: number;
|
|
|
|
|
public transaction: {
|
2020-12-01 15:48:46 +00:00
|
|
|
type: MoneyTransactionType,
|
|
|
|
|
success: boolean,
|
|
|
|
|
from: UUID,
|
|
|
|
|
to: UUID,
|
|
|
|
|
fromGroup: boolean,
|
|
|
|
|
toGroup: boolean
|
|
|
|
|
amount: number,
|
|
|
|
|
description: string
|
|
|
|
|
}
|
|
|
|
|
}
|