AppTransaction constructor
AppTransaction({
- double amount = 0,
- TransactionType type = TransactionType.purchase,
- String? senderId = CoreConstants.appBank,
- String? recipientId = CoreConstants.appBank,
- String id = "",
- String description = "",
- int createdTime = 0,
- String? orderId,
- AppCurrency currency = AppCurrency.appCoin,
- TransactionStatus status = TransactionStatus.pending,
- String? secretKey,
VERIFY IF NEEDED
Implementation
// double balanceBefore; // Saldo de la billetera afectada ANTES de esta transacción
// double balanceAfter; // Saldo de la billetera afectada DESPUÉS de esta transacción
AppTransaction({
this.amount = 0,
this.type = TransactionType.purchase,
this.senderId = CoreConstants.appBank, // Considerar si siempre habrá un senderId
this.recipientId = CoreConstants.appBank, // Considerar si siempre habrá un recipientId
this.id = "",
this.description = "",
this.createdTime = 0,
this.orderId, // Es opcional
this.currency = AppCurrency.appCoin, // Moneda por defecto
this.status = TransactionStatus.pending, // Estado por defect
this.secretKey,
});