Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ And then add the artifact `incognia-api-client` **or** `incognia-api-client-shad
<dependency>
<groupId>com.incognia</groupId>
<artifactId>incognia-api-client</artifactId>
<version>3.9.0</version>
<version>3.10.0</version>
</dependency>
```
```xml
<dependency>
<groupId>com.incognia</groupId>
<artifactId>incognia-api-client-shaded</artifactId>
<version>3.9.0</version>
<version>3.10.0</version>
</dependency>
```

Expand All @@ -47,13 +47,13 @@ repositories {
And then add the dependency
```gradle
dependencies {
implementation 'com.incognia:incognia-api-client:3.9.0'
implementation 'com.incognia:incognia-api-client:3.10.0'
}
```
OR
```gradle
dependencies {
implementation 'com.incognia:incognia-api-client-shaded:3.9.0'
implementation 'com.incognia:incognia-api-client-shaded:3.10.0'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "com.incognia"
version = "3.9.0"
version = "3.10.0"

task createProjectVersionFile {
def projectVersionDir = "$projectDir/src/main/java/com/incognia/api"
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/incognia/api/IncogniaAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public TransactionAssessment registerLogin(RegisterLoginRequest request)
.accountId(request.getAccountId())
.externalId(request.getExternalId())
.policyId(request.getPolicyId())
.relatedAccountId(request.getRelatedAccountId())
.customProperties(request.getCustomProperties())
.type("login")
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class PostTransactionRequestBody {
String type;
String storeId;
String externalId;
String relatedAccountId;
Location location;
Coupon coupon;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class RegisterLoginRequest {
String policyId;
String appVersion;
String deviceOs;
String relatedAccountId;
Map<String, Object> customProperties;
Location location;

Expand Down
3 changes: 3 additions & 0 deletions src/test/java/com/incognia/api/IncogniaAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ void testRegisterLogin_whenDataIsValid(Boolean eval) {
String deviceOs = "Android";
String externalId = "external-id";
String policyId = "policy-id";
String relatedAccountId = "related-account-id";
Map<String, Object> map = new HashMap<>();
map.put("custom-property", "custom-value");

Expand All @@ -490,6 +491,7 @@ void testRegisterLogin_whenDataIsValid(Boolean eval) {
.addresses(null)
.paymentMethods(null)
.policyId(policyId)
.relatedAccountId(relatedAccountId)
.customProperties(map)
.build());
mockServer.setDispatcher(dispatcher);
Expand All @@ -503,6 +505,7 @@ void testRegisterLogin_whenDataIsValid(Boolean eval) {
.externalId(externalId)
.evaluateTransaction(eval)
.policyId(policyId)
.relatedAccountId(relatedAccountId)
.customProperties(map)
.build();
TransactionAssessment transactionAssessment = client.registerLogin(loginRequest);
Expand Down