33 lines
707 B
TypeScript
33 lines
707 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';
|
|
|
|
export interface WalletTopUpPaymentSessionResponse {
|
|
message: string;
|
|
paymentId: string;
|
|
paymentReference: string;
|
|
gatewayOrderId: string;
|
|
gatewayToken: string;
|
|
amount: number;
|
|
} |