Skip to content

Commit

Permalink
Expose variableOccupancy, minOccupancy, and maxOccupancy (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Chaloner <[email protected]>
  • Loading branch information
schaloner and Steve Chaloner authored Aug 23, 2023
1 parent b8b74c7 commit 1f54534
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/seatsio/events/EventObjectInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ public class EventObjectInfo extends ValueObject {
public String channel;
public Double distanceToFocalPoint;
public Map<String, Map<String, Integer>> holds;

public Boolean variableOccupancy;
public Integer minOccupancy;
public Integer maxOccupancy;
}
5 changes: 5 additions & 0 deletions src/test/java/seatsio/reports/events/EventReportsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public void reportItemProperties() {
assertThat(reportItem.availabilityReason).isEqualTo("booked");
assertThat(reportItem.channel).isEqualTo("channel1");
assertThat(reportItem.distanceToFocalPoint).isNotNull();

EventObjectInfo gaItem = report.get("GA1").get(0);
assertThat(gaItem.variableOccupancy).isFalse();
assertThat(gaItem.minOccupancy).isEqualTo(1);
assertThat(gaItem.maxOccupancy).isNull();
}

@Test
Expand Down

0 comments on commit 1f54534

Please sign in to comment.