Skip to content
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Riskified JAVA SDK
=================

version: v1.1.0-ch
version: v1.2.1-ch

------------------

Expand Down
6 changes: 3 additions & 3 deletions 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>v1.1.0-ch</version>
<version>v1.2.1-ch</version>
<name>Riskified SDK</name>
<description>Riskified rest api SDK for java</description>
<url>https://www.riskified.com</url>
Expand All @@ -23,8 +23,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ private HttpPost createPostRequest(String url) {
HttpPost postRequest = new HttpPost(url);
postRequest.setHeader(HttpHeaders.ACCEPT, "application/vnd.riskified.com; version=2");
postRequest.setHeader("X-RISKIFIED-SHOP-DOMAIN", shopUrl);
postRequest.setHeader("User-Agent","riskified_java_sdk/v1.1.0-ch"); // TODO: take the version automatically
postRequest.setHeader("User-Agent","riskified_java_sdk/v1.2.1-ch"); // 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 @@ -145,6 +145,7 @@ public void validate(Validation validationType) throws FieldBadFormatException {
if (this.decision != null) {
this.decision.validate(validationType);
}

}

public String getId() {
Expand Down Expand Up @@ -512,9 +513,9 @@ public void setVendorIntegrationType(String vendorIntegrationType) {
this.vendorIntegrationType = vendorIntegrationType;
}

// public List<Address> getShippingAddress() {
// return shippingAddress;
// }
public Address getShippingAddress() {
return shippingAddress;
}

public void setShippingAddress(Address shippingAddress) {
this.shippingAddress = shippingAddress;
Expand Down