Skip to content

Commit cd4044a

Browse files
Merge pull request #192 from Riskified/refactor/DEV-121748-change-validation-total-price
DEV-121748 | refactor: Change total price validation to negative only
2 parents f2702f5 + 773feb2 commit cd4044a

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)