20 lines
566 B
Dart
20 lines
566 B
Dart
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,
|
|
});
|
|
}
|