From 4dde061c3538dc46f1a9345b10ca46cc23dda1be Mon Sep 17 00:00:00 2001 From: Alex Stasewitsch Date: Thu, 4 May 2023 13:07:26 +0200 Subject: changed 'minValue' for 'productIdNum' from 1 to 0 for FCB 1.x.x; according to 'uicRailTicketData_v1.3.4.asn' and others 'minValue' for 'productIdNum' has to be 0. otherwise it causes interpretation errors; --- .../org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java | 2 +- src/main/java/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java | 2 +- src/main/java/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java | 2 +- .../org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java | 2 +- src/main/java/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java | 2 +- src/main/java/org/uic/barcode/ticket/api/asn/omv1/PassData.java | 2 +- src/main/java/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java | 2 +- .../java/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java | 2 +- src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java index 1eb0533..6729d08 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java @@ -84,7 +84,7 @@ public class CarCarriageReservationData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 10) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 11) 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 c7d0557..a31f56d 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 @@ -56,7 +56,7 @@ public class CountermarkData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 4) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 5) 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 b1cc30c..b9d5a50 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 @@ -58,7 +58,7 @@ public class FIPTicketData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 4) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 5) diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java index 51afa05..c3cc557 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java @@ -50,7 +50,7 @@ public class IncludedOpenTicketType extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 2) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 3) diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java index 29047b3..6f90f6f 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java @@ -59,7 +59,7 @@ public class OpenTicketData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 4) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 5) 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 63f9292..74e8e4d 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 @@ -71,7 +71,7 @@ public class PassData extends Object { /** The product id num. */ @FieldOrder(order = 4) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; /** The product id IA 5. */ diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java index ecf1d5a..b1b2be4 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java @@ -69,7 +69,7 @@ public class ReservationData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 7) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 8) diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java index 36dc6bf..f04a835 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java @@ -58,7 +58,7 @@ public class StationPassageData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 4) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 5) 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 6b1d5e1..521f32a 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 @@ -55,7 +55,7 @@ public class VoucherData extends Object { @Asn1Optional public String productOwnerIA5; @FieldOrder(order = 4) - @IntRange(minValue=1,maxValue=32000) + @IntRange(minValue=0,maxValue=32000) @Asn1Optional public Long productIdNum; @FieldOrder(order = 5) -- cgit v1.2.3