m8ty_client_creditcard
Package overview
Section titled “Package overview”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
Before you start
Section titled “Before you start”Check the documentation of the m8ty_client_creditcard library to get an idea about the available models and their properties.
import all needed libraries
Section titled “import all needed libraries” 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';How to perform different tasks
Section titled “How to perform different tasks”Here some examples how the dart client can be used
Search credit card transactions
Section titled “Search credit card transactions” 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}', ); }© m8ty GmbH 2023 · m8ty.eu
