Skip to content

Commit 5fb59c5

Browse files
horghclaude
andcommitted
Add credit_application and fund_transfer event types
Add credit_application and fund_transfer to the /event/type validation enum and corresponding test cases. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent bc6585f commit 5fb59c5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ History
99
* Setuptools has been replaced with the uv build backend for building the
1010
package.
1111
* Added ``securepay`` to the ``/payment/processor`` validation.
12+
* Added ``credit_application`` and ``fund_transfer`` to the ``/event/type``
13+
validation.
1214

1315
3.1.0 (2025-05-23)
1416
++++++++++++++++++

src/minfraud/validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ def _credit_card_token(s: str) -> str:
285285
[
286286
"account_creation",
287287
"account_login",
288+
"credit_application",
288289
"email_change",
290+
"fund_transfer",
289291
"password_reset",
290292
"payout_change",
291293
"purchase",

tests/test_validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ def test_type(self) -> None:
324324
for good in (
325325
"account_creation",
326326
"account_login",
327+
"credit_application",
327328
"email_change",
329+
"fund_transfer",
328330
"password_reset",
329331
"payout_change",
330332
"purchase",

0 commit comments

Comments
 (0)