removed intent_ref from frontend

This commit is contained in:
Stephan D
2026-02-26 22:20:54 +01:00
parent 4949c4ffe0
commit e8d763eb15
25 changed files with 174 additions and 750 deletions

View File

@@ -188,7 +188,6 @@ class MultiplePayoutsProvider extends ChangeNotifier {
try {
_setState(MultiplePayoutsState.sending);
_error = null;
final intentRefs = _quotedIntentRefs();
final result = await payment.pay(
metadata: <String, String>{
@@ -198,7 +197,6 @@ class MultiplePayoutsProvider extends ChangeNotifier {
'upload_rows': _rows.length.toString(),
...?_uploadAmountMetadata(),
},
intentRefs: intentRefs.isEmpty ? null : intentRefs,
);
_sentCount = result.length;
@@ -274,20 +272,6 @@ class MultiplePayoutsProvider extends ChangeNotifier {
List<PaymentQuote> _quoteItems() =>
_quotation?.quotation?.items ?? const <PaymentQuote>[];
List<String> _quotedIntentRefs() {
final seen = <String>{};
final intentRefs = <String>[];
for (final quote in _quoteItems()) {
final intentRef = (quote.intentRef ?? '').trim();
if (intentRef.isEmpty || seen.contains(intentRef)) {
continue;
}
seen.add(intentRef);
intentRefs.add(intentRef);
}
return intentRefs;
}
@override
void dispose() {
_quotation?.removeListener(_onQuotationChanged);