Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API
Dart SDKFinance

Finance (FinanceApi)

Le module FinanceApi gère le solde et les transactions.

Accès : client.finance

Méthodes

balance

Récupère le solde.

final response = await client.finance.balance( BalanceParams(apiKey: 'user_api_key'), ); print('Solde: ${response.data}');

listTransactions

Liste les transactions.

final response = await client.finance.listTransactions( TransactionListParams(apiKey: 'user_api_key'), ); for (final tx in response.data) { print('${tx.amount} - ${tx.status}'); }

withdraw

Effectue un retrait.

final response = await client.finance.withdraw( WithdrawParams( apiKey: 'user_api_key', amount: 10000, phoneNumber: '+2250700000000', password: 'password', paymentMethod: 'OM_CI', ), );

recharge

Effectue une recharge du solde de l’application.

final response = await client.finance.recharge( RechargeParams( apiKey: 'user_api_key', appId: 'app_id', amount: 10000, phone: '+2250700000000', provider: TransactionProvider.omCi, ), );

listRecharges

Liste les transactions de recharge de l’application.

final response = await client.finance.listRecharges( RechargeListParams( apiKey: 'user_api_key', appId: 'app_id', ), ); for (final tx in response.data) { print('${tx.amount} - ${tx.status} - ${tx.provider}'); }
Last updated on