feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s

This commit is contained in:
efrilm
2026-10-10 02:33:16 +07:00
parent e5515d5871
commit 38850b281f
104 changed files with 7122 additions and 8063 deletions
@@ -1,7 +1,7 @@
part of '../wallet.dart';
/// Riwayat order customer. App hanya melihat order; tidak membuat atau
/// membayarnya (§7).
/// membayarnya; EnakPoint tidak bisa dipakai membayar (§1).
abstract class IOrderRepository {
Future<Either<WalletFailure, CustomerOrderPage>> getOrders({
required int page,
@@ -0,0 +1,19 @@
part of '../wallet.dart';
/// Tukar EnakPoint ke voucher (§9).
abstract class IVoucherRepository {
/// Voucher yang aktif, dalam masa berlaku, dan masih ada stoknya.
Future<Either<WalletFailure, List<Voucher>>> getVouchers();
Future<Either<WalletFailure, VoucherRedeemResult>> redeem({
required String voucherId,
required String pin,
required String idempotencyKey,
});
/// Penukaran milik customer, terbaru di atas.
Future<Either<WalletFailure, VoucherRedemptionPage>> getRedemptions({
required int page,
int limit = 20,
});
}
@@ -14,10 +14,6 @@ abstract class IWalletRepository {
Future<Either<WalletFailure, WalletExpiring>> getExpiring();
Future<Either<WalletFailure, PaymentCode>> createPaymentCode({
required String pin,
});
Future<Either<WalletFailure, ExchangePreview>> previewExchange({
required int coins,
});