Skip to content

Commit 23cd057

Browse files
refactor: Change total price validation to negative only
1 parent 21b4e2a commit 23cd057

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void validate(Validation validationType) throws FieldBadFormatException {
9797
}
9898

9999
if (this.totalPrice != null) {
100-
Validate.isNumberNegativeOrZero(this, this.totalPrice, "Total Price");
100+
Validate.isNumberNegative(this, this.totalPrice, "Total Price");
101101
}
102102

103103
if (this.browserIp != null) {

0 commit comments

Comments
 (0)