Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions MaxMind.MinFraud.UnitTest/Request/TransactionReportTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
7 changes: 7 additions & 0 deletions MaxMind.MinFraud/Request/TransactionReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public enum TransactionReportTag
/// </summary>
[EnumMember(Value = "chargeback")]
Chargeback,

/// <summary>
/// Clear a previous transaction report tag when new information
/// indicates the initial classification was incorrect.
/// </summary>
[EnumMember(Value = "clear")]
Clear,
}

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading