mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 12:39:37 +00:00
3006679560
* Change receive screen ui * Upgrade flutter packages * revert Upgrade flutter packages * revert Upgrade flutter packages * Adjust flow for anon invoice page navigation * Add receive screen ui * Implement anonpay invoice * Add invoice detail to transactions page * Implement donation link * Fix transaction filter and details view * Save donation link * Fix transaction display issues * Fix formatting * Fix merge conflict * Fix localization * Fix transaction amount display * Fix transaction limit for fiat * Update fix from code review * Fix issues from code review * Make amountTo nullable to avoid potential * Remove encoding for description in donation link * Remove optional params from request * Fix QR image version * Refactor QRCode, fix issues from code review * Pass version to QRCode full page --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
57 lines
1.4 KiB
Dart
57 lines
1.4 KiB
Dart
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
|
import 'package:cw_core/keyable.dart';
|
|
import 'package:hive/hive.dart';
|
|
|
|
part 'anonpay_invoice_info.g.dart';
|
|
|
|
@HiveType(typeId: AnonpayInvoiceInfo.typeId)
|
|
class AnonpayInvoiceInfo extends HiveObject with Keyable implements AnonpayInfoBase {
|
|
@HiveField(0)
|
|
final String invoiceId;
|
|
@HiveField(1)
|
|
String status;
|
|
@HiveField(2)
|
|
final double? fiatAmount;
|
|
@HiveField(3)
|
|
final String? fiatEquiv;
|
|
@HiveField(4)
|
|
final double? amountTo;
|
|
@HiveField(5)
|
|
final String coinTo;
|
|
@HiveField(6)
|
|
final String address;
|
|
@HiveField(7)
|
|
final String clearnetUrl;
|
|
@HiveField(8)
|
|
final String onionUrl;
|
|
@HiveField(9)
|
|
final String clearnetStatusUrl;
|
|
@HiveField(10)
|
|
final String onionStatusUrl;
|
|
@HiveField(11)
|
|
final DateTime createdAt;
|
|
@HiveField(12)
|
|
final String walletId;
|
|
@HiveField(13)
|
|
final String provider;
|
|
|
|
static const typeId = 10;
|
|
static const boxName = 'AnonpayInvoiceInfo';
|
|
|
|
AnonpayInvoiceInfo({
|
|
required this.invoiceId,
|
|
required this.clearnetUrl,
|
|
required this.onionUrl,
|
|
required this.clearnetStatusUrl,
|
|
required this.onionStatusUrl,
|
|
required this.status,
|
|
this.fiatAmount,
|
|
this.fiatEquiv,
|
|
this.amountTo,
|
|
required this.coinTo,
|
|
required this.address,
|
|
required this.createdAt,
|
|
required this.walletId,
|
|
required this.provider,
|
|
});
|
|
}
|