25 lines
516 B
TypeScript

export interface WalletTransaction {
id: string;
walletId: string;
transactionReference: string;
direction: TransactionDirection;
amount: string;
balanceBefore: string;
balanceAfter: string;
type: TransactionType;
referenceId: string | null;
description: string | null;
idempotencyKey: string | null;
createdAt: string;
}
export type TransactionDirection = 'IN' | 'OUT';
export type TransactionType =
| 'PAYMENT'
| 'REFUND'
| 'TOPUP'
| 'WITHDRAWAL'
| 'TRANSFER'
| 'ADJUSTMENT';