We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2141fad commit 0ac33edCopy full SHA for 0ac33ed
NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/vo/DiscountType.java
@@ -0,0 +1,18 @@
1
+package com.labs64.netlicensing.domain.vo;
2
+
3
+public enum DiscountType {
4
+ FIX,
5
6
+ PERCENT;
7
8
+ public static DiscountType parseString(final String discountType) {
9
+ if (discountType != null) {
10
+ for (final DiscountType type : DiscountType.values()) {
11
+ if (discountType.equalsIgnoreCase(type.name())) {
12
+ return type;
13
+ }
14
15
16
+ return null;
17
18
+}
0 commit comments