Skip to content

Commit

Permalink
Deprecate Factors subscores
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Oct 23, 2024
1 parent f1e791f commit 0a65b10
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion MaxMind.MinFraud/Response/Factors.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace MaxMind.MinFraud.Response
Expand All @@ -24,6 +25,7 @@ public sealed class Factors : Insights
/// risk score.
/// </summary>
[JsonPropertyName("subscores")]
[Obsolete("Replaced by RiskScoreReasons")]
public Subscores Subscores { get; init; } = new Subscores();

/// <summary>
Expand All @@ -32,7 +34,9 @@ public sealed class Factors : Insights
/// <returns>A string that represents the current object.</returns>
public override string ToString()
{
#pragma warning disable 0618
return $"{base.ToString()}, Subscores: {Subscores}, RiskScoreReasons: {RiskScoreReasons}";
#pragma warning restore 0618
}
}
}
4 changes: 3 additions & 1 deletion MaxMind.MinFraud/Response/Subscores.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System.Text.Json.Serialization;
using System;
using System.Text.Json.Serialization;

namespace MaxMind.MinFraud.Response
{
/// <summary>
/// This class contains scores for many of the individual risk
/// factors that are used to calculate the overall risk score.
/// </summary>
[Obsolete("Replaced by RiskScoreReason")]
public sealed class Subscores
{
/// <summary>
Expand Down
7 changes: 7 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release Notes
=============

5.1.0
-------------------------

* The minFraud Factors subscores have been deprecated. They will be removed
in March 2025. Please see [our release notes](https://dev.maxmind.com/minfraud/release-notes/2024/#deprecation-of-risk-factor-scoressubscores)
for more information.

5.1.0-beta.1 (2024-09-06)
-------------------------

Expand Down

0 comments on commit 0a65b10

Please sign in to comment.