2025-10-27 14:24:29 +07:00

14 lines
541 B
Dart

part of '../payment_method.dart';
@freezed
sealed class PaymentMethodFailure with _$PaymentMethodFailure {
const factory PaymentMethodFailure.serverError(ApiFailure failure) =
_ServerError;
const factory PaymentMethodFailure.unexpectedError() = _UnexpectedError;
const factory PaymentMethodFailure.empty() = _Empty;
const factory PaymentMethodFailure.localStorageError(String erroMessage) =
_LocalStorageError;
const factory PaymentMethodFailure.dynamicErrorMessage(String erroMessage) =
_DynamicErrorMessage;
}