front dev update

This commit is contained in:
Stephan D
2026-01-30 16:54:56 +01:00
parent 51f5b0804a
commit 102c5d3668
31 changed files with 755 additions and 74 deletions

View File

@@ -1,5 +1,6 @@
import 'package:pshared/models/describable.dart';
import 'package:pshared/models/ledger/balance.dart';
import 'package:pshared/models/ledger/role.dart';
import 'package:pshared/models/ledger/status.dart';
import 'package:pshared/models/ledger/type.dart';
@@ -13,7 +14,7 @@ class LedgerAccount implements Describable {
final String currency;
final LedgerAccountStatus status;
final bool allowNegative;
final bool isSettlement;
final LedgerAccountRole role;
final Map<String, String>? metadata;
final DateTime? createdAt;
final DateTime? updatedAt;
@@ -35,7 +36,7 @@ class LedgerAccount implements Describable {
required this.currency,
required this.status,
required this.allowNegative,
required this.isSettlement,
required this.role,
this.metadata,
this.createdAt,
this.updatedAt,
@@ -55,7 +56,7 @@ class LedgerAccount implements Describable {
currency: currency,
status: status,
allowNegative: allowNegative,
isSettlement: isSettlement,
role: role,
metadata: metadata,
createdAt: createdAt,
updatedAt: updatedAt,

View File

@@ -0,0 +1,14 @@
enum LedgerAccountRole {
unspecified,
operating,
hold,
transit,
settlement,
clearing,
pending,
reserve,
liquidity,
fee,
chargeback,
adjustment,
}

View File

@@ -0,0 +1,6 @@
class CursorPage<T> {
final List<T> items;
final String? nextCursor;
const CursorPage({required this.items, required this.nextCursor});
}

View File

@@ -2,6 +2,7 @@ enum ChainNetwork {
unspecified,
ethereumMainnet,
arbitrumOne,
arbitrumSepolia,
tronMainnet,
tronNile
tronNile,
}

View File

@@ -0,0 +1,5 @@
import 'package:pshared/models/pagination/cursor_page.dart';
import 'package:pshared/models/payment/payment.dart';
typedef PaymentPage =CursorPage<Payment>;