Skip to content

m8ty_client_creditcard

m8ty_client_creditcard solves this by providing a dedicated interface for searching credit-card transactions, so apps can present those transactions in an appropriate journey.

Credit cards are separately handled as those may not be connected to specific bank account

Check the documentation of the m8ty_client_creditcard library to get an idea about the available models and their properties.

import 'package:dio/dio.dart';
import 'package:m8ty_client_creditcard/m8ty_client_creditcard.dart';
import 'package:m8ty_client_common/m8ty_client_common.dart';
import 'package:built_collection/built_collection.dart';

Here some examples how the dart client can be used

final client = M8tyClientCreditcard();
client.setOAuthToken('ApiOAuth2', oauthToken);
final api = client.getCreditcardTransactionsApi();
try {
final response = await api.searchCreditcardTransactions(
searchCreditcardTransactionRequestModel: SearchCreditcardTransactionRequestModel((b) {
// set search criteria
}),
);
print('Transactions: ${response.data}');
} on DioException catch (e) {
throw Exception(
'Request failed (status: ${e.response?.statusCode}): ${e.response?.data}',
);
}