Files
hash-wallet/lib/anonpay/anonpay_invoice_info.dart
T
d09391bf99 Upgrade Flutter version to 3.41.9 (#3213)
* commit generated files and remove codegen metadata

* remove hive_generator dependency

* update dependencies

* update intl

* update ios project files

* update native code

* update android deps

* update image name in ci

* revert impeller

* re-ignore min version error

* fix cw_decred dependency

* update hive in cw_core

* fix docker build cache for decred

* fix conflict

* prevent frozen coins being reset on coin info refresh

* fix for makeSecure

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2026-06-26 16:03:31 +03:00

59 lines
1.5 KiB
Dart

import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
import 'package:cw_core/hive_type_ids.dart';
import 'package:cw_core/keyable.dart';
import 'package:hive/hive.dart';
part 'anonpay_invoice_info.part.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 = ANONPAY_INVOICE_INFO_TYPE_ID;
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,
});
}