- Wallet EnakPoint & EnakCoin: beranda, riwayat, saldo kedaluwarsa, kode bayar, tukar EnakCoin, transfer - PIN (buat, ganti, lupa), outlet, riwayat order, game spin - Halaman community, webview, coming soon, dan ikon menu beranda baru - Redesign Reward Saya: kartu tiket, filter chip, detail kode + QR - Hapus customer point loader, menu, dan checkout lama - Base URL ke enaklo-pos-api.altru.id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.1 KiB
Dart
43 lines
1.1 KiB
Dart
part of '../wallet.dart';
|
|
|
|
abstract class IWalletRepository {
|
|
Future<Either<WalletFailure, WalletSummary>> getWallet();
|
|
|
|
Future<Either<WalletFailure, WalletTransactionPage>> getTransactions({
|
|
required int page,
|
|
int limit = 20,
|
|
WalletCurrency? currency,
|
|
List<WalletTransactionType> types = const [],
|
|
DateTime? from,
|
|
DateTime? to,
|
|
});
|
|
|
|
Future<Either<WalletFailure, WalletExpiring>> getExpiring();
|
|
|
|
Future<Either<WalletFailure, PaymentCode>> createPaymentCode({
|
|
required String pin,
|
|
});
|
|
|
|
Future<Either<WalletFailure, ExchangePreview>> previewExchange({
|
|
required int coins,
|
|
});
|
|
|
|
Future<Either<WalletFailure, ExchangeResult>> exchange({
|
|
required int coins,
|
|
required String pin,
|
|
required String idempotencyKey,
|
|
});
|
|
|
|
Future<Either<WalletFailure, TransferRecipient>> checkRecipient({
|
|
required String phone,
|
|
});
|
|
|
|
Future<Either<WalletFailure, TransferResult>> transfer({
|
|
required WalletCurrency currency,
|
|
required int amount,
|
|
required String recipientPhone,
|
|
required String pin,
|
|
required String idempotencyKey,
|
|
});
|
|
}
|