feat(v2.7.4): parallel 7-courier Bangladesh fraud breakdown engine with strict zero-mock per-carrier stats

This commit is contained in:
Amirul Islam Redwan71
2026-11-27 05:56:40 +06:00
parent a3392ae69f
commit 43d55baca3
32 changed files with 1283 additions and 145 deletions
+11
View File
@@ -66,6 +66,16 @@ export interface BalanceResponse {
as_of?: string;
raw_response?: any;
}
export interface CarrierFraudBreakdownItem {
courier: string;
courier_name: string;
status: "LIVE" | "NOT_CONNECTED" | "ACCOUNT_INACTIVE" | "UPSTREAM_UNAVAILABLE";
total_parcels: number | null;
total_delivered: number | null;
total_cancelled: number | null;
success_rate: number | null;
note?: string;
}
export interface FraudRiskScoreResponse {
phone: string;
risk_level: "INVALID_NUMBER" | "NO_HISTORY" | "LOW" | "MEDIUM" | "MODERATE" | "HIGH" | "CRITICAL" | "NEW_BUYER";
@@ -81,6 +91,7 @@ export interface FraudRiskScoreResponse {
data_sources: string[];
sample_size: number;
coverage_note: string;
courier_breakdown?: CarrierFraudBreakdownItem[];
multi_signal_factors?: {
carrier_score: string;
address_confidence?: string;