diff --git a/MaxMind.MinFraud.UnitTest/Request/TransactionReportTest.cs b/MaxMind.MinFraud.UnitTest/Request/TransactionReportTest.cs index 89bf0c3b..4e4e0d4b 100644 --- a/MaxMind.MinFraud.UnitTest/Request/TransactionReportTest.cs +++ b/MaxMind.MinFraud.UnitTest/Request/TransactionReportTest.cs @@ -84,5 +84,16 @@ public void TestMaxMindIdIsInvalid(string? maxmindId) MaxMindId = maxmindId }); } + + [Fact] + public void TestClearTag() + { + var report = new TransactionReport + { + IPAddress = IP, + Tag = TransactionReportTag.Clear + }; + Assert.Equal(TransactionReportTag.Clear, report.Tag); + } } } diff --git a/MaxMind.MinFraud/Request/TransactionReport.cs b/MaxMind.MinFraud/Request/TransactionReport.cs index 0711c2d0..1acb2c57 100644 --- a/MaxMind.MinFraud/Request/TransactionReport.cs +++ b/MaxMind.MinFraud/Request/TransactionReport.cs @@ -37,6 +37,13 @@ public enum TransactionReportTag /// [EnumMember(Value = "chargeback")] Chargeback, + + /// + /// Clear a previous transaction report tag when new information + /// indicates the initial classification was incorrect. + /// + [EnumMember(Value = "clear")] + Clear, } /// diff --git a/releasenotes.md b/releasenotes.md index cd97e744..d2eb7f33 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -16,6 +16,8 @@ explicit device linking. - Added `Banquest`, `SummitPayments`, `Yaadpay`, and `FatZebra` to the `PaymentProcessor` enum. +- Added `Clear` to the `TransactionReportTag` enum for use with the Report + Transaction API. - **BREAKING:** The minimum `MaxMind.GeoIP2` dependency has been bumped to 6.0.0 (a transitive breaking change). - Custom `ToString()` overrides have been removed from all response and request