Skip to content

Conversation

@horgh
Copy link
Contributor

@horgh horgh commented Sep 16, 2025

No description provided.

horgh and others added 3 commits September 16, 2025 21:34
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>
Add new /event/party enum field to specify which party is submitting the
transaction. Valid values are "agent" and "customer". The field is
positioned first in the event object.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add new /payment/method enum field to specify the payment method
associated with the transaction. Valid values are bank_debit,
bank_redirect, bank_transfer, buy_now_pay_later, card, crypto,
digital_wallet, gift_card, real_time_payment, and rewards.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@horgh horgh requested a review from Copilot September 16, 2025 21:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for new transaction validation fields by introducing /event/party and /payment/method inputs, and expanding the /event/type validation with new values.

  • Adds validation for event party (agent/customer) and payment method (multiple options like card, crypto, etc.)
  • Extends event type validation with "credit_application" and "fund_transfer" values
  • Updates documentation and test data to reflect the new fields

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/minfraud/validation.py Adds validation schemas for new event/party and payment/method fields, plus new event type values
tests/test_validation.py Adds comprehensive test coverage for the new validation fields
tests/data/full-transaction-request.json Updates test data to include examples of the new fields
README.rst Updates documentation examples to show usage of new fields
HISTORY.rst Documents the new features in the changelog

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@oschwald oschwald merged commit 6eb5e5c into main Sep 16, 2025
46 checks passed
@oschwald oschwald deleted the wstorey/eng-2871-eventparty-and-paymentmethod-minfraud-inputs-are-supported branch September 16, 2025 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants