Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/seatsio/charts/ChartObjectInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public record ChartObjectInfo(String label, Labels labels, IDs ids, String categ
String objectType, Boolean bookAsAWhole, String section, String entrance,
Integer capacity, String leftNeighbour, String rightNeighbour,
Double distanceToFocalPoint, Integer numSeats, Boolean isAccessible,
Boolean isCompanionSeat, Boolean hasRestrictedView, String zone, Floor floor) {
Boolean isCompanionSeat, Boolean hasLiftUpArmrests, Boolean isHearingImpaired,
Boolean isSemiAmbulatorySeat, Boolean hasSignLanguageInterpretation,
Boolean isPlusSize, Boolean hasRestrictedView, String zone, Floor floor) {

}
5 changes: 3 additions & 2 deletions src/main/java/seatsio/events/EventObjectInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ public record EventObjectInfo(String status, String label, Labels labels, IDs id
Boolean bookAsAWhole, String orderId, boolean forSale, String section, String entrance,
Integer capacity, Integer numBooked, Integer numFree, Integer numHeld, Integer numSeats,
Integer numNotForSale, Map<?, ?> extraData, Boolean isAccessible, Boolean isCompanionSeat,
Boolean hasRestrictedView, String displayedObjectType, String parentDisplayedObjectType,
String leftNeighbour, String rightNeighbour, boolean isAvailable,
Boolean hasLiftUpArmrests, Boolean isHearingImpaired, Boolean isSemiAmbulatorySeat,
Boolean hasSignLanguageInterpretation, Boolean isPlusSize, Boolean hasRestrictedView, String displayedObjectType,
String parentDisplayedObjectType, String leftNeighbour, String rightNeighbour, boolean isAvailable,
String availabilityReason, String channel, Double distanceToFocalPoint,
Map<String, Map<String, Integer>> holds, Boolean variableOccupancy, Integer minOccupancy,
Integer maxOccupancy, int seasonStatusOverriddenQuantity, String zone, Floor floor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ public void reportItemProperties() {
assertThat(reportItem.leftNeighbour()).isNull();
assertThat(reportItem.rightNeighbour()).isEqualTo("A-2");
assertThat(reportItem.distanceToFocalPoint()).isNotNull();
assertThat(reportItem.isAccessible()).isNotNull();
assertThat(reportItem.isCompanionSeat()).isNotNull();
assertThat(reportItem.hasRestrictedView()).isNotNull();
assertThat(reportItem.isAccessible()).isFalse();
assertThat(reportItem.isCompanionSeat()).isFalse();
assertThat(reportItem.hasLiftUpArmrests()).isFalse();
assertThat(reportItem.isHearingImpaired()).isFalse();
assertThat(reportItem.isSemiAmbulatorySeat()).isFalse();
assertThat(reportItem.hasSignLanguageInterpretation()).isFalse();
assertThat(reportItem.isPlusSize()).isFalse();
assertThat(reportItem.hasRestrictedView()).isFalse();
assertThat(reportItem.floor()).isNull();
}

Expand Down
10 changes: 10 additions & 0 deletions src/test/java/seatsio/reports/events/EventReportsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public void reportItemProperties() {
assertThat(reportItem.hasRestrictedView()).isFalse();
assertThat(reportItem.isAccessible()).isFalse();
assertThat(reportItem.isCompanionSeat()).isFalse();
assertThat(reportItem.hasLiftUpArmrests()).isFalse();
assertThat(reportItem.isHearingImpaired()).isFalse();
assertThat(reportItem.isSemiAmbulatorySeat()).isFalse();
assertThat(reportItem.hasSignLanguageInterpretation()).isFalse();
assertThat(reportItem.isPlusSize()).isFalse();
assertThat(reportItem.displayedObjectType()).isNull();
assertThat(reportItem.parentDisplayedObjectType()).isNull();
assertThat(reportItem.leftNeighbour()).isNull();
Expand Down Expand Up @@ -112,6 +117,11 @@ public void reportItemPropertiesForGA() {
assertThat(reportItem.hasRestrictedView()).isNull();
assertThat(reportItem.isAccessible()).isNull();
assertThat(reportItem.isCompanionSeat()).isNull();
assertThat(reportItem.hasLiftUpArmrests()).isNull();
assertThat(reportItem.isHearingImpaired()).isNull();
assertThat(reportItem.isSemiAmbulatorySeat()).isNull();
assertThat(reportItem.hasSignLanguageInterpretation()).isNull();
assertThat(reportItem.isPlusSize()).isNull();
assertThat(reportItem.displayedObjectType()).isNull();
assertThat(reportItem.parentDisplayedObjectType()).isNull();
}
Expand Down