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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Riskified JAVA SDK
=================

version: 6.0.0
version: 6.0.1
------------------

See http://apiref.riskified.com for full API documentation
Expand Down Expand Up @@ -104,7 +104,7 @@ curl -H "Content-Type: application/json" -H "X-RISKIFIED-HMAC-SHA256: 071ef80d5
<dependency>
<groupId>com.riskified</groupId>
<artifactId>riskified-sdk</artifactId>
<version>6.0.0</version>
<version>6.0.1</version>
</dependency>
```

2 changes: 1 addition & 1 deletion riskified-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<dependency>
<groupId>com.riskified</groupId>
<artifactId>riskified-sdk</artifactId>
<version>6.0.0</version>
<version>6.0.1</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion riskified-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.riskified</groupId>
<artifactId>riskified-sdk</artifactId>
<version>6.0.0</version>
<version>6.0.1</version>
<name>Riskified SDK</name>
<description>Riskified rest api SDK for java</description>
<url>https://www.riskified.com</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ private HttpPost createPostRequest(String url) {
postRequest.setHeader(HttpHeaders.ACCEPT, "application/vnd.riskified.com; version=2");
postRequest.setHeader(HttpHeaders.ACCEPT, "application/json");
postRequest.setHeader("X-RISKIFIED-SHOP-DOMAIN", shopUrl);
postRequest.setHeader("User-Agent","riskified_java_sdk/6.0.0"); // TODO: take the version automatically
postRequest.setHeader("User-Agent","riskified_java_sdk/6.0.1"); // TODO: take the version automatically
postRequest.setHeader("Version",versionHeaderValue);
return postRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class AuthError extends Exception {

public AuthError(String AuthError, String calcAuth) {
super(String.format("Auth Error, got hash: %s , expected: %s", AuthError, calcAuth));
public AuthError() {
super("Request HMAC signature was either missing or incorrect");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Notification toObject(String data, String hash) throws AuthError, JsonSyn
if (hash.equals(calcHash))
return gson.fromJson(data, Notification.class);
else
throw new AuthError(hash, calcHash);
throw new AuthError();
}

/**
Expand Down