diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-12-08 12:37:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 12:37:23 +0100 |
commit | c16f91fc6c1bcaf8b96420f3539996e67c1aae44 (patch) | |
tree | 3750a34ee588aba663c19c0e80dd506b6f69cd0e /src/main/java/org/uic/barcode/ticket/api/asn/omv1 | |
parent | Merge pull request #39 from UnionInternationalCheminsdeFer/1.2.11 (diff) | |
parent | - Completed version3 asn1 level unit tests (diff) | |
download | UIC-barcode-1.2.12.tar UIC-barcode-1.2.12.tar.gz UIC-barcode-1.2.12.tar.bz2 UIC-barcode-1.2.12.tar.lz UIC-barcode-1.2.12.tar.xz UIC-barcode-1.2.12.tar.zst UIC-barcode-1.2.12.zip |
Diffstat (limited to 'src/main/java/org/uic/barcode/ticket/api/asn/omv1')
5 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java index 579342e..c7d0557 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java @@ -125,6 +125,7 @@ public class CountermarkData extends Object { @FieldOrder(order = 22)
@IntRange(minValue=-1,maxValue=700)
+ @Asn1Default(value="0")
@Asn1Optional public Long validFromDay;
@FieldOrder(order = 22)
@@ -137,6 +138,7 @@ public class CountermarkData extends Object { @FieldOrder(order = 24)
@IntRange(minValue=0,maxValue=370)
+ @Asn1Default(value="0")
@Asn1Optional public Long validUntilDay;
@FieldOrder(order = 25)
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java index fc5523c..ef425aa 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java @@ -23,6 +23,7 @@ import java.util.Calendar; import java.util.Date;
import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
+import org.uic.barcode.asn1.datatypes.Asn1Default;
import org.uic.barcode.asn1.datatypes.Asn1Optional;
import org.uic.barcode.asn1.datatypes.CharacterRestriction;
import org.uic.barcode.asn1.datatypes.FieldOrder;
@@ -58,6 +59,7 @@ public class CustomerCardData extends Object { @FieldOrder(order = 5)
@IntRange(minValue=0,maxValue=250)
+ @Asn1Default(value="0")
@Asn1Optional public Long validUntilYear;
@FieldOrder(order = 6)
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java index bb0d273..b1cc30c 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java @@ -67,10 +67,12 @@ public class FIPTicketData extends Object { @FieldOrder(order = 6)
@IntRange(minValue=-1,maxValue=700)
+ @Asn1Default(value="0")
@Asn1Optional public Long validFromDay;
@FieldOrder(order = 7)
@IntRange(minValue=0,maxValue=370)
+ @Asn1Default(value="0")
@Asn1Optional public Long validUntilDay;
@FieldOrder(order = 8)
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/PassData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/PassData.java index 701b076..63f9292 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/PassData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/PassData.java @@ -97,6 +97,7 @@ public class PassData extends Object { /** The valid from day. */
@FieldOrder(order = 9)
@IntRange(minValue=-1,maxValue=700)
+ @Asn1Default(value="0")
@Asn1Optional public Long validFromDay;
/** The valid from time. */
@@ -112,6 +113,7 @@ public class PassData extends Object { /** The valid until day. */
@FieldOrder(order = 12)
@IntRange(minValue=0,maxValue=370)
+ @Asn1Default(value="0")
@Asn1Optional public Long validUntilDay;
/** The valid until time. */
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java index ab9eaea..6b1d5e1 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java @@ -23,6 +23,7 @@ import java.util.Calendar; import java.util.Date;
import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
+import org.uic.barcode.asn1.datatypes.Asn1Default;
import org.uic.barcode.asn1.datatypes.Asn1Optional;
import org.uic.barcode.asn1.datatypes.CharacterRestriction;
import org.uic.barcode.asn1.datatypes.FieldOrder;
@@ -78,6 +79,7 @@ public class VoucherData extends Object { public Long validUntilDay;
@FieldOrder(order = 10)
+ @Asn1Default(value="0")
@Asn1Optional public Long value;
@FieldOrder(order = 11)
|