mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
68 lines
1.8 KiB
Dart
68 lines
1.8 KiB
Dart
|
import 'cake_pay_card.dart';
|
||
|
|
||
|
abstract class CakePayUserVerificationState {}
|
||
|
|
||
|
class CakePayUserVerificationStateInitial extends CakePayUserVerificationState {}
|
||
|
|
||
|
class CakePayUserVerificationStateSuccess extends CakePayUserVerificationState {}
|
||
|
|
||
|
class CakePayUserVerificationStatePending extends CakePayUserVerificationState {}
|
||
|
|
||
|
class CakePayUserVerificationStateLoading extends CakePayUserVerificationState {}
|
||
|
|
||
|
class CakePayUserVerificationStateFailure extends CakePayUserVerificationState {
|
||
|
CakePayUserVerificationStateFailure({required this.error});
|
||
|
|
||
|
final String error;
|
||
|
}
|
||
|
|
||
|
abstract class CakePayOtpState {}
|
||
|
|
||
|
class CakePayOtpValidating extends CakePayOtpState {}
|
||
|
|
||
|
class CakePayOtpSuccess extends CakePayOtpState {}
|
||
|
|
||
|
class CakePayOtpSendDisabled extends CakePayOtpState {}
|
||
|
|
||
|
class CakePayOtpSendEnabled extends CakePayOtpState {}
|
||
|
|
||
|
class CakePayOtpFailure extends CakePayOtpState {
|
||
|
CakePayOtpFailure({required this.error});
|
||
|
|
||
|
final String error;
|
||
|
}
|
||
|
|
||
|
class CakePayCreateCardState {}
|
||
|
|
||
|
class CakePayCreateCardStateSuccess extends CakePayCreateCardState {}
|
||
|
|
||
|
class CakePayCreateCardStateLoading extends CakePayCreateCardState {}
|
||
|
|
||
|
class CakePayCreateCardStateFailure extends CakePayCreateCardState {
|
||
|
CakePayCreateCardStateFailure({required this.error});
|
||
|
|
||
|
final String error;
|
||
|
}
|
||
|
|
||
|
class CakePayCardsState {}
|
||
|
|
||
|
class CakePayCardsStateNoCards extends CakePayCardsState {}
|
||
|
|
||
|
class CakePayCardsStateFetching extends CakePayCardsState {}
|
||
|
|
||
|
class CakePayCardsStateFailure extends CakePayCardsState {}
|
||
|
|
||
|
class CakePayCardsStateSuccess extends CakePayCardsState {
|
||
|
CakePayCardsStateSuccess({required this.card});
|
||
|
|
||
|
final CakePayCard card;
|
||
|
}
|
||
|
|
||
|
abstract class CakePayVendorState {}
|
||
|
|
||
|
class InitialCakePayVendorLoadingState extends CakePayVendorState {}
|
||
|
|
||
|
class CakePayVendorLoadingState extends CakePayVendorState {}
|
||
|
|
||
|
class CakePayVendorLoadedState extends CakePayVendorState {}
|