Skip to content

Commit 5f48cde

Browse files
authored
Network Tokens Webhooks: update unit test data (#1494)
* Update unit test data * Use boolean type in test data * Add Newline at End of File * Add missing reasons in test data * Correct javadoc
1 parent 7154698 commit 5f48cde

File tree

3 files changed

+160
-12
lines changed

3 files changed

+160
-12
lines changed

src/main/java/com/adyen/model/configurationwebhooks/Device.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public Device() {
4444
}
4545

4646
/**
47-
* The form factor of the device used for provisioning the network token. Possible values: **virtual**, **physical**.
47+
* The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
4848
*
49-
* @param formFactor The form factor of the device used for provisioning the network token. Possible values: **virtual**, **physical**.
49+
* @param formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
5050
* @return the current {@code Device} instance, allowing for method chaining
5151
*/
5252
public Device formFactor(String formFactor) {
@@ -55,8 +55,8 @@ public Device formFactor(String formFactor) {
5555
}
5656

5757
/**
58-
* The form factor of the device used for provisioning the network token. Possible values: **virtual**, **physical**.
59-
* @return formFactor The form factor of the device used for provisioning the network token. Possible values: **virtual**, **physical**.
58+
* The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
59+
* @return formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
6060
*/
6161
@JsonProperty(JSON_PROPERTY_FORM_FACTOR)
6262
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -65,9 +65,9 @@ public String getFormFactor() {
6565
}
6666

6767
/**
68-
* The form factor of the device used for provisioning the network token. Possible values: **virtual**, **physical**.
68+
* The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
6969
*
70-
* @param formFactor The form factor of the device used for provisioning the network token. Possible values: **virtual**, **physical**.
70+
* @param formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
7171
*/
7272
@JsonProperty(JSON_PROPERTY_FORM_FACTOR)
7373
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,80 @@
11
{
22
"data": {
3-
"id": "NT0000001",
4-
"balancePlatform": "YOUR_BALANCE_PLATFORM"
3+
"balancePlatform": "YOUR_BALANCE_PLATFORM",
4+
"id": "NWTKXXXXXXXXXXXX",
5+
"authenticationApplied": false,
6+
"decision": "requireAuthentication",
7+
"paymentInstrumentId": "PIXXXXXXXXXXXXX",
8+
"status": "inactive",
9+
"type": "wallet",
10+
"validationFacts": [
11+
{
12+
"result": "valid",
13+
"type": "accountLookup"
14+
},
15+
{
16+
"result": "valid",
17+
"type": "paymentInstrumentExpirationCheck"
18+
},
19+
{
20+
"result": "invalid",
21+
"type": "avsPostalCode",
22+
"reasons": [
23+
"lowDeviceScore"
24+
]
25+
},
26+
{
27+
"result": "valid",
28+
"type": "inputExpiryDateCheck"
29+
},
30+
{
31+
"result": "valid",
32+
"type": "cvc2"
33+
},
34+
{
35+
"result": "valid",
36+
"type": "walletValidation"
37+
},
38+
{
39+
"result": "invalid",
40+
"type": "avsAddress",
41+
"reasons": [
42+
"lowDeviceScore"
43+
]
44+
},
45+
{
46+
"result": "valid",
47+
"type": "paymentInstrumentActive"
48+
},
49+
{
50+
"result": "valid",
51+
"type": "transactionRules"
52+
},
53+
{
54+
"result": "valid",
55+
"type": "paymentInstrument"
56+
},
57+
{
58+
"result": "valid",
59+
"type": "paymentInstrumentFound"
60+
}
61+
],
62+
"wallet": {
63+
"accountScore": "3",
64+
"device": {
65+
"formFactor": "mobile_phone"
66+
},
67+
"deviceScore": "3",
68+
"provisioningMethod": "manual",
69+
"recommendationReasons": [
70+
"accountCardTooNew",
71+
"lowAccountScore",
72+
"outSideHomeTerritory"
73+
],
74+
"type": "applePay"
75+
}
576
},
677
"environment": "test",
78+
"timestamp": "2025-05-20T07:44:26.101Z",
779
"type": "balancePlatform.networkToken.created"
8-
}
80+
}
Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,84 @@
11
{
22
"data": {
3-
"id": "NT0000001",
4-
"balancePlatform": "YOUR_BALANCE_PLATFORM"
3+
"balancePlatform": "YOUR_BALANCE_PLATFORM",
4+
"id": "NWTKXXXXXXXXXXXX",
5+
"authentication": {
6+
"method": "sms_OTP",
7+
"result": "successful"
8+
},
9+
"authenticationApplied": true,
10+
"decision": "requireAuthentication",
11+
"paymentInstrumentId": "PIXXXXXXXXXXXXX",
12+
"status": "inactive",
13+
"type": "wallet",
14+
"validationFacts": [
15+
{
16+
"result": "valid",
17+
"type": "accountLookup"
18+
},
19+
{
20+
"result": "valid",
21+
"type": "paymentInstrumentExpirationCheck"
22+
},
23+
{
24+
"result": "invalid",
25+
"type": "avsPostalCode",
26+
"reasons": [
27+
"lowDeviceScore"
28+
]
29+
},
30+
{
31+
"result": "valid",
32+
"type": "inputExpiryDateCheck"
33+
},
34+
{
35+
"result": "valid",
36+
"type": "cvc2"
37+
},
38+
{
39+
"result": "valid",
40+
"type": "walletValidation"
41+
},
42+
{
43+
"result": "invalid",
44+
"type": "avsAddress",
45+
"reasons": [
46+
"lowDeviceScore"
47+
]
48+
},
49+
{
50+
"result": "valid",
51+
"type": "paymentInstrumentActive"
52+
},
53+
{
54+
"result": "valid",
55+
"type": "transactionRules"
56+
},
57+
{
58+
"result": "valid",
59+
"type": "paymentInstrument"
60+
},
61+
{
62+
"result": "valid",
63+
"type": "paymentInstrumentFound"
64+
}
65+
],
66+
"wallet": {
67+
"accountScore": "3",
68+
"device": {
69+
"formFactor": "mobile_phone"
70+
},
71+
"deviceScore": "3",
72+
"provisioningMethod": "manual",
73+
"recommendationReasons": [
74+
"accountCardTooNew",
75+
"lowAccountScore",
76+
"outSideHomeTerritory"
77+
],
78+
"type": "applePay"
79+
}
580
},
681
"environment": "test",
82+
"timestamp": "2025-05-20T07:44:39.729Z",
783
"type": "balancePlatform.networkToken.updated"
8-
}
84+
}

0 commit comments

Comments
 (0)