Fraud SDK .NET 2.0.0

Breaking changes

  • Refactor the SDK as a client generated from the Account Protect OpenAPI specification, replacing the previous hand-written implementation
  • Update client setup to a builder pattern with Client.Builder(...), replacing AddDataDome DI registration and DataDomeOptions
  • Update event submission to one dedicated class per operation (ValidateLogin, CollectLogin, ValidateRegistration, CollectRegistration, ValidatePasswordUpdate, CollectPasswordUpdate, ValidateAccountUpdate, CollectAccountUpdate) instead of a single IDataDomeContext with Validate and Collect methods
  • Update payload construction to per-event builders instead of the previous shared DataDomeEvent builder
  • Update payload validation to run at build time and throw a ValidationException on missing required fields
  • Update request field overrides to a RequestMetadata object passed alongside the request instead of mutating an extracted request wrapper
  • Update error handling to exceptions instead of a response Status field: validate calls still fail open and return Allow, while collect and feedback calls now throw (ApiException, HttpException, RequestTimeoutException)
  • Remove the Status and IP fields from the response model
  • Remove asynchronous validate and collect calls
  • Remove the useForwarded configuration option and its header parsing

Other changes

  • Add support for custom events with ValidateCustom and CollectCustom
  • Add support for the feedback endpoint
  • Add support for .NET 8.0