removed legacy from bff
This commit is contained in:
@@ -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', () {
|
||||
|
||||
Reference in New Issue
Block a user