cbr-finapi-rs
Typed Rust client for CBR public interfaces (AntiFraud, TSPI, EBS).
Regulatory Scope
Implements AntiFraud integration under 161-FZ with 12-sign OD-2506 model.
Features
- Typed request and decision models.
- Async client mode via
clientfeature. - Built-in
429handling withRetry-Aftersupport (fallback linear backoff). - Forward-compatible unknown fraud sign parsing.
- Optional request metadata for ATM/credential/cross-border signals.
OD-2506 Fraud Signs (12/12)
| OD-2506 Sign | Enum Variant | Meaning |
|---|---|---|
| 1 | ReceiverInDatabase |
Receiver account linked to known fraud indicators. |
| 2 | DeviceInDatabase |
Device linked to known fraud indicators. |
| 3 | AtypicalTransaction |
Deviation from normal customer transaction profile. |
| 4 | SuspiciousSbpTransfer |
Suspicious fast-payment pattern. |
| 5 | SuspiciousNfcActivity |
Suspicious NFC/token usage pattern. |
| 6 | MultipleAccountsFromSingleDevice |
One device tied to many unrelated accounts. |
| 7 | InconsistentGeolocation |
Geo/location data inconsistent with expected behavior. |
| 8 | HighVelocityTransfersInShortWindow |
Unusual transfer burst in short period. |
| 9 | RemoteAccessToolDetected |
Indicators of remote-control session malware. |
| 10 | KnownProxyOrVpnEndpoint |
Connection endpoint flagged as anonymization/proxy risk. |
| 11 | SocialEngineeringPatternDetected |
Signals of social-engineering coercion pattern. |
| 12 | ExternalOperatorSignal |
Signal from another payment system operator. |
Usage
use AntiFraudRequest;
use CbrApiClient;
use Decimal;
async