From 524091e0c8af55525a90fa7220fac9e059ce33e9 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 12 Nov 2025 13:54:22 -0800 Subject: [PATCH] Add sim_swap event type --- HISTORY.rst | 4 ++-- src/minfraud/validation.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index c5b9e30..0083ce1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -11,8 +11,8 @@ History * Setuptools has been replaced with the uv build backend for building the package. * Added ``securepay`` to the ``/payment/processor`` validation. -* Added ``credit_application`` and ``fund_transfer`` to the ``/event/type`` - validation. +* Added ``credit_application``, ``fund_transfer``, and ``sim_swap`` to the + ``/event/type`` validation. * Added the input ``/event/party``. This is the party submitting the transaction. * Added the input ``/payment/method``. This is the payment method associated diff --git a/src/minfraud/validation.py b/src/minfraud/validation.py index a8de913..cdd0f6b 100644 --- a/src/minfraud/validation.py +++ b/src/minfraud/validation.py @@ -311,6 +311,7 @@ def _credit_card_token(s: str) -> str: "purchase", "recurring_purchase", "referral", + "sim_swap", "survey", ], )