From 0b508c39abe6c0a8ee9309893fc9e18dab9d4ebe Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 23 Nov 2026 22:07:49 +0000 Subject: [PATCH 1/3] Remove verification time from failed example The shipping example sets the phone verification result to false. The updated API reference says to send the verification time only when the result is true. STF-2488 Co-Authored-By: Claude Fable 5.2 --- README.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/README.rst b/README.rst index e5c675e..3db025c 100644 --- a/README.rst +++ b/README.rst @@ -202,7 +202,6 @@ Score, Insights and Factors Example >>> 'phone_country_code': '1', >>> 'phone_number': '123-456-0000', >>> 'phone_verification_method': 'network', - >>> 'phone_verification_time': '2026-10-01T14:35:00Z', >>> 'phone_was_verification_successful': False, >>> 'delivery_speed': 'same_day', >>> }, From 84efb207cac7e03e6237344d46c3be559e26de4f Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 23 Nov 2026 23:12:50 +0000 Subject: [PATCH 2/3] Fix the report transaction examples Both examples had no colon after the `with` statement and one space too many of indentation. The asynchronous example called `async_client.report`, but the context variable is `client`. Co-Authored-By: Claude Fable 5.2 --- README.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 3db025c..0d9c591 100644 --- a/README.rst +++ b/README.rst @@ -291,13 +291,13 @@ For synchronous reporting: >>> from minfraud import Client >>> - >>> with Client(42, 'licensekey') as client + >>> with Client(42, 'licensekey') as client: >>> transaction_report = { >>> 'ip_address': '152.216.7.110', >>> 'tag': 'chargeback', >>> 'minfraud_id': '2c69df73-01c0-45a5-b218-ed85f40b17aa', - >>> } - >>> client.report(transaction_report) + >>> } + >>> client.report(transaction_report) For asynchronous reporting: @@ -307,13 +307,13 @@ For asynchronous reporting: >>> from minfraud import AsyncClient >>> >>> async def report(): - >>> async with AsyncClient(42, 'licensekey') as client + >>> async with AsyncClient(42, 'licensekey') as client: >>> transaction_report = { >>> 'ip_address': '152.216.7.110', >>> 'tag': 'chargeback', >>> 'minfraud_id': '2c69df73-01c0-45a5-b218-ed85f40b17aa', - >>> } - >>> await async_client.report(transaction_report) + >>> } + >>> await client.report(transaction_report) >>> >>> asyncio.run(report()) From 9f71b265851d969f9360b46fd7080dff1aaf263b Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 23 Nov 2026 23:12:50 +0000 Subject: [PATCH 3/3] Fix the HTTPError name in the README The package exports `minfraud.HTTPError`. `minfraud.HttpError` does not exist. Co-Authored-By: Claude Fable 5.2 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0d9c591..bf5f8bd 100644 --- a/README.rst +++ b/README.rst @@ -125,7 +125,7 @@ The possible errors are: rejects the request as invalid for another reason, such as a reserved IP address. It is also raised if validation of the request before it is sent to the server fails. -* ``minfraud.HttpError`` - This will be raised when an unexpected HTTP +* ``minfraud.HTTPError`` - This will be raised when an unexpected HTTP error occurs such as a firewall interfering with the request to the server. * ``minfraud.MinFraudError`` - This will be raised when some other error occurs such as unexpected content from the server. This also serves as the