feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user