Skip to content

Commit

Permalink
Merge pull request #147 from Riskified/TIS-592
Browse files Browse the repository at this point in the history
TIS-592 changed double to Double in BaseOrder.java
  • Loading branch information
mooseriskified committed Jun 28, 2023
2 parents 3146709 + 979ab6b commit fb7deed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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>v2.7.0</version>
<version>v2.7.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 @@ -1024,7 +1024,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/2.7.0"); // TODO: take the version automatically
postRequest.setHeader("User-Agent","riskified_java_sdk/2.7.1"); // TODO: take the version automatically
postRequest.setHeader("Version",versionHeaderValue);
return postRequest;
}
Expand Down
14 changes: 7 additions & 7 deletions riskified-sdk/src/main/java/com/riskified/models/BaseOrder.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void setGateway(String gateway) {
this.gateway = gateway;
}

public double getTotalPrice() {
public Double getTotalPrice() {
return totalPrice;
}

Expand Down Expand Up @@ -417,7 +417,7 @@ public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}

public double getSubtotalPrice() {
public Double getSubtotalPrice() {
return subtotalPrice;
}

Expand All @@ -433,39 +433,39 @@ public void setTaxesIncluded(Boolean taxesIncluded) {
this.taxesIncluded = taxesIncluded;
}

public double getTotalDiscounts() {
public Double getTotalDiscounts() {
return totalDiscounts;
}

public void setTotalDiscounts(double totalDiscounts) {
this.totalDiscounts = totalDiscounts;
}

public double getTotalLineItemsPrice() {
public Double getTotalLineItemsPrice() {
return totalLineItemsPrice;
}

public void setTotalLineItemsPrice(double totalLineItemsPrice) {
this.totalLineItemsPrice = totalLineItemsPrice;
}

public double getTotalPriceUsd() {
public Double getTotalPriceUsd() {
return totalPriceUsd;
}

public void setTotalPriceUsd(double totalPriceUsd) {
this.totalPriceUsd = totalPriceUsd;
}

public double getTotalTax() {
public Double getTotalTax() {
return totalTax;
}

public void setTotalTax(double totalTax) {
this.totalTax = totalTax;
}

public double getTotalWeight() {
public Double getTotalWeight() {
return totalWeight;
}

Expand Down

0 comments on commit fb7deed

Please sign in to comment.