Skip to content

Commit d9d9886

Browse files
horghclaude
andcommitted
Update test data to include new party and method fields
Updated JSON test files and RequestTestHelper to include the new party field (customer) in event objects and method field (card) in payment objects, ensuring complete test coverage. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 253d5d1 commit d9d9886

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/java/com/maxmind/minfraud/request/RequestTestHelper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private static Transaction makeTransaction(Email e) throws Exception {
5858
.event(
5959
new Event
6060
.Builder()
61+
.party(Event.Party.CUSTOMER)
6162
.transactionId("txn3134133")
6263
.shopId("s2123")
6364
.time(ZonedDateTime.parse("2012-04-12T23:20:50.52Z"))
@@ -102,6 +103,7 @@ private static Transaction makeTransaction(Email e) throws Exception {
102103
.build()
103104
).payment(
104105
new Payment.Builder()
106+
.method(Payment.Method.CARD)
105107
.processor(Payment.Processor.STRIPE)
106108
.wasAuthorized(false)
107109
.declineCode("invalid number")

src/test/resources/test-data/full-request-email-md5.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"event": {
3+
"party": "customer",
34
"transaction_id": "txn3134133",
45
"shop_id": "s2123",
56
"time": "2012-04-12T23:20:50.52Z",
@@ -41,6 +42,7 @@
4142
"delivery_speed": "same_day"
4243
},
4344
"payment": {
45+
"method": "card",
4446
"processor": "stripe",
4547
"was_authorized": false,
4648
"decline_code": "invalid number"

src/test/resources/test-data/full-request.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"event": {
3+
"party": "customer",
34
"transaction_id": "txn3134133",
45
"shop_id": "s2123",
56
"time": "2012-04-12T23:20:50.52Z",
@@ -41,6 +42,7 @@
4142
"delivery_speed": "same_day"
4243
},
4344
"payment": {
45+
"method": "card",
4446
"processor": "stripe",
4547
"was_authorized": false,
4648
"decline_code": "invalid number"

0 commit comments

Comments
 (0)