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
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>v3.0.0</version>
<version>v3.1.0</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/3.0.0"); // TODO: take the version automatically
postRequest.setHeader("User-Agent","riskified_java_sdk/3.1.0"); // 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 @@ -10,7 +10,6 @@ public class EventLineItem extends LineItem {
private float latitude;
private float longitude;
private Date eventDate;
private Recipient recipient;

public EventLineItem(double price, int quantity, String title,
String productId) {
Expand Down Expand Up @@ -65,12 +64,4 @@ public void setEventDate(Date eventDate) {
this.eventDate = eventDate;
}

public Recipient getRecipient() {
return recipient;
}

public void setRecipient(Recipient recipient) {
this.recipient = recipient;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class TravelLineItem extends LineItem {
private String carrierName;
private String carrierCode;
private String transportMethod;
//private Recipient recipient;

public TravelLineItem(double price, int quantity, String title,
String legId, int legIndex, int routeIndex) {
Expand Down Expand Up @@ -192,13 +191,5 @@ public void setTransportMethod(String transportMethod) {
this.transportMethod = transportMethod;
}

// public Recipient getRecipient() {
// return recipient;
// }
//
// public void setRecipient(Recipient recipient) {
// this.recipient = recipient;
// }


}
Loading