Files
sendico/frontend/pweb/lib/models/wallet.dart
Stephan D 48ccbb1c82
Some checks failed
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
implemented backend wallet service connection
2025-11-26 00:48:00 +01:00

39 lines
907 B
Dart

import 'package:pweb/models/currency.dart';
class Wallet {
final String id;
final String walletUserID; // ID or number that we show the user
final String name;
final double balance;
final Currency currency;
final bool isHidden;
final DateTime calculatedAt;
Wallet({
required this.id,
required this.walletUserID,
required this.name,
required this.balance,
required this.currency,
required this.calculatedAt,
this.isHidden = true,
});
Wallet copyWith({
String? id,
String? name,
double? balance,
Currency? currency,
String? walletUserID,
bool? isHidden,
}) => Wallet(
id: id ?? this.id,
name: name ?? this.name,
balance: balance ?? this.balance,
currency: currency ?? this.currency,
walletUserID: walletUserID ?? this.walletUserID,
isHidden: isHidden ?? this.isHidden,
calculatedAt: calculatedAt,
);
}