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

@@ -82,8 +82,22 @@ void main() {
'idempotencyKey': 'idem-1',
'quote': {
'quoteRef': 'q-1',
'debitAmount': {'amount': '10', 'currency': 'USDT'},
'expectedSettlementAmount': {'amount': '760', 'currency': 'RUB'},
'amounts': {
'sourcePrincipal': {'amount': '10', 'currency': 'USDT'},
'sourceDebitTotal': {'amount': '10.75', 'currency': 'USDT'},
'destinationSettlement': {'amount': '760', 'currency': 'RUB'},
},
'fees': {
'lines': [
{
'ledgerAccountRef': 'ledger:fees',
'amount': {'amount': '0.75', 'currency': 'USDT'},
'lineType': 'posting_line_type_fee',
'side': 'entry_side_debit',
'meta': {'fee_target': 'wallet'},
},
],
},
'fxQuote': {
'quoteRef': 'fx-1',
'baseCurrency': 'USDT',
@@ -102,6 +116,8 @@ void main() {
});
expect(response.quote.fxQuote?.pricedAtUnixMs, equals(1771945907000));
expect(response.quote.amounts?.sourceDebitTotal?.amount, equals('10.75'));
expect(response.quote.fees?.lines?.length, equals(1));
});
test('initiate payment by quote keeps expected fields', () {