Skip to content

Commit fb7deed

Browse files
Merge pull request #147 from Riskified/TIS-592
TIS-592 changed double to Double in BaseOrder.java
2 parents 3146709 + 979ab6b commit fb7deed

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

riskified-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.riskified</groupId>
66
<artifactId>riskified-sdk</artifactId>
7-
<version>v2.7.0</version>
7+
<version>v2.7.1</version>
88
<name>Riskified SDK</name>
99
<description>Riskified rest api SDK for java</description>
1010
<url>https://www.riskified.com</url>

riskified-sdk/src/main/java/com/riskified/RiskifiedClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ private HttpPost createPostRequest(String url) {
10241024
HttpPost postRequest = new HttpPost(url);
10251025
postRequest.setHeader(HttpHeaders.ACCEPT, "application/vnd.riskified.com; version=2");
10261026
postRequest.setHeader("X-RISKIFIED-SHOP-DOMAIN", shopUrl);
1027-
postRequest.setHeader("User-Agent","riskified_java_sdk/2.7.0"); // TODO: take the version automatically
1027+
postRequest.setHeader("User-Agent","riskified_java_sdk/2.7.1"); // TODO: take the version automatically
10281028
postRequest.setHeader("Version",versionHeaderValue);
10291029
return postRequest;
10301030
}

riskified-sdk/src/main/java/com/riskified/models/BaseOrder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void setGateway(String gateway) {
197197
this.gateway = gateway;
198198
}
199199

200-
public double getTotalPrice() {
200+
public Double getTotalPrice() {
201201
return totalPrice;
202202
}
203203

@@ -417,7 +417,7 @@ public void setSourceUrl(String sourceUrl) {
417417
this.sourceUrl = sourceUrl;
418418
}
419419

420-
public double getSubtotalPrice() {
420+
public Double getSubtotalPrice() {
421421
return subtotalPrice;
422422
}
423423

@@ -433,39 +433,39 @@ public void setTaxesIncluded(Boolean taxesIncluded) {
433433
this.taxesIncluded = taxesIncluded;
434434
}
435435

436-
public double getTotalDiscounts() {
436+
public Double getTotalDiscounts() {
437437
return totalDiscounts;
438438
}
439439

440440
public void setTotalDiscounts(double totalDiscounts) {
441441
this.totalDiscounts = totalDiscounts;
442442
}
443443

444-
public double getTotalLineItemsPrice() {
444+
public Double getTotalLineItemsPrice() {
445445
return totalLineItemsPrice;
446446
}
447447

448448
public void setTotalLineItemsPrice(double totalLineItemsPrice) {
449449
this.totalLineItemsPrice = totalLineItemsPrice;
450450
}
451451

452-
public double getTotalPriceUsd() {
452+
public Double getTotalPriceUsd() {
453453
return totalPriceUsd;
454454
}
455455

456456
public void setTotalPriceUsd(double totalPriceUsd) {
457457
this.totalPriceUsd = totalPriceUsd;
458458
}
459459

460-
public double getTotalTax() {
460+
public Double getTotalTax() {
461461
return totalTax;
462462
}
463463

464464
public void setTotalTax(double totalTax) {
465465
this.totalTax = totalTax;
466466
}
467467

468-
public double getTotalWeight() {
468+
public Double getTotalWeight() {
469469
return totalWeight;
470470
}
471471

0 commit comments

Comments
 (0)