mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-31 17:37:41 +00:00
30dc8f9238
* init commit * buy card UI * buy card detail page * card filter * dropdown button * user auth flow * create order * denomination option * fix searching * denom option fix UI * simulate payment * Update pr_test_build.yml * Update pr_test_build.yml * Implement order expiration handling [skip ci] * refactor code [skip ci] * remove ionia related code [skip ci] * change auth flow * add currency prefix * grid view UI * fix country filter issue * fix underline color * fix fetching card list [skip ci] * list view * update cake pay title * Optimize API usage by fetching CakePay vendors * handle no cards found case * adjust the flow of purchases * UI fixes * fix btc payment data * link extractor * fix fetch next page issue * UI fixes * fix text size * revert base page changes * Revert "revert base page changes" * UI fixes * fix UI * fix link style + localization * update cake pay title * update cake pay subtitle * Update cake_pay_order.dart * revert inject_app_details update
67 lines
1.8 KiB
Dart
67 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 {}
|