baridimob 0.4.0
baridimob: ^0.4.0 copied to clipboard
Unofficial Dart and Flutter SDK for BaridiMob (Algérie Poste): accounts, payment verification, transfers, bill payments, cardless withdrawals and receipts.
0.4.0 #
- Dynamic bill forms, built like the official app: a
hiddenfield'ssettings.valueis sent (thebillerServiceCode=FACTUREwithout which the Algérie Télécom bill inquiry fails with result 2),moneyfields expose their prefilled amount and theirSELECTchoices, fields honourreadonlyand come in the order of theirordinalNumber, and a form with no further step isdone. DynamicStep.values()builds a step's values, adding the hidden fields, the payment source (DynamicSource:CLIENT_CARD_IDorACCOUNT_NUMBER, which dynamic operations require instead of1/2) and the amount.DynamicCheckResult.detailsandDynamicExecResult.detailscarry what BaridiMob says (for a bill: subscriber, bill, amount due);DynamicExecResult.statusits final state.ApiResultError.descriptionholds BaridiMob's own words, now the default message (for example «لا توجد فواتير غير مدفوعة»).- Cash withdrawals without a card:
cardless.form,list,createanddelete(CardlessSource.accountor.card), withformatDatePatternfor the expiry field. - Verified live: the bill inquiry,
check()with a card source, andcardless.create()up to BaridiMob's balance check.
0.3.0 #
- Receipts of history movements:
receipts.find(transaction)returns the recent operation behind a movement (matched by reference number, or by time and amount), andreceipts.downloadFor(transaction)its PDF, ornullwhen BaridiMob no longer keeps it. RecentOperation.operationId, the reference shared withTransaction.refNum.
0.2.0 #
- Cards: list regular and virtual cards, read a card and its limits, and
browse its movements (
cards.list,cards.get,cards.limits,cards.history,cards.allHistory,cards.iterHistory). A card is aBaridiMobCard, so it does not clash with Flutter'sCardwidget. - Dynamic payments: validate, confirm and execute bill operations
(
dynamic.check,dynamic.requestOtp,dynamic.exec,dynamic.complete), with the current step key ondynamic.stepand the choices/access attributes of each form field.check,execandcompleteare not yet verified against the live server.
0.1.0 #
- Initial release.
- Login with device confirmation by SMS, automatic session renewal.
- Accounts, balance and transaction history.
- Payment verification by reference number and amount.
- Transfers and bill payments, always confirmed by SMS code.
- Recent operations and PDF receipts, holder profile.
- Session storage in memory, in a file, or your own (for example secure storage).