2022-07-28 17:03:16 +00:00
|
|
|
import 'package:cake_wallet/ionia/ionia_virtual_card.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
abstract class IoniaCreateAccountState {}
|
|
|
|
|
|
|
|
class IoniaInitialCreateState extends IoniaCreateAccountState {}
|
|
|
|
|
|
|
|
class IoniaCreateStateSuccess extends IoniaCreateAccountState {}
|
|
|
|
|
|
|
|
class IoniaCreateStateLoading extends IoniaCreateAccountState {}
|
|
|
|
|
|
|
|
class IoniaCreateStateFailure extends IoniaCreateAccountState {
|
2022-10-12 17:09:57 +00:00
|
|
|
IoniaCreateStateFailure({required this.error});
|
2022-07-28 17:03:16 +00:00
|
|
|
|
|
|
|
final String error;
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class IoniaOtpState {}
|
|
|
|
|
|
|
|
class IoniaOtpValidating extends IoniaOtpState {}
|
|
|
|
|
|
|
|
class IoniaOtpSuccess extends IoniaOtpState {}
|
|
|
|
|
|
|
|
class IoniaOtpSendDisabled extends IoniaOtpState {}
|
|
|
|
|
|
|
|
class IoniaOtpSendEnabled extends IoniaOtpState {}
|
|
|
|
|
|
|
|
class IoniaOtpFailure extends IoniaOtpState {
|
2022-10-12 17:09:57 +00:00
|
|
|
IoniaOtpFailure({required this.error});
|
2022-07-28 17:03:16 +00:00
|
|
|
|
|
|
|
final String error;
|
|
|
|
}
|
|
|
|
|
|
|
|
class IoniaCreateCardState {}
|
|
|
|
|
|
|
|
class IoniaCreateCardSuccess extends IoniaCreateCardState {}
|
|
|
|
|
|
|
|
class IoniaCreateCardLoading extends IoniaCreateCardState {}
|
|
|
|
|
|
|
|
class IoniaCreateCardFailure extends IoniaCreateCardState {
|
2022-10-12 17:09:57 +00:00
|
|
|
IoniaCreateCardFailure({required this.error});
|
2022-07-28 17:03:16 +00:00
|
|
|
|
|
|
|
final String error;
|
|
|
|
}
|
|
|
|
|
|
|
|
class IoniaFetchCardState {}
|
|
|
|
|
|
|
|
class IoniaNoCardState extends IoniaFetchCardState {}
|
|
|
|
|
|
|
|
class IoniaFetchingCard extends IoniaFetchCardState {}
|
|
|
|
|
|
|
|
class IoniaFetchCardFailure extends IoniaFetchCardState {}
|
|
|
|
|
|
|
|
class IoniaCardSuccess extends IoniaFetchCardState {
|
2022-10-12 17:09:57 +00:00
|
|
|
IoniaCardSuccess({required this.card});
|
2022-07-28 17:03:16 +00:00
|
|
|
|
|
|
|
final IoniaVirtualCard card;
|
|
|
|
}
|
2022-09-01 16:14:01 +00:00
|
|
|
|
|
|
|
abstract class IoniaMerchantState {}
|
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
class InitialIoniaMerchantLoadingState extends IoniaMerchantState {}
|
|
|
|
|
2022-09-01 16:14:01 +00:00
|
|
|
class IoniaLoadingMerchantState extends IoniaMerchantState {}
|
|
|
|
|
|
|
|
class IoniaLoadedMerchantState extends IoniaMerchantState {}
|
|
|
|
|
|
|
|
|