removed legacy from bff

This commit is contained in:
Stephan D
2026-02-24 21:18:23 +01:00
parent a998b59072
commit da11be526a
26 changed files with 343 additions and 273 deletions

View File

@@ -1,12 +0,0 @@
import 'package:pshared/models/money.dart';
class NetworkFee {
final Money? networkFee;
final String? estimationContext;
const NetworkFee({
required this.networkFee,
required this.estimationContext,
});
}

View File

@@ -1,16 +0,0 @@
import 'package:pshared/models/money.dart';
class PaymentQuoteAggregate {
final List<Money>? debitAmounts;
final List<Money>? expectedSettlementAmounts;
final List<Money>? expectedFeeTotals;
final List<Money>? networkFeeTotals;
const PaymentQuoteAggregate({
required this.debitAmounts,
required this.expectedSettlementAmounts,
required this.expectedFeeTotals,
required this.networkFeeTotals,
});
}

View File

@@ -0,0 +1,13 @@
import 'package:pshared/models/money.dart';
class QuoteAmounts {
final Money? sourcePrincipal;
final Money? sourceDebitTotal;
final Money? destinationSettlement;
const QuoteAmounts({
required this.sourcePrincipal,
required this.sourceDebitTotal,
required this.destinationSettlement,
});
}

View File

@@ -0,0 +1,7 @@
import 'package:pshared/models/payment/fees/line.dart';
class QuoteFees {
final List<FeeLine>? lines;
const QuoteFees({required this.lines});
}

View File

@@ -1,29 +1,19 @@
import 'package:pshared/models/payment/fees/line.dart';
import 'package:pshared/models/payment/fx/quote.dart';
import 'package:pshared/models/money.dart';
import 'package:pshared/models/payment/fees/network.dart';
import 'package:pshared/models/payment/quote/amounts.dart';
import 'package:pshared/models/payment/quote/fees.dart';
class PaymentQuote {
final String? quoteRef;
final String? idempotencyKey;
final Money? debitAmount;
final Money? debitSettlementAmount;
final Money? expectedSettlementAmount;
final Money? expectedFeeTotal;
final List<FeeLine>? feeLines;
final NetworkFee? networkFee;
final QuoteAmounts? amounts;
final QuoteFees? fees;
final FxQuote? fxQuote;
const PaymentQuote({
required this.quoteRef,
required this.idempotencyKey,
required this.debitAmount,
required this.debitSettlementAmount,
required this.expectedSettlementAmount,
required this.expectedFeeTotal,
required this.feeLines,
required this.networkFee,
required this.amounts,
required this.fees,
required this.fxQuote,
});
}

View File

@@ -1,17 +1,13 @@
import 'package:pshared/models/payment/quote/quote.dart';
import 'package:pshared/models/payment/quote/aggregate.dart';
class PaymentQuotes {
final String quoteRef;
final String? idempotencyKey;
final PaymentQuoteAggregate? aggregate;
final List<PaymentQuote>? quotes;
final List<PaymentQuote>? items;
const PaymentQuotes({
required this.quoteRef,
required this.idempotencyKey,
required this.aggregate,
required this.quotes,
required this.items,
});
}