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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user