- 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>
34 lines
834 B
Dart
34 lines
834 B
Dart
part of '../wallet.dart';
|
|
|
|
@freezed
|
|
abstract class ExchangePreview with _$ExchangePreview {
|
|
const factory ExchangePreview({
|
|
required int coinAmount,
|
|
required int pointAmount,
|
|
required int coinBalance,
|
|
required int coins,
|
|
required int points,
|
|
required bool valid,
|
|
String? reason,
|
|
}) = _ExchangePreview;
|
|
}
|
|
|
|
@freezed
|
|
abstract class ExchangeResult with _$ExchangeResult {
|
|
const factory ExchangeResult({
|
|
required int coins,
|
|
required int points,
|
|
required int coinBalance,
|
|
required int pointBalance,
|
|
required List<WalletLot> lots,
|
|
required bool replayed,
|
|
}) = _ExchangeResult;
|
|
}
|
|
|
|
/// Bagian saldo dengan tanggal kedaluwarsanya sendiri.
|
|
@freezed
|
|
abstract class WalletLot with _$WalletLot {
|
|
const factory WalletLot({required int amount, DateTime? expiresAt}) =
|
|
_WalletLot;
|
|
}
|