Skip to content

Commit

Permalink
ValidValues: Added wrappers for min and max for BrAPI 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mobreza committed Jul 31, 2023
1 parent 7fdce98 commit fe71c7f
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,26 @@ public class ValidValues
private List<Category> categories;
private String maximumValue;
private String minimumValue;

/** @deprecated Deprecated in BrAPI 2.1 */
@Deprecated
public String getMax() {
return this.maximumValue;
}

public ValidValues setMax(String maximumValue) {
this.maximumValue = maximumValue;
return this;
}

/** @deprecated Deprecated in BrAPI 2.1 */
@Deprecated
public String getMin() {
return this.minimumValue;
}

public ValidValues setMin(String minimumValue) {
this.minimumValue = minimumValue;
return this;
}
}

0 comments on commit fe71c7f

Please sign in to comment.