removed legacy from bff
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
13
frontend/pshared/lib/models/payment/quote/amounts.dart
Normal file
13
frontend/pshared/lib/models/payment/quote/amounts.dart
Normal 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,
|
||||
});
|
||||
}
|
||||
7
frontend/pshared/lib/models/payment/quote/fees.dart
Normal file
7
frontend/pshared/lib/models/payment/quote/fees.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
import 'package:pshared/models/payment/fees/line.dart';
|
||||
|
||||
class QuoteFees {
|
||||
final List<FeeLine>? lines;
|
||||
|
||||
const QuoteFees({required this.lines});
|
||||
}
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user