mirror of
https://github.com/we-promise/sure.git
synced 2026-08-05 16:42:18 +00:00
* feat(mobile): add transaction metadata editing * fix(mobile): preserve explicit metadata clears * fix(mobile): derive persisted tag metadata state * fix(mobile): avoid logging transaction details * fix(mobile): harden transaction edit sync Pass the edited transaction context through provider updates, refresh or fall back after empty update responses, surface field-level API errors, and avoid forced metadata refetches on every edit screen open. * fix(mobile): keep transaction edit selects ci-compatible Use the DropdownButtonFormField API supported by the Flutter version pinned in upstream mobile CI.
19 lines
494 B
Dart
19 lines
494 B
Dart
import '../models/merchant.dart';
|
|
import 'response_list_parser.dart';
|
|
|
|
class MerchantsService {
|
|
Future<Map<String, dynamic>> getMerchants({
|
|
required String accessToken,
|
|
}) async {
|
|
return fetchApiList<Merchant>(
|
|
accessToken: accessToken,
|
|
path: '/api/v1/merchants',
|
|
key: 'merchants',
|
|
resultKey: 'merchants',
|
|
fromJson: Merchant.fromJson,
|
|
isValid: (merchant) => merchant.id.isNotEmpty,
|
|
failureMessage: 'Failed to fetch merchants',
|
|
);
|
|
}
|
|
}
|