<?php
namespace App\Application\Services\Risk;
use App\Models\RiskScreening;
use Illuminate\Support\Str;
use RuntimeException;
final class ManualRiskScreeningService {
 public function screen(string $subjectType,string $subjectId,string $address,string $network,?int $merchantId=null):RiskScreening {$screen=RiskScreening::create(['public_id'=>'risk_'.Str::ulid(),'merchant_id'=>$merchantId,'subject_type'=>$subjectType,'subject_id'=>$subjectId,'provider'=>'manual','address'=>$address,'network'=>$network,'status'=>'manual_review','risk_level'=>'unknown','flags'=>['AUTOMATED_RISK_PROVIDER_NOT_CONFIGURED'],'screened_at'=>now()]);throw new RuntimeException('RISK_SCREENING_REQUIRES_MANUAL_REVIEW');}
}
