25 lines
515 B
Dart
25 lines
515 B
Dart
part of '../wallet.dart';
|
|||
|
|
|
||
|
|
@freezed
|
||
|
|
abstract class PinStatus with _$PinStatus {
|
||
|
|
const PinStatus._();
|
||
|
|
|
||
|
|
const factory PinStatus({
|
||
|
|
required bool hasPin,
|
||
|
|
DateTime? lockedUntil,
|
||
|
|
DateTime? transferBlockedUntil,
|
||
|
|
}) = _PinStatus;
|
||
|
|
|
||
|
|
bool get isLocked =>
|
||
|
|
lockedUntil != null && lockedUntil!.isAfter(DateTime.now());
|
||
|
|
}
|
||
|
|
|
||
|
|
@freezed
|
||
|
|
abstract class PinOtp with _$PinOtp {
|
||
|
|
const factory PinOtp({
|
||
|
|
required PinOtpPurpose purpose,
|
||
|
|
required String otpToken,
|
||
|
|
DateTime? expiresAt,
|
||
|
|
}) = _PinOtp;
|
||
|
|
}
|